apt 更新源

编辑 /etc/apt/sources.list(一般权限不够,需修改下权限)

清空文件内所有内容后添加,

deb http://mirrors.ustc.edu.cn/kali kali-rolling main contrib non-free

或者

deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib



保存退出

更新

依次运行以下命令

apt-get update
apt-get upgrade
apt-get dist-upgrade

完成

posted @ 2018-02-26 14:38  猴子1  阅读(880)  评论(0编辑  收藏  举报