При переустановке Apache происходит сбой из-за неудовлетворенных зависимостей

Я использую ubnutu 14.04 os. Я попытался повторно установить apache, но не смог этого добиться, теперь я получаю следующее сообщение об ошибке

govind@govind-Inspiron-N5050:~$ sudo 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-bin (= 2.4.7-1ubuntu4.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Я пробовал следующие команды на основе результатов поиска, но нет Удача: (

sudo apt-get --purge remove apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 
sudo apt-get autoremove  
sudo apt-get install -f    
sudo apt-get install lamp-server^ --reinstall    
sudo apt-get install apache2-bin:i386   
sudo apt-get upgrade   
sudo apt-get dist-upgrade    

Apache теперь удален, я не вижу папку apache в моей системе. Но я не могу снова установить apache.

Опубликовать вывод команда - apt-cache policy apache2 apache2-bin

govind@govind-Inspiron-N5050:~$ apt-cache policy apache2 apache2-bin
apache2:
  Installed: (none)
  Candidate: 2.4.7-1ubuntu4.5
  Version table:
     2.4.7-1ubuntu4.5 0
        500 http:// in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http:// security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     2.4.7-1ubuntu4 0
        500 http:// in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
apache2-bin:
  Installed: (none)
  Candidate: 2.4.7-1ubuntu4.5
  Version table:
     2.4.7-1ubuntu4.5 0
        500 http:// in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http:// security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     2.4.7-1ubuntu4 0
        500 http:// in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
govind@govind-Inspiron-N5050:~$ 

Публикация результата команды sudo apt-get install apache2=2.4.7-1ubuntu4.5 apache2-bin=2.4.7-1ubuntu4.5

govind@govind-Inspiron-N5050:~$ sudo apt-get install apache2=2.4.7-1ubuntu4.5 apache2-bin=2.4.7-1ubuntu4.5
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-bin : Depends: libaprutil1-dbd-sqlite3 but it is not going to be installed or
                        libaprutil1-dbd-mysql but it is not going to be installed or
                        libaprutil1-dbd-odbc but it is not going to be installed or
                        libaprutil1-dbd-pgsql but it is not going to be installed or
                        libaprutil1-dbd-freetds but it is not installable
               Depends: libaprutil1-ldap but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
govind@govind-Inspiron-N5050:~$ 

@AB: добавление выходных данных sudo apt-get install apache-bin и apt-cache policy libaprutil1-dbd-sqlite3

govind@govind-Inspiron-N5050:~$ sudo apt-get install apache2-bin
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-bin : Depends: libaprutil1-dbd-sqlite3 but it is not going to be installed or
                        libaprutil1-dbd-mysql but it is not going to be installed or
                        libaprutil1-dbd-odbc but it is not going to be installed or
                        libaprutil1-dbd-pgsql but it is not going to be installed or
                        libaprutil1-dbd-freetds but it is not installable
               Depends: libaprutil1-ldap but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


govind@govind-Inspiron-N5050:~$ apt-cache policy libaprutil1-dbd-sqlite3
libaprutil1-dbd-sqlite3:
  Installed: (none)
  Candidate: 1.5.3-1
  Version table:
     1.5.3-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

govind@govind-Inspiron-N5050:~$ apt-cache policy libaprutil1-dbd-mysql
libaprutil1-dbd-mysql:
  Installed: (none)
  Candidate: 1.5.3-1
  Version table:
     1.5.3-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
govind@govind-Inspiron-N5050:~$ apt-cache policy libaprutil1-dbd-odbc
libaprutil1-dbd-odbc:
  Installed: (none)
  Candidate: 1.5.3-1
  Version table:
     1.5.3-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
govind@govind-Inspiron-N5050:~$ apt-cache policy libaprutil1-dbd-pgsql
libaprutil1-dbd-pgsql:
  Installed: (none)
  Candidate: 1.5.3-1
  Version table:
     1.5.3-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
govind@govind-Inspiron-N5050:~$ apt-cache policy libaprutil1-dbd-freetds
libaprutil1-dbd-freetds:
  Installed: (none)
  Candidate: (none)
  Version table:
govind@govind-Inspiron-N5050:~$ apt-cache policy libaprutil1-ldap
libaprutil1-ldap:
  Installed: (none)
  Candidate: 1.5.3-1
  Version table:
     1.5.3-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
1
задан 8 September 2015 в 16:27

0 ответов

Другие вопросы по тегам:

Похожие вопросы: