Ошибка версии Libc

Я использовал ubuntu 18.04 и пытался обновить пакет libc с 2.27 до 2.29, но оказалось, что это плохая идея, и я получаю сообщение об ошибке каждый раз, когда пытаюсь

sudo apt-get upgrade

Сообщение об ошибке:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed
 libc-dev-bin : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed
 libc6 : Breaks: locales (< 2.29) but 2.27-3ubuntu1 is installed
         Recommends: libidn2-0 (>= 2.0.5~) but 2.0.4-1.1ubuntu0.2 is installed
         Breaks: libc6:i386 (!= 2.29-0ubuntu2) but 2.27-3ubuntu1 is installed
 libc6:i386 : Breaks: libc6 (!= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-dbg : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-dev : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-i386 : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

То, что я пробовал:

sudo apt autoremove

И он дает ту же ошибку

sudo apt --fix-broken install

, он дает сообщение об ошибке:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed
 libc-dev-bin : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed
 libc6 : Breaks: locales (< 2.29) but 2.27-3ubuntu1 is installed
         Recommends: libidn2-0 (>= 2.0.5~) but 2.0.4-1.1ubuntu0.2 is installed
         Breaks: libc6:i386 (!= 2.29-0ubuntu2) but 2.27-3ubuntu1 is installed
 libc6:i386 : Breaks: libc6 (!= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-dbg : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-dev : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-i386 : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

еще одно:

sudo apt install -f

Сообщение об ошибке

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed
 libc-dev-bin : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed
 libc6 : Breaks: locales (< 2.29) but 2.27-3ubuntu1 is installed
         Recommends: libidn2-0 (>= 2.0.5~) but 2.0.4-1.1ubuntu0.2 is installed
         Breaks: libc6:i386 (!= 2.29-0ubuntu2) but 2.27-3ubuntu1 is installed
 libc6:i386 : Breaks: libc6 (!= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-dbg : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-dev : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
 libc6-i386 : Depends: libc6 (= 2.27-3ubuntu1) but 2.29-0ubuntu2 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
0
задан 4 December 2019 в 12:50

1 ответ

Попробуйте выполнить следующие команды:

wget http://fr.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.27-3ubuntu1_amd64.deb
sudo dpkg -i libc6_2.27-3ubuntu1_amd64.deb
sudo apt --fix-broken install
sudo apt upgrade
0
ответ дан 4 February 2021 в 07:59

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

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