我正在尝试访问一个本地存储库,它恰好是Ubuntu14.04可靠版本的镜像。这些东西都是下载的,看上去不错,但我无法从中安装任何软件包。我的/etc/apt/sources.list文件包含:
deb [arch=amd64] file:///unixdepot/ubuntu/repos/14.04/mirror/archive.ubuntu.com/ubuntu trusty universe
deb [arch=amd64] file:///unixdepot/ubuntu/repos/14.04/mirror/archive.ubuntu.com/ubuntu trusty main restricted
deb [arch=amd64] file:///unixdepot/ubuntu/repos/14.04/mirror/archive.ubuntu.com/ubuntu trusty-updates main restricted文件就在里面。当我尝试使用apt-get时,我得到:
root@tm1cldctll02-adm:/etc/apt# apt-get install libsm-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libsm-dev
root@tm1cldctll02-adm:/etc/apt#但该文件存在:
root@tm1cldctll02-adm:/etc/apt# find /unix*/ub*/repo*/ -name "libsm-dev*"
/unixdepot/ubuntu/repos/14.04/mirror/archive.ubuntu.com/ubuntu/pool/main/libs/libsm/libsm-dev_1.2.1-2_amd64.deb发布于 2014-11-17 22:23:52
当你改变apt的S源时,你必须使用apt-get update来让它意识到这些变化。不这样做会产生奇怪的效果,最直接的效果是apt找不到任何应该出现在新源中的东西。
https://askubuntu.com/questions/550744
复制相似问题