Debian9如何解決apt-get update提示錯誤
Debian9如何解決apt-get update提示錯誤

1.輸入該命令按回車鍵:cd /etc/apt

2.mv sources.list sources.list.back,輸入該命令按回車鍵

3.輸入該命令按回車鍵:vi sources.list

4.按“i”進入插入模式,輸入以下內容,然后按“ESC”鍵輸入wq按回車鍵保存退出vi編輯
deb //archive.debian.org/debian stretch maindeb-src //archive.debian.org/debian stretch maindeb //archive.debian.org/debian-security stretch/updates maindeb-src //archive.debian.org/debian-security stretch/updates main

5.輸入該命令按回車鍵可以正常執行:apt-get update -y


