使用该命令时,我收到以下消息(尾部)sudo apt-get update
Fetched 280 kB in 6min 15s (744 B/s)
Reading package lists... Done
W: GPG error: http://ftp.fr.debian.org/debian sid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: The repository 'http://ftp.fr.debian.org/debian sid InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://mirrors.linsrv.net/mariadb/repo/10.0/debian wheezy Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://mirrors.linsrv.net/mariadb/repo/10.0/debian/dists/wheezy/main/binary-amd64/Packages Something wicked happened resolving 'mirrors.linsrv.net:http' (-5 - No address associated with hostname)
E: Some index files failed to download. They have been ignored, or old ones used instead.
此外,在以下 repo 中花费的时间太多:
http://mirrors.linsrv.net/mariadb/repo/10.0/debian wheezy/main
答案1
至少对于第一个警告,解决方案是使用以下命令添加/更新新的 GPG 密钥:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010
对于 mariadb 中的错误,该存储库已过时;您需要删除旧存储库。添加新的 GPG 密钥和新的存储库地址(https://downloads.mariadb.org/mariadb/repositories/#mirror=tedeco&distro=Ubuntu&distro_release=xenial--ubuntu_xenial&version=10.2):
sudo add-apt-repository——删除 ppa:http://mirrors.linsrv.net/mariadb/repo/10.0/debian/dists/wheezy/main/binary-amd64/Packages
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el]http://tedeco.fi.upm.es/mirror/mariadb/repo/10.0/ubuntuxenial 主要'