我无法从系统中移除 Google Chrome。我从 Google 网站安装了它(可能不是个好主意),它似乎可以工作,但我始终无法启动该程序。每次我执行任何 apt-get 操作时,最后都会得到以下内容:
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up google-chrome-stable (46.0.2490.71-1) ...
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
dpkg: error processing package google-chrome-stable (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)
我曾手动删除文件(再次强调,我知道这是个坏主意),但在我看来,我删除的图标缺失导致了问题。我尝试了各种方法,包括删除、重新安装和删除、清除等,但就是无法修复此错误。
答案1
尝试重新安装,使用.deb
或sudo dpkg -i <debfile>
使用sudo apt-get install --reinstall google-chrome-stable
。
然后使用 更新您的系统sudo apt-get update && sudo apt-get dist-upgrade
。
然后清除 Chrome sudo apt-get purge google-chrome-stable
:。