可以使用 sudo apt update

可以使用 sudo apt update
himanshu_chhatwal@Himanshu:~$ sudo apt update 
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease                         
Hit:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease                 
Hit:3 https://ppa.launchpadcontent.net/blaze/rtbth-dkms/ubuntu jammy InRelease 
Hit:4 https://ppa.launchpadcontent.net/kiwixteam/release/ubuntu jammy InRelease
Hit:5 https://deb.nodesource.com/node_19.x jammy InRelease                     
Hit:6 http://packages.microsoft.com/repos/code stable InRelease                
Get:7 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]                 
Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease                
Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:10 http://security.ubuntu.com/ubuntu impish-security InRelease
Err:11 http://security.ubuntu.com/ubuntu impish-security Release
  404  Not Found [IP: 185.125.190.36 80]
Reading package lists... Done                                                  
E: The repository 'http://security.ubuntu.com/ubuntu impish-security 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.
W: https://dl.yarnpkg.com/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11-icons-hidpi (main/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target DEP-11-icons-hidpi (main/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/focal-security.list:1`

请帮助我,因为我陷入困境

答案1

我看到了来自三个不同版本的源代码,包括一个已经过期的版本。还有许多重复的源代码。还有不少于五个 PPA 和其他非 Ubuntu 源代码。这证明了 Debian 和 Ubuntu 开发人员的技能,这个拼凑起来的怪物完全可以胜任。

建议:备份您的数据,然后从头开始,重新安装。您从这次迭代中学到了很多东西,请将这些经验带到下一次迭代中:

  • 切勿混合不同 Ubuntu 版本的源代码。
  • 除非您知道如何维护 PPA 和非 Ubuntu 源,否则请避免使用它们。请记住,如果它们导致版本冲突,您可能需要删除它们(及其所有软件包)。
  • 如果您想要在旧的 LTS 版本上使用较新的软件,请寻找 Snaps 而不是 PPA 或非 Ubuntu deb 源。
  • 花几分钟时间学习如何管理你的资源。查看格式、每个文件的用途、每个存储库的用途、这些资源如何驱动apt update以及如何使用输出来解决大量问题。

相关内容