web-dev-qa-db-ja.com

すべての「aptアップグレード」または類似のもの->次のパッケージには依存関係が満たされていない

私はこのコマンドをエラーで実行しました:

Sudo dpkg -auto-deconfigure -i libc6_2.29-0ubuntu2_AMD64.deb

そして今私はこの問題を抱えています:

a16jorgetc@lnxd-i4e01:~$ Sudo apt 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
         Breaks: nscd (< 2.29)
         Breaks: nscd:i386 (< 2.29)
         Recommends: libidn2-0 (>= 2.0.5~) but 2.0.4-1.1build2 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
 nscd : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
a16jorgetc@lnxd-i4e01:~$ 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
         Breaks: nscd (< 2.29)
         Breaks: nscd:i386 (< 2.29)
         Recommends: libidn2-0 (>= 2.0.5~) but 2.0.4-1.1build2 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
 nscd : Depends: libc6 (< 2.28) but 2.29-0ubuntu2 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
a16jorgetc@lnxd-i4e01:~$ apt-cache policy libc-bin libc6
libc-bin:
  Installed: 2.27-3ubuntu1
  Candidate: 2.27-3ubuntu1
  Version table:
 *** 2.27-3ubuntu1 500
        500 http://reposteis.ateis.local/ubuntu bionic/main AMD64 Packages
        500 http://archive.ubuntu.com/ubuntu bionic/main AMD64 Packages
        100 /var/lib/dpkg/status
libc6:
  Installed: 2.29-0ubuntu2
  Candidate: 2.29-0ubuntu2
  Version table:
 *** 2.29-0ubuntu2 100
        100 /var/lib/dpkg/status
     2.27-3ubuntu1 500
        500 http://reposteis.ateis.local/ubuntu bionic/main AMD64 Packages
        500 http://archive.ubuntu.com/ubuntu bionic/main AMD64 Packages

Ubuntu 18.04.3 LTS x86_64を持っています

誰でも私がこの問題を解決するのを手伝ってくれる?

ありがとう

2
jorgeteixe

正しいバージョンから正しいパッケージを再インストールすることで問題を解決しました:

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 upgrade

'guiverc'に感謝

2
jorgeteixe