如何解决 Ubuntu 中 apt-update 提供的错误?

如何解决 Ubuntu 中 apt-update 提供的错误?

几天前我曾尝试安装 sosumi。从那时起我就没用过我的电脑,现在我尝试运行后sudo apt update,出现了以下情况:

Hit:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease                      
Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease                  
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease              
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease               
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease            
Hit:6 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease     
Ign:7 https://ppa.launchpadcontent.net/maarten-baert/simplescreenrecorder/ubuntu jammy InRelease
Ign:8 https://ppa.launchpadcontent.net/mc3man/xerus-media/ubuntu jammy InRelease
Hit:9 https://ppa.launchpadcontent.net/obsproject/obs-studio/ubuntu jammy InRelease
Err:10 https://ppa.launchpadcontent.net/maarten-baert/simplescreenrecorder/ubuntu jammy Release
  404  Not Found [IP: 185.125.190.52 443]
Err:11 https://ppa.launchpadcontent.net/mc3man/xerus-media/ubuntu jammy Release
  404  Not Found [IP: 185.125.190.52 443]
Reading package lists... Done                              
E: The repository 'https://ppa.launchpadcontent.net/maarten-baert/simplescreenrecorder/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.
E: The repository 'https://ppa.launchpadcontent.net/mc3man/xerus-media/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.

我尝试了几种解决方法,但都不起作用。有什么解决办法吗?

答案1

您有两个 PPA 没有适用于 Jammy 的版本:

https://ppa.launchpadcontent.net/maarten-baert/simplescreenrecorder/ubuntu https://ppa.launchpadcontent.net/mc3man/xerus-media/ubuntu

您应该/etc/apt/sources.list.d编辑这些 PPA 的相应文件(这可能会或可能不会按预期工作)。或者,您可以使用以下命令完全禁用它们:focaljammy

sudo add-apt-repository --remove ppa:maarten-baert/simplescreenrecorder
sudo add-apt-repository --remove ppa:mc3man/xerus-media

相关内容