apt-get 升级问题

apt-get 升级问题

我尝试sudo apt-get upgrade运行更新,但没有成功!以下是错误详细信息

sudo apt-get upgrade 

[sudo] password for andrei: 
Reading package lists... Done Building dependency tree
Reading state information... Done 
The following packages have been kept back: playonlinux 
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 
1 not fully installed or removed. Need to get 0 B/46,3 MB of archives. 
After this operation, 0 B of additional disk space will be used. 
Do you want to continue [Y/n]? Y 
dpkg: error processing google-chrome-stable 
(--configure): package google-chrome-stable is not ready for configuration 
cannot configure (current status `half-installed')    
No apport report written because MaxReports is reached already 
Errors were encountered while processing: google-chrome-stable 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

答案1

运行以下命令,

sudo apt-get 自动清理

删除部分安装的软件包(本例中为 google-chrome-stable)。然后重新安装该软件包。

答案2

这是因为您的软件包只安装了一半。您可以使用以下方法修复此问题:

sudo apt-get install -f

或者,如果这也给你一个错误,尝试卸载(并可能重新安装)有问题的软件包。在这种情况下:

sudo apt-get remove google-chrome-stable

编辑:如果apt-get不行,也许dpkg会:

sudo dpkg --remove google-chrome-stable

相关内容