
使用命令時我收到以下訊息(尾部)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.
此外,以下儲存庫花費了太多時間:
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 --remove 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/ubuntu謝尼爾主要'