Linux apt更换国内软件源

1585364631
2022-04-19 / 0 评论 / 220 阅读 / 正在检测是否收录...

Linux apt更换国内软件源

1.编辑apt源文件

vim /etc/apt/sources.list

2.注释官方源,添加国内源

# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
#deb http://http.kali.org/kali kali-rolling main contrib non-free
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free

3.更新源

apt-get dist-upgrade
apt-get update
0

评论 (0)

取消