dpkg google-chrome 损坏无效状态

dpkg google-chrome 损坏无效状态

我无法自行解决这个问题,可以得到一些帮助吗?

Setting up google-chrome-stable (34.0.1847.116-1) ...
update-alternatives: error: /var/lib/dpkg/alternatives/google-chrome corrupt: invalid status
dpkg: error processing google-chrome-stable (--configure):
 subprocess installed post-installation script returned error exit status 2
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)

尝试清除时仍然出现错误:

$ sudo apt-get purge google-chrome-stable  
Reading package lists... Done  
Building dependency tree         
Reading state information... Done  
The following packages will be REMOVED:  
  google-chrome-stable*  
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.  
1 not fully installed or removed.  
After this operation, 163 MB disk space will be freed.  
Do you want to continue [Y/n]?   
(Reading database ... 505359 files and directories currently installed.)  
Removing google-chrome-stable ...  
update-alternatives: using /usr/bin/firefox to provide /usr/bin/x-www-browser (x-www browser) in auto mode.  
update-alternatives: using /usr/bin/firefox to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode.  
update-alternatives: error: /var/lib/dpkg/alternatives/google-chrome corrupt: invalid status  
dpkg: error processing google-chrome-stable (--purge):  
 subprocess installed pre-removal script returned error exit status 2  
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode.  
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode.  
update-alternatives: error: /var/lib/dpkg/alternatives/google-chrome corrupt: invalid status  
dpkg: error while cleaning up:  
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:  
 google-chrome-stable  
E: Sub-process /usr/bin/dpkg returned an error code (1)  
:~$   

答案1

这是我为成功“清除”所做的

sudo rm /var/lib/dpkg/alternatives/google-chrome

然后我重新安装了https://www.google.com/intl/en/chrome/browser/

相关内容