无法使用 sudo apt-get update

无法使用 sudo apt-get update

我使用的是 Debian 11,这些时候我在命令方面遇到了很多问题,但最奇怪的是我无法再更新,当我尝试时,我得到了这个:

E: The repository 'http://archive.ubuntu.com/ubuntu wily 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: Failed to fetch https://sourceforge.net/projects/madlinux/files/repo/dists/core/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://sourceforge.net/projects/madlinux/files/repo core InRelease' is no longer signed.
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.
W: GPG error: http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu kinetic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 957D2708A03A4626
E: The repository 'http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu kinetic InRelease' is not signed.
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

您正在使用 Debian,所以您不应该尝试从 Ubuntu 存储库更新。删除这些文件/etc/apt/sources.list及其下的任何文件/etc/apt/sources.list.d/,然后使用来自 Debian 的

deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free

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

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free

相关内容