我正在尝试在我的Raspberry 4上新安装的Ubuntu20.04上安装libasound2-dev,但是apt报告说它找不到这个包。
运行apt search libasound2会产生:
ubuntu@ubuntu:~$ sudo apt search libasound2
Sorting... Done
Full Text Search... Done
alsa-topology-conf/now 1.2.2-1 all [installed,local]
ALSA topology configuration files
libasound2/now 1.2.2-2.1 arm64 [installed,local]
shared library for ALSA applications
libasound2-data/now 1.2.2-2.1 all [installed,local]
Configuration files and profiles for ALSA drivers
ubuntu@ubuntu:~$但是,查看包存储库,它应该可以用于arm64:https://packages.ubuntu.com/focal/libasound2-dev
我的/etc/apt/sources.list在下面(删除注释行之后)。
deb http://ports.ubuntu.com/ubuntu-ports focal main restricted
deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted
deb http://ports.ubuntu.com/ubuntu-ports focal universe
deb http://ports.ubuntu.com/ubuntu-ports focal-updates universe
deb http://ports.ubuntu.com/ubuntu-ports focal multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-updates multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports focal-security universe
deb http://ports.ubuntu.com/ubuntu-ports focal-security multiverse如果有帮助的话,这个问题似乎并不是libasound2-dev特有的。似乎apt在libdevel部分找不到任何东西。
发布于 2020-05-28 03:56:52
我注意到/var/lib/apt/lists/中的一些文件是零大小的,所以我运行了:
sudo apt-get clean
sudo apt-get autoclean
sudo rm -rf /var/lib/apt/lists/
sudo apt update许多零大小的文件都要大得多,运行apt search libasound2-dev可以得到预期的结果。
https://askubuntu.com/questions/1244195
复制相似问题