运行 apt update 导致 404 未找到支持的版本

运行 apt update 导致 404 未找到支持的版本

当我运行时sudo apt update,出现 404 Not Found 错误:

me@K2SO:~$ sudo apt update
Ign:1 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  InRelease
Hit:2 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Release                                                                                    
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                            
Hit:4 http://packages.microsoft.com/repos/vscode stable InRelease                                                                                                                       
Hit:5 http://security.ubuntu.com/ubuntu disco-security InRelease                                                                                                                        
Hit:6 http://us.archive.ubuntu.com/ubuntu disco InRelease                                                                                                                      
Hit:7 https://updates.signal.org/desktop/apt xenial InRelease                                                                                   
Hit:8 http://dl.google.com/linux/chrome/deb stable Release          
Hit:9 http://us.archive.ubuntu.com/ubuntu disco-updates InRelease   
Hit:11 http://ppa.launchpad.net/samoilov-lex/sway/ubuntu disco InRelease
Hit:12 http://us.archive.ubuntu.com/ubuntu disco-backports InRelease
Ign:13 http://ppa.launchpad.net/simonschneegans/testing/ubuntu disco InRelease
Hit:15 http://ppa.launchpad.net/snwh/ppa/ubuntu disco InRelease
Err:16 http://ppa.launchpad.net/simonschneegans/testing/ubuntu disco Release
  404  Not Found [IP: 91.189.95.83 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/simonschneegans/testing/ubuntu disco 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.

据我了解,19.04 目前仍受支持,没有其他可升级的版本。我尝试使用解决方案此处概述但那是 2014 年的事了,而且没有起到作用。

我该如何修复这个错误?

答案1

PPAhttp://ppa.launchpad.net/simonschneegans/testing/ubuntu尚不支持 disco,但他们支持 cosmic。

让我们修复这个问题...

使用 搜索要编辑的适当 .list 文件,grep -i simonschneegans /etc/apt/sources.list.d/*.list然后使用 编辑 {found_file_name}sudo -H gedit /etc/apt/sources.list.d/found_file_name.list并更改迪斯科宇宙的

相关内容