你好,我有一个 Linux 服务器(debian 10 buster)
输入命令后:sudo apt-get update
用于更新
显示错误:
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org buster/updates InRelease
Get:4 http://apt.postgresql.org/pub/repos/apt buster-pgdg InRelease [110 kB]
Ign:5 http://ppa.launchpad.net/ondrej/pkg-gearman/ubuntu impish InRelease
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu impish InRelease [23.9 kB]
Hit:7 https://packages.sury.org/php buster InRelease
Err:8 http://ppa.launchpad.net/ondrej/pkg-gearman/ubuntu impish Release
404 Not Found [IP: 1200:89c:6950:8000::17 80]
Get:9 http://apt.postgresql.org/pub/repos/apt buster-pgdg/main amd64 Packages [246 kB]
Err:6 http://ppa.launchpad.net/ondrej/php/ubuntu impish InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4E..
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/ondrej/pkg-gearman/ubuntu impish 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: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu impish InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4E.....
E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu impish 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.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/php.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/php.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/php.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/php.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/php.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/php.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/php.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/php.list:1 and /etc/apt/sources.list.d/php7.list:1
请问我该如何解决这个问题?
答案1
您指向的存储库不支持impish
.支持的 Ubuntu 的最新版本似乎是focal
. PPA 一段时间后变得不再维护的情况并不少见。这可能就是这里发生的事情。
当您使用 Debianbuster
作为主要源时,您只需添加适用于 Debian 的源buster
。不支持将 Ubuntu 存档添加到 Debian 计算机。
我快速浏览了一下Debian 档案软件包php-gearman
可在 Debian 存档中找到。因此,我建议简单地删除 PPA 和sudo apt install php-gearman
.这将安装一个php-gearman
肯定能与您系统的其余部分配合使用的版本。
建议使用 PPA 的教程并不罕见。这通常是由开发人员编写的,他建议您使用该软件的最新版本,而不是经过发行版审核的稳定版本。但只有稳定版本才能在您的系统上运行。 不要患上闪亮新事物综合症。