ubuntu10.10 现在用apt-get命令就会出现dpkg:警告:无法找到软件包"xxx"的文件名列表文件.. 怎么解决?
发布网友
发布时间:2022-04-21 09:00
我来回答
共3个回答
热心网友
时间:2023-11-08 10:35
可以上网找一些源 然后添加到/etc/apt/sources.list 里面
国内快的源有很多,看你是什么网了 要是教育网的话中科大的源很好,要不是的话别的源也有 给你贴两个
#中科大ubuntu 更新服务器
deb http://debian.ustc.e.cn/ubuntu/ maverick main restricted universe multiverse
deb http://debian.ustc.e.cn/ubuntu/ maverick-security main restricted universe multiverse
deb http://debian.ustc.e.cn/ubuntu/ maverick-updates main restricted universe multiverse
deb http://debian.ustc.e.cn/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://debian.ustc.e.cn/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://debian.ustc.e.cn/ubuntu/ maverick main restricted universe multiverse
deb-src http://debian.ustc.e.cn/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://debian.ustc.e.cn/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://debian.ustc.e.cn/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://debian.ustc.e.cn/ubuntu/ maverick-backports main restricted universe multiverse
#163
deb http://mirrors.163.com/ubuntu/ maverick main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ maverick-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ maverick-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ maverick-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ maverick-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ maverick-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ maverick-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ maverick-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ maverick-updates universe main multiverse restricted
然后sudo apt-get update 下就可以了
当然了 有的软件要是还是那样显示话只能说是真的没有那个软件了
热心网友
时间:2023-11-08 10:35
首先运行 apt-get update 更新一下仓库缓存列表
热心网友
时间:2023-11-08 10:36
/var/lib/dpkg/info/目录下的已安装包的配置文件信息中没有这个应用配置就会出现这种情况。
解决可以用重新安装的方法:
sudo dpkg --configure -a
找到它
dpkg -l | grep ^ii | awk '{print $2}' | grep -v XXX | xargs sudo aptitude reinstall
重装它。