だから私は最近、system76のWebサイトに記載されているように、Pop!_OS 22.04アップデートを準備するためにすべてのパッケージをアップデートしようとしました。
私はsudo apt update
それを実行し、次のような結果を得ます。
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://apt.pop-os.org/proprietary jammy InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:4 http://apt.pop-os.org/release jammy InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Fetched 110 kB in 2s (61.2 kB/s)
appstreamcli: symbol lookup error: appstreamcli: undefined symbol: AS_SYSTEM_COLLECTION_METADATA_PATHS
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1139 packages can be upgraded. Run 'apt list --upgradable' to see them.
今実行すると、sudo apt upgrade
次のエラーが発生します。
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
evolution-data-server : Depends: libedataserver-1.2-26 (= 3.40.4-1ubuntu1) but 3.44.0-2 is installed
libebackend-1.2-10 : Depends: libedataserver-1.2-26 (= 3.40.4-1ubuntu1) but 3.44.0-2 is installed
libebook-1.2-20 : Depends: libedataserver-1.2-26 (= 3.40.4-1ubuntu1) but 3.44.0-2 is installed
libebook-contacts-1.2-3 : Depends: libedataserver-1.2-26 (= 3.40.4-1ubuntu1) but 3.44.0-2 is installed
libecal-2.0-1 : Depends: libedataserver-1.2-26 (= 3.40.4-1ubuntu1) but 3.44.0-2 is installed
libedata-book-1.2-26 : Depends: libedataserver-1.2-26 (= 3.40.4-1ubuntu1) but 3.44.0-2 is installed
libedata-cal-2.0-1 : Depends: libedataserver-1.2-26 (= 3.40.4-1ubuntu1) but 3.44.0-2 is installed
libedataserverui-1.2-3 : Depends: libedataserver-1.2-26 (= 3.40.4-1ubuntu1) but 3.44.0-2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
実行時のsudo apt --fix-broken install
出力は次のとおりです。
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
cryptsetup-run gcc-11-base:i386 libcamel-1.2-62 libgphoto2-l10n libgranite5 libllvm13:i386 libomp5-13 libperl5.32 libperl5.32:i386 libssl1.1:i386 libwebp6:i386 ltrace perl-modules-5.32
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
evolution-data-server libebackend-1.2-10 libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26 libedata-cal-2.0-1 libedataserverui-1.2-3
Suggested packages:
evolution
The following packages will be upgraded:
evolution-data-server libebackend-1.2-10 libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26 libedata-cal-2.0-1 libedataserverui-1.2-3
8 upgraded, 0 newly installed, 0 to remove and 1131 not upgraded.
190 not fully installed or removed.
Need to get 0 B/1,685 kB of archives.
After this operation, 30.7 kB of additional disk space will be used.
Do you want to continue? [Y/n]
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
libglib2.0-0:i386 depends on libpcre3; however:
Package libpcre3:i386 is not configured yet.
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
libglib2.0-0:i386 depends on libpcre3; however:
Package libpcre3:i386 is not configured yet.
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
libglib2.0-0:i386 depends on libpcre3; however:
Package libpcre3:i386 is not configured yet.
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
libglib2.0-0:i386 depends on libpcre3; however:
Package libpcre3:i386 is not configured yet.
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
libglib2.0-0:i386 depends on libpcre3; however:
Package libpcre3:i386 is not configured yet.
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
libglib2.0-0:i386 depends on libpcre3; however:
Package libpcre3:i386 is not configured yet.
(*The message above was repeated around 20-ish times*)
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: too many errors, stopping
No apport report written because MaxReports is reached already
Errors were encountered while processing:
libglib2.0-0:i386
libglib2.0-0:i386
libglib2.0-0:i386
libglib2.0-0:i386
(*This also was repeated aboout 20 times*)
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
これで、パッケージをインストール、クリーンアップ、再インストールまたは実行できなくなりますsudo apt autoremove
。
どんな助けでも大変感謝します。
PS:以前は人々が同様の問題を抱えていたことを知っていますが、これらの解決策では問題を解決できませんでした(または私は愚かなものかもしれません)。
答え1
問題を解決するために私がしたことは、dpkg
すべてのパッケージを実行して再構成することでした。
sudo dpkg --configure -a
再起動すると、システムのアップグレードを完了できます。
答え2
こんにちは、この問題があって解決しました。まだインストールしていない場合は、Synaptic Package Managerをインストールする必要があります。
Synaptic Package Managerを開くと、Broken状態に移動します。そこから破損したパッケージを見ることができます。最初のものをクリックしてバージョンを編集して強制し、バージョン1.2-26をインストールします。
これにより正常にアップグレードでき、破損したパッケージが修正されます。数日間この問題が発生しましたが、昨日解決して22.04にアップグレードしました。
答え3
端末でこれを試してください。
sudo apt clean
sudo apt update -m
sudo dpkg --configure -a
sudo apt install -f
sudo apt dist-upgrade
sudo apt autoremove --purge