我的 ubuntu 14.04 安装显示 apt-get 仅使用一个存储库部分:
$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=main
origin archive.ubuntu.com
Pinned packages:
虽然我已经注释掉了配置文件中的行universe
,但宇宙和多元宇宙都在 sources.list 文件中:
/etc/apt$ grep -r universe *
apt.conf.d/01autoremove: #"universe/metapackages";
apt.conf.d/01autoremove: #"universe/oldlibs";
sources.list:deb http://archive.ubuntu.com/ubuntu/ trusty-updates main universe multiverse
sources.list:deb http://extras.ubuntu.com/ubuntu/ trusty-updates main universe multiverse
sources.list:deb http://extras.ubuntu.com/ubuntu/ trusty main universe multiverse
sources.list:deb http://archive.ubuntu.com/ubuntu/ trusty universe main multiverse
我想安装部分libopenal-dev
中的哪个universe
。但就是找不到它。
答案1
添加、删除和/或修改存储库后,您必须运行:
sudo apt-get update && sudo apt-get upgrade