我正在尝试在我的 Kubuntu Linux 上安装 apache2
sudo apt-get install apache2
,它显示了以下消息:
dagger@HP:~$ sudo apt-get install apache2
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:
apache2 : Depends: apache2-bin (= 2.4.18-2ubuntu3.1) but it is
not going to be installed
Depends: apache2-utils (>= 2.4)
Depends: apache2-data (= 2.4.18-2ubuntu3.1) but it is not going
to be installed
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).
dagger@HP:~$ ^C
答案1
打开终端并输入:
sudo apt update
sudo apt full-upgrade
sudo apt install -f apache2
答案2
按照错误信息所述,尝试:
sudo apt-get install -f
Idf 那么就成功了:
sudo apt-get update
然后:
sudo apt-get install apache2