Kali更新源添加

1.使用vim命令打开更新源sources.list文件,命令如下:

      vim /etc/apt/sources.list

     

2.按键盘A进行对更新源的输入;

3.常见的更新源如下:

  3.1中科大

    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

  3.2阿里云

    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

  3.3清华大学

    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

  3.4浙大

    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

  3.5东软大学

    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

  3.6官方源

     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
4.退出并保存
  按Esc退出编辑,然后输入->“:set noreadonly”,然后回车
      
  再输入->“:wq”,按回车退出
    至此,kali更新源以添加成功。
5.在命令窗口输入:    apt-get update    #取回更新软件包列表
          apt-get upgrade     #进行一次升级
          apt-get clean          #删除已经下载的安装包
          reboot                   #重启
    
posted @ 2020-04-18 14:53  残梅殇-古月  阅读(2657)  评论(0编辑  收藏  举报