Gnome Shell 在最新更新后损坏

Gnome Shell 在最新更新后损坏

在最新更新后,我无法访问 Ubuntu 22.04 上的 GUI。当系统完成更新并重新启动时,我看到一个黑色的终端屏幕,要求我输入登录名和密码。我尝试了 sudo apt update 和 upgrade,结果如下:

gnome-shell:依赖:gnome-shell-common(= 42.5-0ubuntu1)但需要安装 42.9-0ubuntu2

推荐:gdm3 (>= 3.10.0.1-3~) 但不会安装 推荐:ubuntu-session 但不会安装或 gnome-session 但不会安装

E:无法修复错误,但您保留(持有)了损坏的包裹。

编辑2:这解决了我的问题。 https://askubuntu.com/a/1051125/1711715

编辑:Sudo apt update && upgrade 输出:

Hit:1 http://br.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://br.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Get:4 http://br.archive.ubuntu.com/ubuntu jammy-backports InRelease [100kb]
Hit:5 https://dl.google.com/Linux/chrome/Deb stable InRelease
Hit:6 http://security.ubuntu.com/Ubuntu jammy-security InRelease
Hit:7 https://ppa.launchpadcontent.net/lutris-team/lutris/Ubuntu jammy InRelease
Fetching 108kb in 1s (85,2 kb/s)
Reading package list... Done
Building dependency tree... Done
Reading state information... Done
2 can be upgraded. Run 'apt list --upgradable' to see them.
The following packages will be kept at the current version:
 initramfs-tools initramfs-tools-core
0 upgraded, 0 newly installed, 0 to removed and 2 not upgraded.


答案1

刚刚在笔记本电脑上也出现了同样的错误,距最初发布者发布错误已经过去了 7 天,修复

让我详细解释一下我的分析和采取的步骤。也许有人能更好地找出原因!

背景和根本原因

先说背景,这是一台旧的笔记本电脑,我已经几个月没用了。我应用了所有升级,重启后,电脑就只剩下一个 shell 了。

尝试过startx,但是没有用,我收到一条白色消息,提示 gnome 出了问题。

明显的解决办法是重新安装ubuntu-gnome-desktop

sudo apt install --reinstall ubuntu-gnome-desktop

失败了,因为版本冲突gnome-shell-common

gnome-shell: depends: gnome-shell-common (= 42.5-0ubuntu1) but 42.9-0ubuntu2 is to be installed

这很奇怪!我尝试安装该版本,但它在存储库中不存在:

apt install gnome-shell-common=42.5\*

修复本地仓库

所以我对这些存储库产生了怀疑。我使用的是西班牙语存储库 (ES),因此将其更改为标准存储库:

  • 通过打开/etc/apt/sources.list
  • 并替换域名:
# from this:
deb http://es.archive.ubuntu.com/ubuntu/ jammy main restricted
# to this:
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted

之后,我运行apt updateapt upgrade。令人惊讶的是!它有许多需要更新的软件包。

成功!

有了这个新的可用软件包,我再次重新安装了ubuntu-gnome-desktop,这次它按预期工作了(gnome-shell 上没有错误消息

sudo apt install --reinstall ubuntu-gnome-desktop

它按预期工作,gnome 启动了,它已修复,我很高兴!

仅供参考,我使用的是gnome-shell-common最新版本 (42.9-0ubuntu2)。不知道为什么它要求使用旧版本,我猜是因为 ES repo 已弃用?

怀疑

我很怀疑,但没有证据证明这可能有关:

  • 我刚刚从折断商店应用程序,显示一些错误
  • 我有 gnome-tweaks 和类似的软件包

结论

    1. 这意味着ES 语言环境仓库损坏,对吧?它是最新的吗?
    1. 原始海报(auroravenue)的系统具有BR 语言环境,也许那个 repo 也是错的?

相关内容