그래서 최근 system76 웹사이트에 명시된 대로 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
.
어떤 도움이라도 대단히 감사하겠습니다.
추신: 이전에 사람들이 비슷한 문제를 겪었다는 것을 알고 있지만 이러한 솔루션으로는 문제를 해결할 수 없었습니다(또는 제가 멍청한 것일 수도 있습니다).
답변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