美文网首页
KALI用APT安装文件包时出错:Unable to locat

KALI用APT安装文件包时出错:Unable to locat

作者: 吾心远方 | 来源:发表于2018-12-16 22:11 被阅读16次

    解决方法:在sources.list文件中添加源路径。

    cd /etc/apt/

    打开sources.list:

    nano sources.list

    将如下内容添加到 sources.list 文件末尾

    deb http://http.kali.org/kali kali-rolling main contrib non-free

    # For source package access, uncomment the following line

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

    deb http://http.kali.org/kali sana main non-free contrib

    deb http://security.kali.org/kali-security sana/updates main contrib non-free

    # For source package access, uncomment the following line

    # deb-src http://http.kali.org/kali sana main non-free contrib

    # deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

    deb http://old.kali.org/kali moto main non-free contrib

    # For source package access, uncomment the following line

    # deb-src http://old.kali.org/kali moto main non-free contrib

    按CTRL+X先保存再退出。

    运行如下命令使更新生效:

    apt-get update

    相关文章

      网友评论

          本文标题:KALI用APT安装文件包时出错:Unable to locat

          本文链接:https://www.haomeiwen.com/subject/aucfkqtx.html