Ubuntu apt-get 依賴問題怎麼辦
PHPz
PHPz 2017-04-24 09:09:37
0
4
751

sources.list內容

halo@ubuntu:/etc/apt$ cat sources.list
deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse

安裝 apache 出錯

halo@ubuntu:/etc/apt$ sudo apt-get -f 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.12-2ubuntu2.1) but it is not going to be installed
           Depends: apache2-utils (>= 2.4)
           Depends: apache2-data (= 2.4.12-2ubuntu2.1) but it is not going to be installed
 atom : Depends: git
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
PHPz
PHPz

学习是最好的投资!

全部回覆(4)
黄舟

試試

  sudo apt-get update
  sudo apt-get install --reinstall apache2 apache2-bin 
巴扎黑

安裝前update下?

刘奇

如果最近修改了sources.list,那麼update一下再安裝apache

Peter_Zhu

聯網狀態下輸入這句

apt-get -f install
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板