当我尝试使用“sudo apt update”进行更新时,出现此错误
Hit:5 https://dl.google.com/linux/chrome/deb stable InRelease.
Err:7 http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu jammy Release
404 Not Found [IP: 2001:67c:1560:8008::19 80]. Err:8 http://ppa.launchpad.net/webupd8team/java/ubuntu jammy Release
404 Not Found [IP: 2001:67c:1560:8008::19 80].
和
E: The repository 'http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/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 'http://ppa.launchpad.net/webupd8team/java/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.
N: Skipping acquire of configured file 'main/binary-1386/Packages' as repository 'https://http.kali.org/kali kali-rolling InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'contrib/binary-1386/Packages' as repository 'https://http.kali.org/kali kali-rolling InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'non-free/binary-1386/Packages' as repository 'https://http.kali.org/kali kali-rolling InRelease' doesn't support architecture '1386'
有人能帮忙吗?
答案1
您连接到 apt 存储库的证书似乎已过期和/或不属于您或操作系统需要连接的版本。删除现有的 PPA,所以就您而言,
sudo add-apt-repository --remove ppa:cybermax-dexter/sdl2-backport
sudo add-apt-repository --remove ppa:webupd8team/java
然后更新
sudo apt-get update
然后尝试从 Kali 的存储库中找到您需要下载的确切资源。
如果您仍然需要添加存储库,请确认您尝试添加的存储库是否包含您要查找的包。在你的情况下,去这里并检查您的包是否在 Sources.gz 文件中可用。如果他们不这样做,你就走进了死胡同。 [也许是因为那里的最新源是仿生海狸(Ubuntu 18)的,他们理所当然地不再维护它。]
如果您仍然需要在 Kali 上使用 ubuntu 的二进制文件(嘿,linux 适合您,为了自由,请使用最新的存储库来做到这一点。)