出现错误,请运行软件包管理器

分享于 

2分钟阅读

ubuntu

  繁體

问题

打开一个包含以下消息的框:

an error occurred, please run Package Manager from the right-click from the right click window or apt-get in a terminal to see what is wrong. the error message was :'Unknown Error:''(E:The package google-chrome-stable needs to be reinstalled, but i can't find an archive for it.)'This usually means that you have > installed packages with unmet dependencies

sudo apt-get -f install的结果是:

E: the package google-chrome-stable needs to be reinstalled, but i can't find an archive for it.


答案1

看来google-chrome-stable出于某种原因破坏了你的系统,尝试:打开终端窗口

 
Ctrl+Alt+T




sudo apt-get remove google-chrome-stable 



然后通过以下方式更新系统


sudo apt-get update && sudo apt-get upgrade



如果命令失败,你可以尝试以下命令:更新包


sudo apt-get update



清理下载的软件包(其中可能有损坏的软件包)

 
sudo apt-get clean




sudo apt-get autoremove



重新配置所有软件包


sudo dpkg --configure -a



修复损坏的软件包


sudo apt-get install -f




答案2

删除软件包列表,并更新解决了问题

打开终端:Ctrl+Alt+T

删除软件包列表:


sudo rm -vf /var/lib/apt/lists/*



-v, --verbose解释了要做什么

-f, --force忽略不存在的文件和参数,从不提示

更新软件包:


sudo apt-get update





MAN  PAC  PACK  APT