Debian9更換可用軟件源
Debian9更換可用軟件源
由于debian9 停止維護,目前可用的軟件源如下:
deb //archive.debian.org/debian/ stretch main contrib non-freedeb-src //archive.debian.org/debian/ stretch main contrib non-freedeb //archive.debian.org/debian-security/ stretch/updates main contrib non-freedeb-src //archive.debian.org/debian-security/ stretch/updates main contrib non-freedeb //archive.debian.org/debian/ stretch-backports main contrib non-free
1.設置軟件源
cat >/etc/apt/sources.list<
2.更新軟件源: apt update -y
3.提示gpg證書錯誤處理
報錯信息:
W: GPG error: //archive.debian.org/debian stretch-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
安裝需要的依賴和軟件:
apt-get install software-properties-common dirmngr -y
添加gpg證書驗證:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 0E98404D386FA1D9
4.再次執行更新軟件源:apt update -y