从Fedora40 升级到 Fedora44

前几天开机,通知说说系统马上不支持了。于是我想,要不干脆还是升个级吧。尽管升了级可能没有啥实质性的性能提升。但最更新以后总觉得跟上了时代啊。

我的fedora系统是这样(uname -a)

Linux fedora 6.14.5-100.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May  2 14:22:13 UTC 2025 x86_64 GNU/Linux

然后先更新

sudo dnf upgrade --refresh

最新版好像是44,要不就直接升级吧。AI说就这么干,

sudo dnf system-upgrade download --releasever=44 --allowerasing

结果最后出问题了,运行

sudo dnf system-upgrade reboot

显示

error: system is not ready for upgrade

我问AI可能是什么原因。它说,官方说一下子升级4个版本不支持,建议两级两级的升。我xxx,此处省略x个字。之前那个命令我下载了4127个文件,运行了5个小时。你现在告诉我不能这样。你当初是拿我开涮是吗?

然后删掉中间残留

sudo dnf system-upgrade clean
sudo dnf clean all

重新来

sudo dnf system-upgrade download --releasever=42 --allowerasing

又是5个小时的样子,然后还是

error: system is not ready for upgrade

一定有鬼。我重跑

sudo dnf upgrade --refresh

发现

Last metadata expiration check: 0:24:15 ago on Thu 10 Sep 2026 10:51:49 AM CST.
Package dnf-plugins-core-4.10.1-1.fc40.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Fedora 40 - x86_64                                                                                                                                                               291  B/s | 4.0 kB     00:14    
Fedora 40 openh264 (From Cisco) - x86_64                                                                                                                                         1.1 kB/s | 989  B     00:00    
Fedora 40 - x86_64 - Updates                                                                                                                                                     2.5 kB/s | 4.0 kB     00:01    
google-chrome                                                                                                                                                                    6.8 kB/s | 1.3 kB     00:00    
Dependencies resolved.
=================================================================================================================================================================================================================
 Package                                                  Architecture                               Version                                             Repository                                         Size
=================================================================================================================================================================================================================
Upgrading:
 google-chrome-stable                                     x86_64                                     153.0.8010.36-1                                     google-chrome                                     138 M

Transaction Summary
=================================================================================================================================================================================================================
Upgrade  1 Package

Total size: 138 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] google-chrome-stable-153.0.8010.36-1.x86_64.rpm: Already downloaded                                                                                                                                   
google-chrome                                                                                                                                                                     78 kB/s |  19 kB     00:00    
GPG key at https://dl.google.com/linux/linux_signing_key.pub (0xD38B4796) is already installed
The GPG keys listed for the "google-chrome" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: google-chrome-stable-153.0.8010.36-1.x86_64
 GPG Keys are configured as: https://dl.google.com/linux/linux_signing_key.pub

Try to add '--enableplugin=expired-pgp-keys' to resolve the problem. Note: This plugin might not be installed by default, as it is part of the 'dnf-plugins-core' package.

The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

原来Google密钥已过期。然后

sudo dnf system-upgrade download --releasever=42 --allowerasing --enableplugin=expired-pgp-keys

然后接下来又是4-5个小时。然后,

sudo dnf system-upgrade reboot

系统就升级为42了。

接下来继续

sudo dnf system-upgrade download --releasever=44 --allowerasing

又是4-5个小时。最后

sudo dnf system-upgrade reboot

终于升级到了44。最后别忘了来一个,

sudo dnf upgrade

现在是

Linux fedora 7.2.4-200.fc44.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Sep  7 19:10:19 UTC 2026 x86_64 GNU/Linux

还好这台电脑目前没有急活,要不然真的急。整了快一周才更新成功。 看样子AI还不能轻信啊,可能多问几个AI比较稳。

Comments

← 随笔 Blog AI是一个太监? →