在我的 Trusty 上安装 apache2.2-common 时出现问题

在我的 Trusty 上安装 apache2.2-common 时出现问题

我认为我需要apache2.2-common在我的服务器上安装 Ubuntu Trusty 14.04。但是当我尝试时,我收到一条错误消息:

apache2.2-common : Depends: apache2 (>= 2.3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

现在,我使用的是以下版本:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

# apache2ctl -v
Server version: Apache/2.4.7 (Ubuntu)
Server built:   Jul 15 2016 15:34:04

# uname -a
Linux evx2403105 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# apt-cache policy apache2.2-common

apache2.2-common:
  Installed: (none)
  Candidate: 2.4.10-1ubuntu1.1~ubuntu14.04.2
  Version table:
     2.4.10-1ubuntu1.1~ubuntu14.04.2 0
        100 http://us.archive.ubuntu.com/ubuntu/ trusty-backports/main amd64 Packages

从那以后,消息告诉我apache2 (>= 2.3~),但确切地说,我使用的是 Apache 2.4.7 版本。因此,除非我误解了错误消息,否则应该没问题。而且我的 Apache 软件包似乎安装得很好:

# dpkg -l | grep apache2    
ii  apache2                          2.4.7-1ubuntu4.13                   amd64        Apache HTTP Server    
ii  apache2-bin                      2.4.7-1ubuntu4.13                   amd64        Apache HTTP Server (binary files and modules)    
ii  apache2-data                     2.4.7-1ubuntu4.13                   all          Apache HTTP Server (common files)    
ii  apache2-mpm-prefork              2.4.7-1ubuntu4.13                   amd64        transitional prefork MPM package for apache2    
ii  apache2-utils                    2.4.7-1ubuntu4.13                   amd64        Apache HTTP Server (utility programs for web servers)    
ii  libapache2-mod-php5              5.5.9+dfsg-1ubuntu4.20              amd64        server-side, HTML-embedded scripting language (Apache 2 module)    
ii  libapache2-mod-suphp             0.7.2-0ubuntu1                      amd64        Apache2 module to run PHP scripts with the owner permissions

有人能帮助我理解这个问题并解决它吗?

相关内容