LINUX.ORG.RU

Нужна помощь починить Ubuntu

 


0

1

apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libdbd-mysql-perl : Depends: perlapi-5.18.2
libdbi-perl : Depends: perlapi-5.18.1
libperl5.18 : Depends: perl-base (= 5.18.2-2ubuntu1.7) but 5.22.1-9ubuntu0.9 is installed
libsub-name-perl : Depends: perlapi-5.18.1
libterm-readkey-perl : Depends: perlapi-5.18.1
libtext-charwidth-perl : Depends: perlapi-5.18.1
libtext-iconv-perl : Depends: perlapi-5.18.1
libtext-soundex-perl : Depends: perlapi-5.18.1
nagios3-cgi : Depends: libapache2-mod-php5 but it is not installed or
php5 but it is not installed or
php5-cgi but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies


как то не удачно обновился

могу дать доступ по teamviewer ,




Последнее исправление: guest11 (всего исправлений: 1)

Ответ на: комментарий от Anoxemian

Значит, не Кали. Троллить нуба предосудительно и неприемлемо. Троллить тролля - благородное дело. Вторая тема от того же юзера как бы намекает, что это тролль.

Vidrele ★★
()

Давай полную диагностику:

uname -a
lsb_release -a
grep -v -e '^#' -e '^$' /etc/apt/sources.list
grep -vH -e '^#' -e '^$' /etc/apt/sources.list.d/*
LANG=C apt install -sf
for i in $(LANG=C apt list --installed 2>/dev/null | grep -v "^Listing..." | cut -f 2 -d / | cut -f 1 -d " " | cut -f 1 -d "," | sort | uniq); do echo $i; LANG=C apt list --installed 2>/dev/null | grep "/$i" | wc -l; done

При выкладывании тут не забудь разметку, а то читать неудобно, прямо как твой стартовый пост: Как правильно копировать вывод терминала

Vsevolod-linuxoid ★★★★★
()
Ответ на: комментарий от Vsevolod-linuxoid

'''

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

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

root@flexbet-pmuc-04-02:~# grep -v -e ‘^#’ -e ‘^$’ /etc/apt/sources.list deb http://ubuntu.c3sl.ufpr.br/ubuntu/ trusty main restricted universe multiverse deb http://ubuntu.c3sl.ufpr.br/ubuntu/ trusty-security main restricted universe multiverse deb http://ubuntu.c3sl.ufpr.br/ubuntu/ trusty-updates main restricted universe multiverse deb http://ubuntu.c3sl.ufpr.br/ubuntu/ trusty-proposed main restricted universe multiverse deb http://archive.canonical.com/ubuntu trusty partner deb http://extras.ubuntu.com/ubuntu trusty main

grep -vH -e ‘^#’ -e ‘^$’ /etc/apt/sources.list.d/* /etc/apt/sources.list.d/webupd8team-java-trusty.list.distUpgrade:deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main /etc/apt/sources.list.d/webupd8team-java-trusty.list.save:deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main /etc/apt/sources.list.d/yandex-disk.list.distUpgrade:deb http://repo.yandex.ru/yandex-disk/deb/ stable main /etc/apt/sources.list.d/yandex-disk.list.distUpgrade:deb http://repo.yandex.ru/yandex-disk/deb/ stable main

LANG=C apt install -sf Reading package lists… Done Building dependency tree Reading state information… Done Correcting dependencies… failed. The following packages have unmet dependencies: libdbd-mysql-perl : Depends: perlapi-5.18.2 libdbi-perl : Depends: perlapi-5.18.1 libperl5.18 : Depends: perl-base (= 5.18.2-2ubuntu1.7) but 5.22.1-9ubuntu0.9 is installed libsub-name-perl : Depends: perlapi-5.18.1 libterm-readkey-perl : Depends: perlapi-5.18.1 libtext-charwidth-perl : Depends: perlapi-5.18.1 libtext-iconv-perl : Depends: perlapi-5.18.1 libtext-soundex-perl : Depends: perlapi-5.18.1 nagios3-cgi : Depends: libapache2-mod-php5 but it is not installed or php5 but it is not installed or php5-cgi but it is not installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies

'''

guest11
() автор топика
Ответ на: комментарий от guest11

Потом добавляете 3 обратных апострофа ``` на строчку выше и на строчку ниже текста (обратный апостроф ` и апостроф ’ — разные символы, не путайте, обратный апостроф часто находится на клавише с буквой Ё): https://wampi.ru/image/RjF93Wg

Разметь нормально, мне влом глаза ломать.

Vsevolod-linuxoid ★★★★★
()
Последнее исправление: Vsevolod-linuxoid (всего исправлений: 1)
Ответ на: комментарий от Vsevolod-linuxoid


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

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


root@flexbet-pmuc-04-02:~# grep -v -e '^#' -e '^$' /etc/apt/sources.list
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ trusty main restricted universe multiverse
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ trusty-security main restricted universe multiverse
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ trusty-updates main restricted universe multiverse
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://archive.canonical.com/ubuntu trusty partner
deb http://extras.ubuntu.com/ubuntu trusty main


grep -vH -e '^#' -e '^$' /etc/apt/sources.list.d/*
/etc/apt/sources.list.d/webupd8team-java-trusty.list.distUpgrade:deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
/etc/apt/sources.list.d/webupd8team-java-trusty.list.save:deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
/etc/apt/sources.list.d/yandex-disk.list.distUpgrade:deb http://repo.yandex.ru/yandex-disk/deb/ stable main
/etc/apt/sources.list.d/yandex-disk.list.distUpgrade:deb http://repo.yandex.ru/yandex-disk/deb/ stable main

LANG=C apt install -sf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libdbd-mysql-perl : Depends: perlapi-5.18.2
 libdbi-perl : Depends: perlapi-5.18.1
 libperl5.18 : Depends: perl-base (= 5.18.2-2ubuntu1.7) but 5.22.1-9ubuntu0.9 is installed
 libsub-name-perl : Depends: perlapi-5.18.1
 libterm-readkey-perl : Depends: perlapi-5.18.1
 libtext-charwidth-perl : Depends: perlapi-5.18.1
 libtext-iconv-perl : Depends: perlapi-5.18.1
 libtext-soundex-perl : Depends: perlapi-5.18.1
 nagios3-cgi : Depends: libapache2-mod-php5 but it is not installed or
                        php5 but it is not installed or
                        php5-cgi but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies




guest11
() автор топика
Ответ на: комментарий от Vsevolod-linuxoid
 for i in $(LANG=C apt list --installed 2>/dev/null | grep -v "^Listing..." | cut -f 2 -d / | cut -f 1 -d " " | cut -f 1 -d "," | sort | uniq); do echo $i; LANG=C apt list --installed 2>/dev/null | grep "/$i" | wc -l; done
now
149
trusty
472
trusty-security
155
trusty-updates
42





До этого если не ошибаюсь сделал upgrade на другой рипозиторий

deb http://security.ubuntu.com/ubuntu xenial-security universe

guest11
() автор топика
Ответ на: комментарий от Anoxemian

Кончай клоунаду. Удаление всех репозиториев не решит проблему. По факту — у него как минимум perl-base слишком новый.

Ну и Ubuntu без поддержки, хотя можно подключить расширенную, но и она в апреле кончится.

Vsevolod-linuxoid ★★★★★
()
Ответ на: комментарий от Anoxemian

apt purge -y nagios3-cgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libdbd-mysql-perl : Depends: perlapi-5.18.2
 libdbi-perl : Depends: perlapi-5.18.1
 libperl5.18 : Depends: perl-base (= 5.18.2-2ubuntu1.7) but 5.22.1-9ubuntu0.9 is to be installed
 libsub-name-perl : Depends: perlapi-5.18.1
 libterm-readkey-perl : Depends: perlapi-5.18.1
 libtext-charwidth-perl : Depends: perlapi-5.18.1
 libtext-iconv-perl : Depends: perlapi-5.18.1
 libtext-soundex-perl : Depends: perlapi-5.18.1
 nagios3 : Depends: nagios3-cgi (= 3.5.1-1ubuntu1.3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).




guest11
() автор топика
Ответ на: комментарий от Anoxemian


apt purge -y nagios3
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libdbd-mysql-perl : Depends: perlapi-5.18.2
 libdbi-perl : Depends: perlapi-5.18.1
 libperl5.18 : Depends: perl-base (= 5.18.2-2ubuntu1.7) but 5.22.1-9ubuntu0.9 is to be installed
 libsub-name-perl : Depends: perlapi-5.18.1
 libterm-readkey-perl : Depends: perlapi-5.18.1
 libtext-charwidth-perl : Depends: perlapi-5.18.1
 libtext-iconv-perl : Depends: perlapi-5.18.1
 libtext-soundex-perl : Depends: perlapi-5.18.1
 nagios3-cgi : Depends: libapache2-mod-php5 but it is not going to be installed or
                        php5 but it is not going to be installed or
                        php5-cgi but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).




guest11
() автор топика
Ответ на: комментарий от Vsevolod-linuxoid

Слишком большое сообщение


 apt list --installed 2>/dev/null | grep "/now"
accountsservice/now 0.6.35-0ubuntu7.1 amd64 [installed,upgradable to: 0.6.35-0ubuntu7.3]
apport/now 2.14.1-0ubuntu3.10 all [installed,upgradable to: 2.14.1-0ubuntu3.29]
apt-transport-https/now 1.0.1ubuntu2.7 amd64 [installed,upgradable to: 1.0.1ubuntu2.24]
apt-utils/now 1.0.1ubuntu2.7 amd64 [installed,upgradable to: 1.0.1ubuntu2.24]
autossh/now 1.4g-1+b1 amd64 [installed,local]
bash-completion/now 1:2.1-4.2ubuntu1.1 all [installed,local]
bind9-host/now 1:9.9.5.dfsg-3ubuntu0.2 amd64 [installed,upgradable to: 1:9.9.5.dfsg-3ubuntu0.19]
binutils/now 2.24-5ubuntu3.1 amd64 [installed,upgradable to: 2.24-5ubuntu14.2]
biosdevname/now 0.4.1-0ubuntu6.1 amd64 [installed,upgradable to: 0.4.1-0ubuntu6.3]
ca-certificates/now 20141019ubuntu0.14.04.1 all [installed,upgradable to: 20170717~14.04.2]




guest11
() автор топика
Ответ на: комментарий от ya-betmen

 apt purge -y nagios*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libnagios-object-perl' for regex 'nagios*'
Note, selecting 'uwsgi-plugin-nagios' for regex 'nagios*'
Note, selecting 'pnp4nagios-web' for regex 'nagios*'
Note, selecting 'nagios-nrpe-server' for regex 'nagios*'
Note, selecting 'nagios-plugins-contrib' for regex 'nagios*'
Note, selecting 'nagios-plugin-check-multi' for regex 'nagios*'
Note, selecting 'nagios' for regex 'nagios*'
Note, selecting 'nagios-text' for regex 'nagios*'
Note, selecting 'nagios-images' for regex 'nagios*'
Note, selecting 'nagios-nrpe-plugin' for regex 'nagios*'
Note, selecting 'nagios3-dbg' for regex 'nagios*'
Note, selecting 'gosa-plugin-nagios' for regex 'nagios*'
Note, selecting 'pnp4nagios-bin' for regex 'nagios*'
Note, selecting 'nagios3-core' for regex 'nagios*'
Note, selecting 'nagios3-common' for regex 'nagios*'
Note, selecting 'nagios-plugins-extra' for regex 'nagios*'
Note, selecting 'nagios-plugins-standard' for regex 'nagios*'
Note, selecting 'nagios-nrpe-doc' for regex 'nagios*'
Note, selecting 'nagios-plugins-openstack' for regex 'nagios*'
Note, selecting 'ndoutils-nagios3' for regex 'nagios*'
Note, selecting 'nagios3-doc' for regex 'nagios*'
Note, selecting 'nagios-snmp-plugins' for regex 'nagios*'
Note, selecting 'pnp4nagios' for regex 'nagios*'
Note, selecting 'nagios3-cgi' for regex 'nagios*'
Note, selecting 'nagios-plugins-basic' for regex 'nagios*'
Note, selecting 'libnagios-plugin-perl' for regex 'nagios*'
Note, selecting 'nagios-plugins-common' for regex 'nagios*'
Note, selecting 'check-mk-config-nagios3' for regex 'nagios*'
Note, selecting 'nagios2' for regex 'nagios*'
Note, selecting 'nagios3' for regex 'nagios*'
Note, selecting 'ndoutils-nagios2-mysql' for regex 'nagios*'
Note, selecting 'nagios-plugins' for regex 'nagios*'
Note, selecting 'ganglia-nagios-bridge' for regex 'nagios*'
Note, selecting 'gosa-plugin-nagios-schema' for regex 'nagios*'
Note, selecting 'ndoutils-nagios3-mysql' for regex 'nagios*'
Package 'nagios-nrpe-doc' is not installed, so not removed
Package 'nagios2' is not installed, so not removed
Package 'nagios' is not installed, so not removed
Package 'nagios-text' is not installed, so not removed
Package 'ndoutils-nagios3' is not installed, so not removed
Package 'ndoutils-nagios2-mysql' is not installed, so not removed
Package 'uwsgi-plugin-nagios' is not installed, so not removed
Package 'ganglia-nagios-bridge' is not installed, so not removed
Package 'gosa-plugin-nagios' is not installed, so not removed
Package 'gosa-plugin-nagios-schema' is not installed, so not removed
Package 'libnagios-object-perl' is not installed, so not removed
Package 'libnagios-plugin-perl' is not installed, so not removed
Package 'nagios-plugin-check-multi' is not installed, so not removed
Package 'nagios-plugins-contrib' is not installed, so not removed
Package 'nagios-plugins-extra' is not installed, so not removed
Package 'nagios-plugins-openstack' is not installed, so not removed
Package 'nagios-snmp-plugins' is not installed, so not removed
Package 'ndoutils-nagios3-mysql' is not installed, so not removed
Package 'pnp4nagios' is not installed, so not removed
Package 'pnp4nagios-bin' is not installed, so not removed
Package 'pnp4nagios-web' is not installed, so not removed
Package 'nagios3-dbg' is not installed, so not removed
Package 'nagios3-doc' is not installed, so not removed
Package 'check-mk-config-nagios3' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libdbd-mysql-perl : Depends: perlapi-5.18.2
 libdbi-perl : Depends: perlapi-5.18.1
 libperl5.18 : Depends: perl-base (= 5.18.2-2ubuntu1.7) but 5.22.1-9ubuntu0.9 is to be installed
 libsub-name-perl : Depends: perlapi-5.18.1
 libterm-readkey-perl : Depends: perlapi-5.18.1
 libtext-charwidth-perl : Depends: perlapi-5.18.1
 libtext-iconv-perl : Depends: perlapi-5.18.1
 libtext-soundex-perl : Depends: perlapi-5.18.1
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).





guest11
() автор топика