我该如何解决?运行命令 sudo apt update && sudo apt upgrade

我该如何解决?运行命令 sudo apt update && sudo apt upgrade
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy InRelease                                              
Hit:6 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease                
Hit:7 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease              
Hit:8 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease     
Hit:9 https://ppa.launchpadcontent.net/ethereum/ethereum/ubuntu jammy InRelease
Err:10 https://ppa.launchpadcontent.net/boost-latest/ppa/ubuntu jammy Release

  404  Not Found [IP: 185.125.190.52 443]
Reading package lists... Done    
                          
E: The repository 'https://ppa.launchpadcontent.net/boost-latest/ppa/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

将来,你应该在 Google 上搜索 PPA(例如,在 Google 上搜索“ppa:boost-latest/ppa”),第一个结果应该是启动板页面

在安装 PPA 之前,请访问启动板页面。然后,向下滚动到已发布包的概述部分,然后点击下拉菜单发表于:任何系列(见下面的截图)。这将显示所有支持的 Ubuntu 版本。如果你没有看到你的 Ubuntu 版本列出,例如焦点20.04 或杰米对于 22.04,那么您无法使用 PPA,因为您的版本不受支持。

启动板页面的屏幕截图和已发布于的下拉菜单显示了 saucy raring quantail 和其他一些版本,但没有列出较新的、当前支持的 ubuntu 版本

现在,来解决这个问题。

首先,运行以下命令来卸载损坏的 PPA:

sudo add-apt-repository -r ppa:boost-latest/ppa
sudo apt update

您可能会注意到,这与用于添加存储库的命令相同,但选项-r已添加到消除PPA。

如果您仍然想要或需要最新的 C++ BOOST 库:

在 Google 上快速搜索“ubuntu libboost PPA”支持所有较新版本的 Ubuntu 的较新的 PPA例如 Jammy、Focal、Kinetic 等。

sudo add-apt-repository ppa:mhier/libboost-latest
sudo apt update

需要注意的是,不建议安装来自互联网上随机人员的第三方软件存储库。安全基于信任,只有当您愿意信任该人在您的系统上运行其代码时,您才应该安装来自第三方的软件。

此外,可能还有其他替代方案。可能有来自其他人或组织的另一个 PPA,因此,再次在 Google 上搜索,您可能会找到更好的。您可能还会找到其他人成功使用此特定 PPA 的示例,这可能是您至少有信心它可以正常工作的一个原因。

但请记住,人们经常在 Windows 上使用第三方软件,这是 Windows 出现如此多病毒的众多原因之一。

相关内容