操作系统:Ubuntu20.04。
root@la425:~# apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Ign:2 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-security InRelease
Err:9 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu focal Release
404 Not Found [IP: 91.189.95.83 80]
Hit:3 https://downloads.mariadb.com/MariaDB/mariadb-10.4/repo/ubuntu focal InRelease
Ign:7 https://downloads.mariadb.com/MaxScale/2.4/ubuntu focal InRelease
Hit:10 https://downloads.mariadb.com/Tools/ubuntu focal InRelease
Err:11 https://downloads.mariadb.com/MaxScale/2.4/ubuntu focal Release
404 Not Found [IP: 104.20.67.208 443]
Reading package lists... Done
N: Ignoring file 'mariadb.list.old_1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'mariadb.list.old_2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: The repository 'http://ppa.launchpad.net/chris-lea/redis-server/ubuntu focal 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://downloads.mariadb.com/MaxScale/2.4/ubuntu focal 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.发布于 2020-06-02 07:09:05
根据apt过程的输出,您似乎手动添加了一些其他非官方存储库,这是可以的。但是在这样做的时候,你必须确保他们支持你的操作系统口味,或者至少dists是存在的。您不能仅仅添加focal并希望它能够工作。
当手动浏览到https://downloads.mariadb.com/MaxScale/2.4/ubuntu时,没有名为focal的dist,这解释了404 Not Found错误。http://ppa.launchpad.net/chris-lea/redis-server/ubuntu也是如此。
错误N: Ignoring file 'mariadb.list.old_1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension本身说了一点,应该被修正。您可以在这里阅读更多关于管理源代码和回购清单的信息:储存库/Ubuntu
https://askubuntu.com/questions/1246009
复制相似问题