我将 Ubuntu 24.04 升级到 Ubuntu 24.10,Prism Launcher(经过修改的 Minecraft 启动器)被卸载了。这该如何解释?我只是想知道,因为我认为它不会干扰任何系统软件包,无论如何我都可以稍后再安装它。它是通过 apt 安装的。
大约一年前,我从 Windows 10 换到了 Ubuntu。我在一台配备 Core i7 处理器的戴尔 3700 上运行 KDE Plasma 6.2。这是一台小型台式机,配有 500GB SSD 内置驱动器和 100GB 外置 SSD,内存为 3G2GB。它在 BIOS 中显示为 Inspiron。
上周,我收到一个提示,要求我将操作系统升级到 Ubuntu 24.04,当我选择升级时,系统彻底崩溃了。我终于安装了 Plasma 6.2,在完成所有系统安全更新后,我仍然收到一个提示,要求我将操作系统从 Ubuntu 升级。
当我接受升级提示时,我的系统彻底崩溃了。事实上,情况非常糟糕,技术人员甚至无法弄清楚,我被迫购买一台新电脑。
现在,在安装 KDE Plasma 并升级到 6.2 后,我收到了相同的升级到 Ubuntu 24.04 的通知。在完成所有这些工作(传输了 2,700 张照片、我的手稿等)后,我就是无法决定是否继续并单击接受升级。我应该升级吗?
尝试从 22.04 升级到 24,现在 GUI 无法运行。我也无法从命令行连接到 Wi-Fi。
当我尝试重新启动时networkmanager
,它说library curl
缺少一些内容,但我无法下载它。我还收到一个libgio not found
错误。
我该怎么办?我应该尝试从 USB 运行它吗?还是一切都消失了?我是否可以libgio-2.0
以某种方式从 USB 复制文件,然后将它们粘贴到需要的地方?
我最近通过通知将 Ubuntu Studio 从 22.04 LTS 升级到了 24.04 LTS,我发现我以前安装的许多软件包(我认为它们应该是 Ubuntu Studio 发行版的一部分)似乎都丢失了 [1]。我觉得我还遇到了其他一些奇怪的现象,例如输出lsb_release -a
如下:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble
我相当确定以前报告的是“Ubuntu Studio”而不是“Ubuntu”。我记错了吗?
[1] 例如,Studio Controls 未安装,并且现在似乎安装了 PulseAudio 而不是 PipeWire。
正常更新可以顺利进行,但发布升级到下一个 LTS 却不行。
幸运的是,我在 script(1) 命令下使用了 do-release-upgrade,因此我捕获了输出。它太长了,无法在这里全部放出来。简而言之,就是有关于 GitHub 凭证的投诉,然后升级回到原始状态。
但首先要提到的另一个问题是:输出建议在 Ubuntu 网站上获取帮助的网页。但我查看的那个建议使用一个名为“xchat”的应用程序,但当我使用建议的 apt-get 命令安装它时,该应用程序似乎不存在(在我的 Xubuntu Jammy 中)。所以放弃了 Ubuntu 直接帮助,我希望在这里得到更好的答案。
我不知道问题发生的原因,甚至不知道到底出了什么问题,所以我需要帮助进行诊断和修复。
以下是该投诉的一些背景:
Reading state information... Done
Get:1ahttps://cli.github.com/packageststablerInReleaseu[3,917[B]itingafornheaders]aders]]
Hit http://us.archive.ubuntu.com/ubuntuojammyrInReleaseu.com] [Waiting for headers]
Hit https://dl.google.com/linux/chrome/debestable.InReleasem] [Waiting for headers]
Err https://cli.github.com/packagesnstableeInReleaseuntu.com]
The following signatures were invalid: EXPKEYSIG 23F3D4EA75716059 GitHub CLI <[email protected]>
```Reading state information... Done
Get:1ahttps://cli.github.com/packageststablerInReleaseu[3,917[B]itingafornheaders]aders]]
Hit http://us.archive.ubuntu.com/ubuntuojammyrInReleaseu.com] [Waiting for headers]
Hit https://dl.google.com/linux/chrome/debestable.InReleasem] [Waiting for headers]
Err https://cli.github.com/packagesnstableeInReleaseuntu.com]
The following signatures were invalid: EXPKEYSIG 23F3D4EA75716059 GitHub CLI <[email protected]>
然后
Third party sources disabled
Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.
To continue please press [ENTER]
然后下载完之后就报错:
Hit[http://security.ubuntu.com/ubuntuonoble-security.InRelease125.190.80)]]
Hit[http://ppa.launchpad.net/system76-dev/stable/ubuntu noble InRelease
Fetchedk0nB]in 0s (0 B/s)
Error during update
A problem occurred during the update. This is usually some sort of
network problem, please check your network connection and retry.
Restoring original system state
我没有看到网络问题。我通常的测试是“ping 8.8.8.8”,它会 ping 一个 Google 服务器,这个很容易记住,而且似乎是一个不错的连接测试(不包括域名服务器)。
那么我怎样才能找出真正的问题并怎样解决它呢?
固件包未安装。
dpkg-deb (subprocess): decompressing archive '/var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb' (size=483854410)
member 'data.tar': zstd error: Data corruption detected
我尝试强制重新安装并重新下载软件包,但错误仍然出现。我该如何修复它。完整命令输出如下:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb
(Reading database ... 312180 files and directories currently installed.)
Preparing to unpack .../linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb ...
Unpacking linux-firmware (20240318.git3b128b60-0ubuntu2.4) over (20220329.git681281e4-0ubuntu3.34) ...
dpkg-deb (subprocess): decompressing archive '/var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb' (size=483854410) member 'data.tar': zstd error: Data corruption detected
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb (--install):
cannot copy extracted data for './lib/firmware/mrvl/pcieuart8997_combo_v4.bin.zst' to '/lib/firmware/mrvl/pcieuart8997_combo_v4.bin.zst.dpkg-new': unexpected end of file or stream
update-initramfs: Generating /boot/initrd.img-6.8.0-45-generic
update-initramfs: Generating /boot/initrd.img-5.15.0-122-generic
dracut-install: could not get modinfo from 'cicada': Exec format error
dracut-install: could not get modinfo from 'cortina': Exec format error
dracut-install: could not get modinfo from 'dp83822': Exec format error
dracut-install: could not get modinfo from 'dp83867': Exec format error
dracut-install: could not get modinfo from 'dp83848': Exec format error
dracut-install: could not get modinfo from 'dp83640': Exec format error
dracut-install: could not get modinfo from 'bcm54140': Exec format error
dracut-install: could not get modinfo from 'bcm7xxx': Exec format error
dracut-install: could not get modinfo from 'davicom': Exec format error
dracut-install: could not get modinfo from 'broadcom': Exec format error
dracut-install: could not get modinfo from 'et1011c': Exec format error
dracut-install: could not get modinfo from 'bcm87xx': Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/bcm54140.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/bcm7xxx.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/bcm87xx.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/broadcom.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/cicada.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/cortina.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/davicom.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/dp83640.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/dp83822.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/dp83848.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/dp83867.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/et1011c.ko: Exec format error
update-initramfs: Generating /boot/initrd.img-5.15.0-112-generic
update-initramfs: Generating /boot/initrd.img-5.15.0-97-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb
从 Ubuntu 22.04 升级到 Ubuntu 24.04 后,我不得不重新安装 Inkscape,由于某种原因,它在升级过程中被删除了。我尝试了三种安装方法,但都没有完全成功:
sudo apt install inkscape
=> 结果:inkscape 无法启动(分段错误,可能是LP 错误 #2079921)sudo add-apt-repository ppa:inkscape.dev/stable && sudo apt install inkscape
=> 结果:inkscape 无法启动(分段错误,与上述相同的错误?)sudo snap install inkscape
=> 结果:Inkscape 启动(耶!)。但它无法导出文件(导出为 PDF 是我的主要用例)。用于选择要导出的文件名的小部件在 snap 包中不起作用,单击它时它不会执行任何操作。如果没有文件名,导出会抛出错误。与Inkscape snap 包无法导出 png 的情况相同。
人们如何在 Ubuntu 24.04 中使用 Inkscape?接下来的步骤是什么?Flatpak?从源代码构建?
笔记:
- 我注意到还有一个附加的
ppa:inkscape.dev/stable-daily
,但是这个据称每日更新的 PPA 在过去 4 个月内都没有更新,这让我认为它也不再维护了。 - 我读过关于 Inkscape 在 Wayland 中与某些平板电脑崩溃的错误报告。我断开了平板电脑的连接,结果还是一样(崩溃)。
升级到 24.04.1 失败,并显示一条消息,提示我需要在安装之前进行所有更新。如您在附加日志中看到的,我已尝试进行所有更新,但某些“esm-apps”更新未安装,我需要安装 Ubuntu Pro 来更新它们。我假设这些更新不是进行更新所必需的。
有一系列 dotnet 更新未安装,但我之前已删除 dotnet。这些更新是否阻碍了升级?如果是,我可以删除它们吗?
顺便说一句,我也尝试了软件更新程序,但它退出时没有任何消息。:-(
问候
$ sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 https://packages.microsoft.com/repos/vscode stable InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:8 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Hit:9 https://packages.microsoft.com/repos/code stable InRelease
Hit:10 https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 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
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
libheif1 libjs-jquery-ui libpathplan4 graphviz libgvpr2 libgvc6 libopenexr25
python3-scipy libcgraph6 libmagickcore-6.q16-6-extra libcdt5
libmagickwand-6.q16-6 imagemagick-6.q16 libmagickcore-6.q16-6 liblab-gamut1
imagemagick-6-common libde265-0 libpmix2
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
dotnet-hostfxr-7.0 ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
$ do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
$ sudo apt list --upgradeable -a
Listing... Done
dotnet-hostfxr-7.0/jammy-updates,jammy-security 7.0.119-0ubuntu1~22.04.1 amd64 [upgradable from: 7.0.5-1]
dotnet-hostfxr-7.0/jammy 7.0.20-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.19-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.18-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.17-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.16-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.15-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.14-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.13-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.12-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.11-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.10-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.9-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.8-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.7-1 amd64
dotnet-hostfxr-7.0/jammy,now 7.0.5-1 amd64 [installed,upgradable to: 7.0.119-0ubuntu1~22.04.1]
dotnet-hostfxr-7.0/jammy 7.0.4-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.3-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.2-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.1-1 amd64
dotnet-hostfxr-7.0/jammy 7.0.0-1 amd64
$ sudo apt remove dotnet
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'dotnet' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
我正在尝试使用 do-release-upgrade 将 Digital Ocean 的 ubuntu VM 从 20.04.6 升级到 22.04.5。我通过 SSH 连接。
不幸的是,这不是直接的,它要求我在升级之前安装所有可用的更新。
在开始之前,我创建了一个快照,以便在出现任何问题时快速恢复。
按照论坛上的说明操作时,系统建议我运行sudo apt full-upgrade
。运行并重新启动后,机器拒绝连接(这意味着它进入了无法启动的状态)。它甚至无法从 Digital Ocean 控制面板内的控制台进行连接,更不用说通过 SSH 了。
恢复快照后,我尝试按照这篇文章中的说明进行操作。运行后sudo apt-get dist-upgrade
,重新启动后出现了同样的问题。
尝试sudo do-release-upgrade
在不重新启动的情况下运行将会下载并安装升级,但最终机器仍然无法启动。
那么,我这里遗漏了什么?有什么提示吗?
[更新]
我能够通过手动运行sudo apt list --upgradable
并安装所有必需的更新sudo apt-get install
,并在autoremove
必要时应用。现在我的系统已完全升级。但在运行时sudo do-release-upgrade
,在完成漫长的升级过程后,系统变得无法启动。我甚至尝试关闭 droplet 并再次打开它,但没有成功使其联机。我将恢复快照并尝试进一步调查。