我刚刚安装了 kali linux 并尝试使用更新 apt-get update
但没有任何反应
这是我的来源列表
#deb cdrom:[Debian GNU/Linux 2018.1 _Kali-rolling_ -
Official Snapshot amd64 LIVE/INSTALL Binary 20180126-21:23]/ kali-last-snapshot contrib
main non-free
deb http://http.kali.org/kali kali-rolling main non-free contrib
# deb-src
答案1
编辑您的sources.list,如下所示:
#deb cdrom:[Debian GNU/Linux 2018.1 _Kali-rolling_ -
#Official Snapshot amd64 LIVE/INSTALL Binary 20180126-21:23]/ kali-last-snapshot contrib
#main non-free
deb http://http.kali.org/kali kali-rolling main non-free contrib
# deb-src
或者简单地运行:
echo deb http://http.kali.org/kali kali-rolling main contrib non-free > /etc/apt/sources.list
您应该在 .txt 文件中注释第二行和第三行sources.list
。