The package xxx needs to be reinstalled, but I can’t find an archive for it.

The package xxx needs to be reinstalled, but I can’t find an archive for it.

admin
2020-07-03 / 0 评论 / 240 阅读 / 正在检测是否收录...

最近折腾大肠云的aws ,安装bbr 的过程有点小事故,就是了,标题的错误,怀疑最可能的是安装的bbr 换内核的时候出错,错误的意思,大概是说,包安装了,但是没有他的归档文件(什么鬼?不懂)

既然不懂,那就解决提出问题的人吧。

/var/lib/dpkg/status 就是这个文件里存储着apt 信息 。

先备份一下

cp -p /var/lib/dpkg/status status.bak0

然后 vi 打开 /var/lib/dpkg/status 找到 xxx 包那行。把大概像下边这几行,全部删除

Package: sublime-text-installer
Status: install reinstreq half-installed
Priority: extra
Section: misc
Architecture: all
Version: 3126-2~webupd8~1

ok ,解决了。

0

评论 (0)

取消