这不是如何在使用PPA或更新包列表时修复404错误?的副本
当我运行sudo apt update时,我得到了错误:
Hit:1 https://linux.teamviewer.com/deb stable InRelease
...
Hit:15 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Err:16 http://ppa.launchpad.net/morphis/anbox-support/ubuntu focal InRelease
403 Forbidden [IP: 185.125.190.52 80]
Hit:17 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/morphis/anbox-support/ubuntu/dists/focal/InRelease 403 Forbidden [IP: 185.125.190.52 80]
E: The repository 'http://ppa.launchpad.net/morphis/anbox-support/ubuntu focal 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.我得到了一个403 Forbidden。
我找到了我试过的这个如何在使用PPA或更新包列表时修复403禁止错误?
sudo add-apt-repository -r ppa:morphis/anbox-support但我发现了一个错误:
Cannot add PPA: 'ppa:~morphis/ubuntu/anbox-support'.
The user named '~morphis' has no PPA named 'ubuntu/anbox-support'
Please choose from the following available PPAs:
* 'ffmpeg': FFMpeg backport
* 'intel-media': Intel Media Driver Backport
* 'mesa': Mesa patches
* 'scrcpy': scrcpy
* 'staging': Package staging area
* 'touch-staging': Touch Staging我怎么才能解决这个问题?
发布于 2023-03-21 18:07:16
它就在你的输出中
The user named '~morphis' has no PPA named 'ubuntu/anbox-support'您得到的是403错误,而不是仅仅由于Launchpad服务器设置导致的404错误。
通过删除不存在的apt源代码,您可以完全相同地解决403和404问题。
如何做到这一点在如何在使用PPA或更新包列表时修复404错误?上得到了彻底的解释。
发布于 2023-03-21 18:06:20
由于sudo add-apt-repository -r ppa:morphis/anbox-support不起作用,我列出了ls -al /etc/apt/sources.list.d的所有源代码:
drwxr-xr-x 2 root root 4096 Mar 21 10:57 ./
drwxr-xr-x 8 root root 4096 Mar 21 14:00 ../
-rw-r--r-- 1 root root 112 Mar 21 10:57 docker.list
-rw-r--r-- 1 root root 112 Mar 21 10:57 docker.list.save
-rw-r--r-- 1 root root 189 Mar 21 10:57 google-chrome.list
-rw-r--r-- 1 root root 189 Mar 21 10:57 google-chrome.list.save
-rw-r--r-- 1 root root 142 Mar 21 10:57 graphics-drivers-ubuntu-ppa-focal.list
-rw-r--r-- 1 root root 142 Mar 21 10:57 graphics-drivers-ubuntu-ppa-focal.list.save
-rw-r--r-- 1 root root 144 Mar 21 10:57 morphis-ubuntu-anbox-support-focal.list
-rw-r--r-- 1 root root 144 Mar 21 10:57 morphis-ubuntu-anbox-support-focal.list.save
-rw-r--r-- 1 root root 89 Mar 21 10:57 mssql-release.list
-rw-r--r-- 1 root root 89 Mar 21 10:57 mssql-release.list.save
-rw-r--r-- 1 root root 122 Mar 21 10:57 ondrej-ubuntu-php-focal.list
-rw-r--r-- 1 root root 122 Mar 21 10:57 ondrej-ubuntu-php-focal.list.save
-rw-r--r-- 1 root root 50 Mar 21 10:57 symfony-cli.list
-rw-r--r-- 1 root root 50 Mar 21 10:57 symfony-cli.list.save
-rw-r--r-- 1 root root 1255 Mar 21 10:57 teamviewer.list
-rw-r--r-- 1 root root 1255 Mar 21 10:57 teamviewer.list.save我手动删除了morphis-ubuntu-anbox-support-focal.list和morphis-ubuntu-anbox-support-focal.list.save:
sudo rm morphis-ubuntu-anbox-support-focal.list
sudo rm morphis-ubuntu-anbox-support-focal.list.save现在一切都很好
https://askubuntu.com/questions/1460289
复制相似问题