Debian9如何解決apt-get update提示錯(cuò)誤
Debian9如何解決apt-get update提示錯(cuò)誤
1.輸入該命令按回車鍵:cd /etc/apt
2.mv sources.list sources.list.back,輸入該命令按回車鍵
3.輸入該命令按回車鍵:vi sources.list
4.按“i”進(jìn)入插入模式,輸入以下內(nèi)容,然后按“ESC”鍵輸入wq按回車鍵保存退出vi編輯
deb http://archive.debian.org/debian stretch maindeb-src http://archive.debian.org/debian stretch maindeb http://archive.debian.org/debian-security stretch/updates maindeb-src http://archive.debian.org/debian-security stretch/updates main
5.輸入該命令按回車鍵可以正常執(zhí)行:apt-get update -y