kali linux修改更新源及更新

一、修改sources.list源文件:

leafpad /etc/apt/sources. list
#aliyun 阿里雲
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

# ustc 中科大
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.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free

# kali 官方源
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://security.kali.org/kali-security kali-rolling/updates main contrib non-free
#deb-src http://security.kali.org/kali-security kali-rolling/updates main contrib non-free

 

二、更新一下源:

1 apt-get update

 

三、開始更新軟件:

1 ape-get upgrade

 

四、更新系統:

1 apt-get dist-upgrade

 

五、清理安裝包:

1 apt-get clean
2 apt-get autoclean
相關文章
相關標籤/搜索