Как я удаляю поврежденные пакеты, кто предотвращает новые установки?

Для меня определяют задачу для установки Конфиденциальности, Сохраняющей Шибболет управления Идентификационными данными на нашем Сервере Ubuntu. Для завершения установки, я должен был произвести чистку старой стандартной установки Пакета Поставщика услуг (libapache2-mod-shib2) и установить новый, обеспеченный Инфраструктурой Аутентификации и авторизации "ПЕРЕКЛЮЧАТЕЛЯ" (https://www.switch.ch/aai/guides/sp/installation/? os=ubuntu).

Если я пытаюсь установить новый пакет, я получаю следующую ошибку:

service@emdlw:~$ sudo apt-get install shibboleth
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:
 shibboleth : Depends: shibboleth-sp2-utils (>= 2.6.0)
              Recommends: libapache2-mod-shib2 (>= 2.6.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

После некоторого исследования я следовал за решениями того, Как я разрешаю невстреченные зависимости после добавления PPA? но ни один не помог решить мой вопрос.

Мое предположение - то, что способный packetmanager повреждается, потому что пакет "shibboleth-sp2-utils", кажется, все еще установлен, но наклон быть удаленным или обновленным для разрешения dependencie ошибки:

service@emdlw:~$ sudo apt-get install shibboleth-sp2-utils
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:
 shibboleth-sp2-utils : Depends: libshibsp-plugins (= 2.6.0+dfsg1-3switchaai2~trusty1) but it is not going to be installed
                        Depends: libsystemd-daemon0 (>= 31) but it is not installable
E: Unable to correct problems, you have held broken packages.

Выходная кошка/etc/apt/sources.list:

service@emdlw:~$ cat /etc/apt/sources.list
#

# deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.3)]/ xenial main restricted

# deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.3)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://de.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial universe
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## 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 xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

Выходная кошка/etc/apt/sources.list.d /*:

service@emdlw:~$ cat /etc/apt/sources.list.d/*
deb http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu xenial main
deb http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu xenial main
deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
deb http://pkg.switch.ch/switchaai/ubuntu trusty main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main

У кого-либо есть совет относительно как устранение проблемы? Любая справка ценилась бы.

  • Eric
0
задан 22 April 2018 в 05:50

2 ответа

склонные sudo - добираются - чистка автоудаляет

удаляет осиротевшие пакеты, т.е. установленные пакеты, которые раньше устанавливались как зависимость, но не больше. Используйте это после удаления пакета, который установил зависимости, которыми Вы больше не интересуетесь.

0
ответ дан 30 October 2019 в 01:35

Вышеупомянутые ответы ничего не изменили для меня. То, что работало, было sudo dpkg --purge <package>. Это также работало на поврежденные пакеты, которые не были установлены, например.

pB  libnspr4-0d

Примечание: dpkg бросил предупреждение, но поврежденный пакет исчез из списка (если другой появляется, повторитесь, пока не сделано).

0
ответ дан 30 October 2019 в 01:35

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

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