Кв., не устанавливающая самые известные пакеты

Я установил новую Ubuntu 14.04.03, и я сталкиваюсь с проблемой, которую я никогда не имел прежде.

Первая вещь, которую я сделал при вхождении в новую установку, была склонна - получают обновление и обновление. Затем я хотел установить apache2, но я возвратил ошибку, что я повредил пакеты. Broken dependencies/packages

Я даже не знаю, где я должен начать смотреть, поскольку этого никогда не происходило со мной прежде. Я попробовал apt-get autoclean и apt-get -f install но это ничего не сделало.

Любая справка очень ценится!

Править:

sync-s@sync-s:~$ apt-cache policy apache2 apache2-bin ssl-cert
apache2:
  Installed: (none)
  Candidate: 2.4.7-1ubuntu4.5
  Version table:
     2.4.7-1ubuntu4.5 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
apache2-bin:
  Installed: (none)
  Candidate: 2.4.7-1ubuntu4.5
  Version table:
     2.4.7-1ubuntu4.5 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
ssl-cert:
  Installed: (none)
  Candidate: (none)
  Version table:

Попытка установить php5:

sync-s@sync-s:~$ sudo apt-get install php5
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:
 php5 : Depends: libapache2-mod-php5 (>= 5.5.9+dfsg-1ubuntu4.14) but it is not going to be installed or
                 libapache2-mod-php5filter (>= 5.5.9+dfsg-1ubuntu4.14) but it is not going to be installed or
                 php5-cgi (>= 5.5.9+dfsg-1ubuntu4.14) but it is not going to be installed or
                 php5-fpm (>= 5.5.9+dfsg-1ubuntu4.14) but it is not going to be installed
        Depends: php5-common (>= 5.5.9+dfsg-1ubuntu4.14) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Попытайтесь установить mysql-server-5.5:

sync-s@sync-s:~$ sudo apt-get install mysql-server-5.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:
 mysql-server-5.5 : Depends: libdbi-perl but it is not installable
                    Depends: mysql-client-5.5 (>= 5.5.46-0ubuntu0.14.04.2) but it is not going to be installed
                    Depends: mysql-server-core-5.5 (>= 5.5.46-0ubuntu0.14.04.2) but it is not going to be installed
                    Recommends: libhtml-template-perl but it is not installable
E: Unable to correct problems, you have held broken packages.

Попытайтесь установить proftpd:

sync-s@sync-s:~$ sudo apt-get install proftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package proftpd

Содержание/etc/apt/sources.list:

# deb cdrom:[Ubuntu-Server 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted

#deb cdrom:[Ubuntu-Server 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted

deb http://security.ubuntu.com/ubuntu trusty-security main
deb-src http://security.ubuntu.com/ubuntu trusty-security main
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

Попытайтесь к установке зависимостей apache2:

sync-s@sync-s:~$ 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: libapr1 (>= 1.5.0) but it is not installable
               Depends: libaprutil1 (>= 1.5.0) but it is not installable
               Depends: libaprutil1-dbd-sqlite3 but it is not installable or
                        libaprutil1-dbd-mysql but it is not installable or
                        libaprutil1-dbd-odbc but it is not installable or
                        libaprutil1-dbd-pgsql but it is not installable or
                        libaprutil1-dbd-freetds but it is not installable
               Depends: libaprutil1-ldap but it is not installable
E: Unable to correct problems, you have held broken packages.
sync-s@sync-s:~$ sudo apt-get install libapr1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libapr1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libapr1' has no installation candidate
2
задан 12 January 2016 в 18:13

2 ответа

Ваш sources.list ужасно искажается, пропуская ОСОБО ВАЖНЫЕ репозитории, и поэтому не применим.

Вы отсутствуете довольно много из вещей, которые Вы ДОЛЖНЫ иметь - по крайней мере, trusty основные репозитории, которые были созданы после выпуска Надежного человека; без них Вы ничего не можете установить. Это вызвано тем, что trusty-security ТОЛЬКО содержит обновления системы защиты; это НЕ содержит основные пакеты для системы, и работающий со всего trusty-security, а не trusty в источниках заставит все взрываться.

<час>

я собираюсь сделать предположение, что Вы ТОЛЬКО хотите надежного человека + обновления системы защиты а НЕ стандартный репозиторий обновлений.

Это sources.list извлечено из 14.04 ISO Сервера файловая система SquashFS, извлеченная из самого ISO. Это имеет несколько изменений, которые я прокомментирую соответственно, или я извлек из Ваших источников списка выше.

# The original Trusty repository, for Main, Universe, and Multiverse pockets. 
# DO NOT REMOVE THIS!
deb http://archive.ubuntu.com/ubuntu/ trusty main universe multiverse

# Security updates for Main, Universe, and Multiverse pockets.
# DO NOT REMOVE THIS, OR YOUR SYSTEM MAY BECOME A SECURITY RISK!
deb http://security.ubuntu.com/ubuntu/ trusty-security main universe multiverse

# Standard software updates for Main, Universe, and Multiverse pockets.
# You do not need to keep these enabled, but you can if you wish to.
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main universe multiverse

## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

, После того как Вы заменили Ваш /etc/apt/sources.list этим, адаптировавшись соответственно к Вашему зеркалу страны путем замены archive.ubuntu.com с CC.archive.ubuntu.com, где CC двухбуквенный код страны, выполнение sudo apt-get update; sudo apt-get upgrade и применяет все обновления снова . Затем попытайтесь установить свое программное обеспечение.

5
ответ дан 2 December 2019 в 01:58

Это - действительно комментарий к ответу здесь Thomas Ward , но это слишком длинно, чтобы быть комментарием, и я не думаю, что он квалифицировал бы как редактирование. Кто-то с большим опытом или полномочием, может судить о том, как скорректировать это соответственно.

существуют также бэкпорты. Это обновленные версии, доступные в более новых версиях Ubuntu. Их считают менее стабильными, но протестировали. Если Вы не используете другую версию, заменяете надежного человека Вашей текущей версией Ubuntu. deb-src просто включает источники вместо двоичных файлов.

# Backports
deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse

Там также, кажется, другой источник, доступный для архитектуры, которая не является стандартным ПК. Снова, замените надежного человека своей текущей версией Ubuntu. Архитектура была добавлена к доступной для поиска базе данных по packages.ubuntu.com в 19.04.2016. Если у Вас уже будут эквивалентные репозитории как archives.ubuntu.com, то они будут дубликатами. По ports.ubuntu.com и спискам arm64, armhf, powerpc, и ppc64el.

0
ответ дан 2 December 2019 в 01:58

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

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