Ubuntu 24.04 安装 libncurses.so.5
用Ubuntu24在编译AOSP时遇到这个问题。
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
看上去是少库文件,然后找到这个deb包的名称下载即可。 不知道为啥Ubuntu22可以直接下载的,Ubuntu24不可以。
参考:https://askubuntu.com/questions/1531398/how-to-install-libncurses-so-5-for-ubuntu-24-04
解决:
# 注意权限,可以先创建,再给写权限
echo "deb http://security.ubuntu.com/ubuntu focal-security main universe" > /etc/apt/sources.list.d/ubuntu-focal-sources.list
sudo apt update
sudo apt install libncurses5
本文来自博客园,作者:杨旭0324,转载请注明原文链接:https://www.cnblogs.com/allalonewithyou/p/19266164,个人邮箱:yaonie4444@foxmail.com

浙公网安备 33010602011771号