问题描述
sources.list内容
halo@ubuntu:/etc/apt$ cat sources.listdeb http://mirrors.163.com/ubuntu/ wily main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
安装 apache 出错
halo@ubuntu:/etc/apt$ sudo apt-get -f install apache2Reading package lists... DoneBuilding dependency tree Reading state information... DoneYou 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: gitE: Unmet dependencies. Try ’apt-get -f install’ with no packages (or specify a solution).
问题解答
回答1:试试
sudo apt-get update sudo apt-get install --reinstall apache2 apache2-bin 回答2:
安装前update下?
回答3:如果最近修改了sources.list,那么update一下再安装apache
回答4:联网状态下输入这句
apt-get -f install