我有一台自带 Ubuntu 的 System76 电脑,但我在上面安装了 xfce4,并做了其他更改,现在它实际上是 Xubuntu。它一直表现良好,但现在不会从 Focal 升级到 Jammy。它抱怨:
fwupd-signed gnome-software gnome-software-common gnome-software-plugin-snap ubuntu-software
我尝试过其他问题中涉及 apt --upgrade-only 的解决方案,但都没有帮助。其余的都很难理解,而且我不确定尝试它们是否安全,所以我把这个作为一个新问题来做。
第一个问题可能是:当我使用 lightdm 和 xfce 时,我是否需要 gnome-software 和 ubuntu-software?
阅读完答案 1 后,我做了一些更改并重试。失败了,如下所示...
Building dependency tree
Reading state information... Done
Calculating the changes
Calculating the changes
Error in sys.excepthook:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-5218svyf/DistUpgrade/DistUpgradeApport.py", line 49, in apport_crash
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 495, in <module>
def get_process_environ(proc_pid_fd: int) -> dict[str, str]:
TypeError: 'type' object is not subscriptable
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-5218svyf/jammy", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-5218svyf/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-5218svyf/DistUpgrade/DistUpgradeController.py", line 2042, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-5218svyf/DistUpgrade/DistUpgradeController.py", line 1991, in fullUpgrade
if not self.calcDistUpgrade():
File "/tmp/ubuntu-release-upgrader-5218svyf/DistUpgrade/DistUpgradeController.py", line 1100, in calcDistUpgrade
if not self.cache.installTasks(self.tasks):
AttributeError: 'DistUpgradeController' object has no attribute 'tasks'
=== Command terminated with exit status 1 (Sat Sep 7 18:27:32 2024) ===
似乎已经处理完触发器了。现在该做什么?
得知我最初的问题已得到解答后,我又提出了一个新问题,以调查为什么我在尝试更新时会崩溃。请参阅为什么 do-release-upgrade 在 Xubuntu 20.04.6 -> 22.04 上失败并出现错误?
完全不是。GNOME 软件是 APT/snaps 的前端,用于使用 GUI 安装/删除软件。Ubuntu 软件是 snaps(即 snap store)的前端。您始终可以使用命令行 APT/snap 来安装软件。
您可以删除这些软件并进行升级。如果您愿意,您可以在升级后重新安装这些软件。