首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apt找不到libasound2-dev 20.04 arm64包

Apt找不到libasound2-dev 20.04 arm64包
EN

Ask Ubuntu用户
提问于 2020-05-27 13:36:12
回答 1查看 3.6K关注 0票数 3

我正在尝试在我的Raspberry 4上新安装的Ubuntu20.04上安装libasound2-dev,但是apt报告说它找不到这个包。

运行apt search libasound2会产生:

代码语言:javascript
复制
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在下面(删除注释行之后)。

代码语言:javascript
复制
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部分找不到任何东西。

EN

回答 1

Ask Ubuntu用户

发布于 2020-05-28 03:56:52

我注意到/var/lib/apt/lists/中的一些文件是零大小的,所以我运行了:

代码语言:javascript
复制
sudo apt-get clean
sudo apt-get autoclean
sudo rm -rf /var/lib/apt/lists/
sudo apt update

许多零大小的文件都要大得多,运行apt search libasound2-dev可以得到预期的结果。

票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1244195

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档