google-chrome-stable:依赖:libappindicator1,但它不会被安装

google-chrome-stable:依赖:libappindicator1,但它不会被安装

我是 Ubuntu 新手。每当我尝试sudo在 PC 上安装任何东西时,它都会显示:

The following packages have unmet dependencies:
    google-chrome-stable : Depends: libappindicator1 but it is not going to be installed

我尝试了以下命令:

sudo apt-get clean
sudo apt-get autoclean

但都没有用。请告诉我如何修复此错误。

附言:我正在使用 Ubuntu 16.04 LTS(Xerial Xenus)。

例如当我尝试安装 VirtualBox 时:

user@User:~/Desktop$ sudo apt-get install virtualbox
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
 virtualbox : Depends: virtualbox-dkms (>= 5.0.40-dfsg-0ubuntu1.16.04.1) but it is not going to be installed or
                       virtualbox-source (>= 5.0.40-dfsg-0ubuntu1.16.04.1) but it is not going to be installed or
                       virtualbox-modules
              Depends: libgsoap8 but it is not going to be installed
              Depends: libvncserver1 (>= 0.9.10) but it is not going to be installed
              Recommends: virtualbox-qt (= 5.0.40-dfsg-0ubuntu1.16.04.1) but it is not going to be installed
              Recommends: libqt4-opengl (>= 4:4.5.3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我无法安装任何东西。另外,我的 Chrome 已安装并正常运行。但是,当我尝试使用 安装它时sudo,出现此错误:

~/Desktop$ sudo apt-get install google-chrome-stable_current_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package google-chrome-stable_current_amd64.deb
E: Couldn't find any package by glob 'google-chrome-stable_current_amd64.deb'
E: Couldn't find any package by regex 'google-chrome-stable_current_amd64.deb'

答案1

运行以下命令:

sudo apt-get -f install
sudo apt-get update
sudo apt-get autoremove
sudo apt-get dist-upgrade

然后再试一次。

您不能使用 apt-get install <.deb package>。当您下载 .deb 包时,您必须像 Windows 一样安装(双击)。


您可以在这里了解有关 apt-get 的更多信息:https://www.tecmint.com/useful-basic-commands-of-apt-get-and-apt-cache-for-package-management/

相关内容