Debian9如何解决apt-get update提示错误

发布时间:2026-02-04 20:32:43 浏览次数:0

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 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.输入该命令按回车键可以正常执行:apt-get update -y

需要做网站?需要网络推广?欢迎咨询客户经理 13272073477