因此,我最近尝试更新我的所有软件包,准备更新到 Pop!_OS 22.04,正如 system76 网站上所说的那样。
我运行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 包管理器时,转到状态,已损坏。在那里你会看到破损的包裹。单击第一个,编辑并强制版本并安装版本 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