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

Ali*_*taj 0 updates apt debian drivers

我已经安装了 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
Run Code Online (Sandbox Code Playgroud)

当我想跑步时我也会得到这个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.
Run Code Online (Sandbox Code Playgroud)

感谢您的阅读并可能有所帮助

Col*_*ado 9

看起来问题的根源是ubuntuhandbook1PPA。/etc/apt/sources.listAPT 从.txt 中包含的所有文件读取源存储库/etc/apt/sources.list.d/

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

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