E: The package code needs to be reinstalled, but I can't find an archive for it.

ubuntu安装软件时报错:

E: The package code needs to be reinstalled, but I can't find an archive for it.

解决方法:

打开 /var/lib/dpkg/status 文件, 查找安装未成功的安装包,譬如搜索关键子 “half” ,

将安装包相关信息删除。然后重新安装一下安装包即可。

 

备注:

系统 ubuntu 16.04

posted @ 2018-11-09 17:02  hbg-rohens  阅读(2691)  评论(0编辑  收藏  举报