Ubuntu 16:google-chrome-stable:取决于:libappindicator1但它不会被安装

几个星期前我安装了Ubuntu 16桌面。 添加了Chrome,一切都很好。 但是现在当我尝试sudo apt-get install ffmpeg ,我收到以下错误消息:

 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: google-chrome-stable : Depends: libappindicator1 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

有什么问题,我该怎么办?

您可以按错误消息的建议运行sudo apt-get -f install 。 这应该安装任何所需的依赖项并解决问题。 (或者,您可以使用Synaptic,Aptitude或其他程序包管理器来解决依赖性问题。)

正如@grooveplex指出的那样, -f代表--fix-broken ,而不是“force”,并且不应该对你的系统造成任何损害。

Ubuntu存储库不提供Google Chrome,而是从Google的服务器下载安装程序。您应该可以使用sudo apt install libappindicator1 (它位于16.04存储库中)或者从synaptic包管理器sudo apt install libappindicator1 ,然后尝试安装chrome.deb

Synaptic Package Manager:1.search for libappindicator1,2.Mark for Installation,3.Apply

如果你没有突触

 sudo apt-get install synaptic 

一旦libappindicator1到位,在Ubuntu软件安装中打开.deb ,如Google Chrome的下载页面所示