广告

本站里的文章大部分经过自行整理与测试

2017年5月19日星期五

Kali Linux - 修改 sources.list

安装了 Kali Linux 
https://www.kali.org/downloads/

但用的时候发现 sudo apt-get update 竟然没有更新任何软件源
所以也只有自行加入了..

1) 检查 kali 的版本

$ lsb_release -a

2) 修改 sources.list (以下只需选一个软件源来用)

$ su
$ leafpad /etc/apt/sources.list

# 官方源
# deb http://http.kali.org/kali kali-rolling main non-free contrib
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib

# 中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib


# 阿里云
# 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

# 清华大学
# deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free

# 浙大
# deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
# deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free

# 东软大学
# deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
# deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib

# 重庆大学
# deb http://http.kali.org/kali kali-rolling main non-free contrib
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib

3) 更新

$ apt-get update

没有评论:

发表评论