首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Ubuntu更新到22.04.1 LTS失败,空错误消息

Ubuntu更新到22.04.1 LTS失败,空错误消息
EN

Ask Ubuntu用户
提问于 2022-12-10 08:07:53
回答 3查看 1.5K关注 0票数 5

升级到Ubuntu 22.04.1 LTS失败,出现e空错误消息。

发生了什么,

当消息弹出以升级到Ubuntu 22.04.1 LTS

在那里,我按了Upgrade键,得到了这条消息( Upgrade failed with the following output: )。

系统信息

代码语言:javascript
运行
复制
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.8
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.15.0-56-generic
OS Type: 64-bit

apt-获取更新

因为对于用户hensem,我尝试了这样的工作:apt-get update && apt-get dist-upgrade && do-release-upgrade ( https://forum.kde.org/viewtopic.php?f=309&t=164058&start=15 )

在那里我有错误

代码语言:javascript
运行
复制
Err:3 https://cli.github.com/packages stable InRelease                                                         
The following signatures couldn't be verified 
because the public key is not available: 
NO_PUBKEY 23F3D4EA75716059
Err:16 http://ppa.launchpad.net/yt-dlp/stable/ubuntu 
focal Release                                                           
  404  Not Found [IP: 2620:2d:4000:1::3e 80]

然后我用了三次

代码语言:javascript
运行
复制
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 
TheKeyFromCopyPast

取得的成果:

代码语言:javascript
运行
复制
gpg: key 23F3D4EA75716059: public key "GitHub CLI <opensource+cli@github.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

apt-get update && apt-get dist-upgrade && do-release-upgrade

代码语言:javascript
运行
复制
Ign:16 http://ppa.launchpad.net/yt-dlp/stable/ubuntu focal InRelease                                             
Err:17 http://ppa.launchpad.net/yt-dlp/stable/ubuntu focal Release                         
  404  Not Found [IP: 2620:2d:4000:1::3e 80]

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli.github.com/packages stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
E: The repository 'http://ppa.launchpad.net/yt-dlp/stable/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

do-release-upgrade

https://community.keyhelp.de/viewtopic.php?p=38404找到一个命令

代码语言:javascript
运行
复制
do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

那么,在升级之前,如何在没有错误的情况下为您的发行版安装所有可用的更新呢?

有什么想法吗?

EN

回答 3

Ask Ubuntu用户

发布于 2022-12-11 11:01:16

网络超载

我猜:周六这个任务的网络负载过重了。更新是新的,而且可能有很多人同时尝试做它。

我做了什么,

也许和我昨天做的事没有因果关系。也许是的。我做了以下工作:

释放了50 GB的硬盘空间。在10 GB之前是免费的。

尝试删除GitHub CLI及其公钥:

代码语言:javascript
运行
复制
sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub   rsa4096 2022-09-06 [SC] [expires: 2024-09-06]
      2C61 0620 1985 B60E 6C7A  C873 23F3 D4EA 7571 6059
uid           [ unknown] GitHub CLI <opensource+cli@github.com>
sub   rsa4096 2022-09-06 [E] [expires: 2024-09-06]

sudo apt-key del 23F3D4EA75716059
OK

然后阅读https://askubuntu.com/a/1407703/1017209

代码语言:javascript
运行
复制
sudo apt-key del "2C61 0620 1985 B60E 6C7A  C873 23F3 D4EA 7571 6059"
OK

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23F3D4EA75716059
Executing: /tmp/apt-key-gpghome.fW5y5VuWvv/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 23F3D4EA75716059
gpg: key 23F3D4EA75716059: public key "GitHub CLI <opensource+cli@github.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

但信息仍然不变:

代码语言:javascript
运行
复制
sudo apt update
Err:1 https://cli.github.com/packages stable InRelease                                                                           
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059

下一天

也许没有因果关系:

有视频聊天(Jitsi),写电子邮件(Webmail),玩开源游戏(0AD),散步,睡觉(坐到儿子)。我醒来后,当我打开电脑时,我立即又一次点击了升级(这一次,它通过时没有错误消息,没有中断)。

时间为: 32分钟(2022年12月11日星期日11:39- 11:07 )

票数 3
EN

Ask Ubuntu用户

发布于 2022-12-23 00:49:49

在阅读了上面的内容并获得了与空消息框相同的更新错误消息后,我查看了软件包的数据源库,发现除了microsoft (microsoft边缘稳定包)之外,没有什么不寻常的地方。我运行了一个"apt删除微软边缘稳定“,重新启动我的机器和更新运行没有任何问题。它确实删除了一些旧的/过时的/不兼容的包,但这通常不是一个问题。

我没有删除源代码,所以(如果需要的话)我可以重新安装边缘浏览器(不太可能)。

票数 1
EN

Ask Ubuntu用户

发布于 2022-12-10 19:44:02

几个月前我也经历过类似的情况。有机大理石的指导是完全有效的,但对我来说,它造成了其他问题,采取这种方法(也许是由于我自己的懒散)。如果您需要或更喜欢另一条路径,我所做的就是使用系统迁移工具阿普蒂克进行备份,然后从拇指驱动器重新安装。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1444919

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档