You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 18.04.6 LTS无法升级至20.04的故障排查求助

Ubuntu 18.04.6 LTS无法升级至20.04的故障排查求助

大家好,我用Ubuntu已经很多年了(这台电脑上用了大概10年),之前每次跨版本升级都没出过问题,但这次从18.04.6 LTS升级到20.04却卡壳了。目前遇到了三类不同的故障,两类是通过软件更新器操作时出现的,一类是用终端执行升级命令时碰到的,具体情况如下:

故障类型1:软件更新器间歇性提示无法下载仓库信息

  • 现象:尝试启动升级时,会弹出提示“Failed to download repository information”“Check your Internet connection.”,这个问题时好时坏,偶尔能成功加载仓库信息。但其他所有应用联网都完全正常,我的网络稳定性很好,下载速度一直能保持在10Mbps以上。

故障类型2:软件更新器在设置新软件源步骤失败并回滚

  • 现象:成功下载仓库信息后,启动升级流程,但在第2步“Setting new software channels”时直接失败,之后系统会自动回滚到当前的18.04版本,升级彻底失败。

故障类型3:终端执行升级时出现GPG密钥验证错误

在终端执行升级相关命令后,出现了以下密钥验证失败的错误信息:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.canonical.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: Some index files failed to download. They have been ignored, or old ones used instead.

我自己猜测可能是系统没有从正确的软件仓库拉取信息,但不知道该怎么配置才能引导电脑切换到合适的源,也有可能是其他我没考虑到的问题。有没有大佬能给点排查思路或者解决建议?非常感谢!

备注:内容来源于stack exchange,提问作者David

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 14:24:10