Ubuntu 20.04 上的 sudo apt update

Ubuntu 20.04 上的 sudo apt update

我在外部硬盘上安装了 Ubuntu

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

Ubuntu 版本

尝试 sudo apt update 时出现错误

sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu jammy InRelease                                      
Hit:3 http://deb.anydesk.com all InRelease                                                     
Ign:4 http://packages.ros.org/ros/ubuntu jammy InRelease                 
Err:5 http://packages.ros.org/ros/ubuntu jammy Release
  404  Not Found [IP: 64.50.233.100 80]
Reading package lists... Done
E: The repository 'http://packages.ros.org/ros/ubuntu jammy 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.
W: http://deb.anydesk.com/dists/all/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

错误1

或者甚至当我使用命令 sudo apt-get update 时:

sudo apt-get update
Hit:1 http://deb.anydesk.com all InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu jammy InRelease                                                  
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                                           
Ign:4 http://packages.ros.org/ros/ubuntu jammy InRelease
Err:5 http://packages.ros.org/ros/ubuntu jammy Release
  404  Not Found [IP: 140.211.166.134 80]
Reading package lists... Done
W: http://deb.anydesk.com/dists/all/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: The repository 'http://packages.ros.org/ros/ubuntu jammy 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.

错误2

我还查看了sudo apt update 错误但看起来毫无希望

我还检查了评论中建议的问题答案:

如果存储库/PPA 没有 Release 文件,我该怎么办?

并运行代码

sudo add-apt-repository --remove ppa:mc3man/trusty-media

sudo apt-get update

但得到了同样的错误

难道我的——点击数:1http://de.archive-- 存在什么问题?

答案1

  1. 转到程序菜单或按下键盘上的窗口来显示它。

  2. 选择软件和更新程序或在菜单中搜索并打开它。

  3. 确保这些选项卡“Ubuntu 软件和更新”中标记了更新选项,您还可以查看同一程序中的其他软件选项卡。

  4. 标记要求密码的框后,单击“关闭”,单击“从新窗口重新加载”并等待其完成更新缓存,然后尝试在终端中更新。

相关内容