Ubuntu 18.04の壊れた依存関係:

トーマス

私は最近、Ubuntubionicでdist-upgradeを実行しました。dist-upgradeは、シャッターやピジンなど、私が保持するつもりだったいくつかのソフトウェアの削除に進みました。これらとgcc-multilibをインストールしようとすると、満たされていない依存関係エラーが発生しました。これを修正するために、私はこのリンクをたどりましたaptitudeを試したところ、gcc-multilibのインストールの途中でdpkgエラーが発生してクラッシュしました。

dpkg: error processing package libc6:amd64 (--configure):
 installed libc6:amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent processing triggers for libc-bin:
 libc-bin depends on libc6 (>> 2.28); however:
  Version of libc6:amd64 on system is 2.27-3ubuntu1.
 libc-bin depends on libc6 (<< 2.29); however:
  Package libc6:amd64 is not configured yet.

dpkg: error processing package libc-bin (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for man-db:
 man-db depends on libc6 (>= 2.17); however:
  Package libc6:amd64 is not configured yet.

現在、apt-getのアップグレードでさえ失敗しても、何かをインストールしようとして立ち往生しています。どんな助けでも大歓迎です。

$ 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.27-3ubuntu1 is installed
 libc6-dbg : Depends: libc6 (= 2.28-8) but 2.27-3ubuntu1 is installed
 libev-perl : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
 libperl5.28 : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
 perl-base : PreDepends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

$ sudo apt -f 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.27-3ubuntu1 is installed
 libc6-dbg : Depends: libc6 (= 2.28-8) but 2.27-3ubuntu1 is installed
 libev-perl : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
 libperl5.28 : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
 perl-base : PreDepends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

$ apt-mark showhold   
$ dpkg -l | grep "^hi"

どうやら保留中のパッケージはありません。

一部の情報:メイン、制限付き、ユニバース、マルチバース、バイオニックアップデート、バイオニックセキュリティが有効になっています。y-ppa-managerを除いて、他のすべてのppaは無効化またはパージされています。さらに詳しい情報が必要な場合は、お知らせください。

アップデート1:次のコマンドを実行してバージョンをダウングレードしようとしましたが、続行する方法がわかりません。

$ sudo apt install libc-bin=2.27-3ubuntu1 libc6-dbg=2.27-3ubuntu1 libev-
perl=4.22-1build2 perl-base=5.26.1-6ubuntu0.3                          
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:
 libalgorithm-diff-xs-perl : Depends: perlapi-5.28.0
 libanyevent-perl : Depends: perlapi-5.28.1
                    Recommends: libguard-perl but it is not going to be installed
 libapt-pkg-perl : Depends: perl-base (>= 5.28.0-3) but 5.26.1-6ubuntu0.3 is to be installed
                   Depends: perlapi-5.28.0
 libasync-interrupt-perl : Depends: perlapi-5.28.0
 libbit-vector-perl : Depends: perlapi-5.28.0
 libcairo-gobject-perl : Depends: perlapi-5.28.0
 libcairo-perl : Depends: perlapi-5.28.0
 libclone-perl : Depends: perlapi-5.28.0
 libcommon-sense-perl : Depends: perlapi-5.28.1
 libdate-calc-xs-perl : Depends: perlapi-5.28.0
 libfcgi-perl : Depends: perlapi-5.28.0
 libfile-fcntllock-perl : Depends: perlapi-5.28.0
 libglib-object-introspection-perl : Depends: perlapi-5.28.1
 libglib-perl : Depends: perlapi-5.28.1
 libhtml-parser-perl : Depends: perlapi-5.28.0
 libio-pty-perl : Depends: perlapi-5.28.0
 libjson-xs-perl : Depends: perlapi-5.28.0
 liblist-moreutils-perl : Depends: perlapi-5.28.0
 liblocale-gettext-perl : PreDepends: perl-base (>= 5.28.0-3) but 5.26.1-6ubuntu0.3 is to be installed
                          PreDepends: perlapi-5.28.0
 libnet-dbus-perl : Depends: perlapi-5.28.0
 libnet-libidn-perl : Depends: perlapi-5.28.0
 libnet-ssleay-perl : Depends: perlapi-5.28.0
 libpango-perl : Depends: perlapi-5.28.0
 libpcsc-perl : Depends: perlapi-5.28.0
 libperl5.28 : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is to be installed
 libperlio-gzip-perl : Depends: perlapi-5.28.0
 libsocket6-perl : Depends: perlapi-5.28.0
 libsub-name-perl : Depends: perlapi-5.28.0
 libtext-charwidth-perl : Depends: perl-base (>= 5.28.0-3) but 5.26.1-6ubuntu0.3 is to be installed
                          Depends: perlapi-5.28.0
 libtext-iconv-perl : Depends: perl-base (>= 5.28.0-3) but 5.26.1-6ubuntu0.3 is to be installed
                      Depends: perlapi-5.28.0
 libunicode-linebreak-perl : Depends: perlapi-5.28.1
 libunicode-map-perl : Depends: perlapi-5.28.0
 libxml-libxml-perl : Depends: perlapi-5.28.1
 libxml-parser-perl : Depends: perlapi-5.28.1
 libyaml-libyaml-perl : Depends: perlapi-5.28.1
 locales : Depends: libc-bin (> 2.28)
 perl : Depends: perl-base (= 5.28.1-6) but 5.26.1-6ubuntu0.3 is to be installed
 perl-modules-5.28 : Depends: perl-base (>= 5.28.1-1) but 5.26.1-6ubuntu0.3 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

アップデート2:packages.ubuntu.comにあるすべてのパッケージの正確なバージョンを指定し、aptitudeとapt-getの両方で実行する長いコマンドを使用して、多くの依存関係を修正することができました。現在、最後のいくつかのパッケージを解決しようとしていますが、次の問題が発生しました。

$ sudo apt-get install perl-base=5.26.1-6ubuntu0.3 locales=2.27-3ubuntu1 libanyevent-perl=7.140-2 libc-bin=2.27-3ubuntu1 libev-perl=4.22-1build2 liblocale-gettext-perl=1.07-3build2 libxml-libxml-perl=2.0128+dfsg-5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libevent-perl libio-async-perl libpoe-perl libtask-weaken-perl
Recommended packages:
  libguard-perl
The following NEW packages will be installed:
  locales
The following packages will be DOWNGRADED:
  libanyevent-perl libc-bin libev-perl liblocale-gettext-perl libxml-libxml-perl perl-base
0 upgraded, 1 newly installed, 6 downgraded, 0 to remove and 8 not upgraded.
37 not fully installed or removed.
Need to get 0 B/6570 kB of archives.
After this operation, 12.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
/usr/bin/perl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/bin/perl)
Setting up libc6:amd64 (2.27-3ubuntu1) ...
/usr/bin/perl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/bin/perl)
dpkg: error processing package libc6:amd64 (--configure):
 installed libc6:amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

どうやら、パッケージのインストールに必要なperlを使用するには、GLIBC_2.28をインストールする必要がありますが、それは私が移行したいバージョンです。つまり、2.27に戻りたいのです。

アップデート3

$ apt list --installed | grep -v bionic
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Listing...
containerd.io/now 1.2.5-1 amd64 [installed,local]
distro-info-data/now 0.37ubuntu0.4 all [installed,upgradable to: 0.37ubuntu0.5]
gemalto-smartcard0/now 161-2 amd64 [installed,local]
google-chrome-stable/now 74.0.3729.131-1 amd64 [installed,local]
icaclient/now 13.10.0.20 amd64 [installed,local]
ipsec-tools/now 1:0.8.2+20140711-12 amd64 [installed,local]
libanyevent-perl/now 7.140-3 amd64 [installed,local]
libboost-date-time1.62.0/now 1.62.0+dfsg-10+b1 amd64 [installed,local]
libboost-filesystem1.62.0/now 1.62.0+dfsg-10+b1 amd64 [installed,local]
libboost-serialization1.62.0/now 1.62.0+dfsg-10+b1 amd64 [installed,local]
libboost-system1.62.0/now 1.62.0+dfsg-10+b1 amd64 [installed,local]
libboost-thread1.62.0/now 1.62.0+dfsg-10+b1 amd64 [installed,local]
libc-bin/now 2.28-8 amd64 [installed,local]
libc-l10n/now 2.28-8 all [installed,local]
libev-perl/now 4.25-1 amd64 [installed,local]
libfl2/now 2.6.4-6.2 amd64 [installed,local]
libgdbm-compat4/now 1.18.1-4 amd64 [installed,local]
libgdbm6/now 1.18.1-4 amd64 [installed,local]
libidn2-0/now 2.0.5-1 amd64 [installed,local]
liblocale-gettext-perl/now 1.07-3+b4 amd64 [installed,local]
libssl1.1/now 1.1.1b-1 amd64 [installed,local]
libxml-libxml-perl/now 2.0134+dfsg-1 amd64 [installed,local]
nessus/now 6.9.1 amd64 [installed,local]
pcsc-tools/now 1.5.4-1 amd64 [installed,local]
pdftk/now 3.0.0~malteworld1 all [installed,local]
pdftk-java/now 3.0.0~malteworld1 all [installed,local]
perl-base/now 5.28.1-6 amd64 [installed,local]
realpath/now 8.26-3ubuntu4 all [installed,local]
rocketchat/now 2.14.7-1215 amd64 [installed,local]
sublime-text/now 3207 amd64 [installed,local]
unattended-upgrades/now 1.1ubuntu1.18.04.10 all [installed,upgradable to: 1.1ubuntu1.18.04.11]
トーマス

packages.ubuntu.comでperl-basedebパッケージを手動でダウンロードし、次のコマンドを実行することで問題を修正できましたsudo dpkg -i perl-base_5.26.1-6ubuntu0.3_amd64.deb。これはperl-baseのダウングレードに成功したようですが、いくつかの依存関係エラーが報告されました。その後、aptitudeは、他のlibc6パッケージをダウングレードすることにより、他の競合を解決することができました。最後のステップとして、アップデート3にリストされている公式リポジトリにないすべてのパッケージをチェックし、不要になったパッケージを削除します。

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Ubuntu18のOpenPrintingキー

分類Dev

Ubuntu18のOpenPrintingキー

分類Dev

Ubuntu 18NFSの変更

分類Dev

Ubuntu 18LTSでのg ++の問題

分類Dev

Ubuntu 18の醜いロック画面?

分類Dev

ubuntu18のPythonパス変数

分類Dev

Ubuntu 12.04:MonoDevelopの「壊れたパッケージ」/「満たされていない依存関係」エラーのインストール

分類Dev

壊れた依存関係の問題は、Ubuntu 14.04.3の最初のインストールの直後に直面していますか?

分類Dev

Ubuntu 16.04にアップグレードされ、MySQL-pythonの依存関係が壊れる

分類Dev

UbuntuでのMegasync(依存関係)

分類Dev

ubuntu 16.04aptパッケージのインストールと依存関係が壊れています

分類Dev

WSL、Ubuntu 16,04:壊れた状態のapt-cache

分類Dev

Android Studio Fall 2018 Ubuntu 16/18用のJDKはどれ?

分類Dev

Ubuntu 18:日付が約17秒遅れている

分類Dev

Ubuntu 18:日付が約17秒遅れている

分類Dev

Steam / Ubuntuヘルプ-壊れたパッケージ/満たされていない依存関係-アップグレードできません

分類Dev

Netbeansのは、Ubuntuの18で開きません

分類Dev

Ubuntu16.04へのlibmysqlclient18のインストール

分類Dev

Razer Blade ubuntu18画面の更新の問題

分類Dev

バッテリーの使用を停止する [Ubuntu 18]

分類Dev

Node の Shebang 行が Ubuntu 18 で機能しない

分類Dev

DNSMasqの問題(ポート53エラー、Ubuntu 18)

分類Dev

BigBlueButton:Ubuntu10.04で満たされていない依存関係

分類Dev

System wide sound equalizer? ubuntu 18

分類Dev

Installing libmysqlclient18 on Ubuntu 16.04

分類Dev

Windows7とUbuntu18?

分類Dev

TeamViewer. Cannot Control remote Ubuntu 18

分類Dev

Ubuntu18でSpyder3を開くときに依存関係が欠落するとキーリングエラーが発生しますか?

分類Dev

ubuntu-minimal 18:04 ssh経由でログインする方法は?

Related 関連記事

  1. 1

    Ubuntu18のOpenPrintingキー

  2. 2

    Ubuntu18のOpenPrintingキー

  3. 3

    Ubuntu 18NFSの変更

  4. 4

    Ubuntu 18LTSでのg ++の問題

  5. 5

    Ubuntu 18の醜いロック画面?

  6. 6

    ubuntu18のPythonパス変数

  7. 7

    Ubuntu 12.04:MonoDevelopの「壊れたパッケージ」/「満たされていない依存関係」エラーのインストール

  8. 8

    壊れた依存関係の問題は、Ubuntu 14.04.3の最初のインストールの直後に直面していますか?

  9. 9

    Ubuntu 16.04にアップグレードされ、MySQL-pythonの依存関係が壊れる

  10. 10

    UbuntuでのMegasync(依存関係)

  11. 11

    ubuntu 16.04aptパッケージのインストールと依存関係が壊れています

  12. 12

    WSL、Ubuntu 16,04:壊れた状態のapt-cache

  13. 13

    Android Studio Fall 2018 Ubuntu 16/18用のJDKはどれ?

  14. 14

    Ubuntu 18:日付が約17秒遅れている

  15. 15

    Ubuntu 18:日付が約17秒遅れている

  16. 16

    Steam / Ubuntuヘルプ-壊れたパッケージ/満たされていない依存関係-アップグレードできません

  17. 17

    Netbeansのは、Ubuntuの18で開きません

  18. 18

    Ubuntu16.04へのlibmysqlclient18のインストール

  19. 19

    Razer Blade ubuntu18画面の更新の問題

  20. 20

    バッテリーの使用を停止する [Ubuntu 18]

  21. 21

    Node の Shebang 行が Ubuntu 18 で機能しない

  22. 22

    DNSMasqの問題(ポート53エラー、Ubuntu 18)

  23. 23

    BigBlueButton:Ubuntu10.04で満たされていない依存関係

  24. 24

    System wide sound equalizer? ubuntu 18

  25. 25

    Installing libmysqlclient18 on Ubuntu 16.04

  26. 26

    Windows7とUbuntu18?

  27. 27

    TeamViewer. Cannot Control remote Ubuntu 18

  28. 28

    Ubuntu18でSpyder3を開くときに依存関係が欠落するとキーリングエラーが発生しますか?

  29. 29

    ubuntu-minimal 18:04 ssh経由でログインする方法は?

ホットタグ

アーカイブ