Apt 存储库未在 /etc/apt/sources.list 中列出

Apt 存储库未在 /etc/apt/sources.list 中列出

我已经安装了 amd gpu 驱动程序并结束了

但是现在,当我想要运行apt update命令时,我的 apt 命令中的 amd 存储库出现问题

这里访问 amd 的东西被 ISP 阻止了,这对我来说是个大问题,当我想更新我的 apt 命令时,我得到了错误,我试图从 /etc/apt/sources.list 中删除它,但没有 amd 存储库可以删除

你能说出要删除的存储库在哪里吗?

  GNU nano 5.4                                          /etc/apt/sources.list                                                   
# deb cdrom:[Debian GNU/Linux 11.2.0 _Bullseye_ - Official amd64 NETINST 20211218-11:12]/ bullseye main

# deb cdrom:[Debian GNU/Linux 11.2.0 _Bullseye_ - Official amd64 NETINST 20211218-11:12]/ bullseye main

deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main
deb-src http://security.debian.org/debian-security bullseye-security main

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bullseye-updates main
deb-src http://deb.debian.org/debian/ bullseye-updates main

而且当我想运行时我也会得到这个apt update

Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Ign:2 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu jammy InRelease                                                     
Hit:3 http://deb.debian.org/debian bullseye InRelease                                                                          
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease                                                                  
Err:5 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu jammy Release                                                       
  404  Not Found [IP: 8*******9 34897]
Hit:6 https://repo.protonvpn.com/debian stable InRelease                                                                       
Hit:7 https://repo.radeon.com/amdgpu/21.40.1/ubuntu focal InRelease             
Hit:8 https://repo.radeon.com/rocm/apt/debian ubuntu InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/ubuntuhandbook1/apps/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。APT 从和 中包含的所有文件ubuntuhandbook1读取源存储库。/etc/apt/sources.list/etc/apt/sources.list.d/

我的第一个想法是尝试检查 PPA 是否在该目录下的文件上定义。您可以使用 检查该目录的内容ls /etc/apt/sources.list.d。如果您确实在那里找到了 PPA,您可以完全删除该文件或将其移动到其他位置(即将mv /etc/apt/sources.list.d/foo.list ~其移动到您的主目录)。之后,尝试再次更新存储库apt update并查看结果。

如果此解决方案不起作用,请随意评论答案。祝你好运!

相关内容