当我跑步时apt-get install apache2
我收到一些错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
apache2 : Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1.10) but it is not going to be installed or
apache2-mpm-prefork (= 2.2.22-1ubuntu1.10) but it is not going to be installed or
apache2-mpm-event (= 2.2.22-1ubuntu1.10) but it is not going to be installed or
apache2-mpm-itk (= 2.2.22-1ubuntu1.10) but it is not going to be installed
Depends: apache2.2-common (= 2.2.22-1ubuntu1.10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我尝试所有已知的方法来解决这个问题,尝试运行:
apt-get update;
apt-get upgrade;
apt-get purge apache2*
我已删除/etc/apache2
和/usr/include/apache2
目录。
我尝试更换镜像服务器,但仍然无法解决我的问题,我收到相同的错误。
我还尝试手动安装缺少的软件包:
apt-get -f install apache2-mpm-worker
但是现在出现错误,缺少几个包:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
apache2-mpm-worker : Depends: apache2.2-common (= 2.2.22-1ubuntu1.10) but it is not going to be installed
Depends: apache2.2-bin (= 2.2.22-1ubuntu1.10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
什么可以解决我的问题,只有重新安装操作系统?