Linux 断开的依赖关系

Linux 断开的依赖关系,linux,ubuntu,apt-get,apt,Linux,Ubuntu,Apt Get,Apt,我删除了/opt的内容,现在,spotify和google chrome无法工作,因为我删除了他们的目录。如果我尝试删除、修复、升级或其他任何操作,我会得到以下结果: xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. enter code heredpkg: error processing package google-chrome-stab

我删除了/opt的内容,现在,spotify和google chrome无法工作,因为我删除了他们的目录。如果我尝试删除、修复、升级或其他任何操作,我会得到以下结果:

xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
enter code heredpkg: error processing package google-chrome-stable (--remove):
subprocess installed pre-removal script returned error status 1
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.

这其中的一部分被翻译了,但只有一小部分。

我已经在我的机器上测试了这一点,删除了我的/opt文件夹,然后恢复谷歌浏览器。所以我知道它是有效的。请按照以下步骤恢复您的google chrome:

  • 根据您的操作系统从该链接
  • 下载后,打开debian文件所在位置的终端窗口,运行以下命令重新安装google chrome

    sudo dpkg-i yourglechromedebianfile.deb

  • 您的google chrome已启动并再次运行。:)


  • 但对于Spotify,他们只建议添加他们的回购,并安装软件包。但是没有.deb下载OK,在/var/cache/apt/archives-apt存储那些.deb文件。但是:以这种方式重新安装spotify是行不通的