卸载谷歌浏览器时出错

Jye*_*rez 5 uninstall google-chrome

我无法更新或卸载 Google Chrome。我收到此错误:

Setting up google-chrome-stable (36.0.1985.125-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)
Run Code Online (Sandbox Code Playgroud)

我记得之前更改和替换了 Google Chrome 的默认图标。我该如何解决这个问题?

sai*_*895 6

根据错误和提到的post-installation script,我会说即使安装也没有成功完成。您必须运行sudo dpkg --purge --force-all google-chrome-stable才能将其删除。

编辑:运行gksudo gedit /var/lib/dpkg/info/google-chrome-stable.postinst,并#在任何调用xdg-icon-resource. 保存它,然后再次尝试删除该包。