kali下 安装 open-vm-tools

首先

换源。终端输入 leafpad /etc/apt/sources.list

修改为以下几个镜像源

                      #中科大kali源
      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://mirrors.aliyun.com/kali kali-rolling main non-free contrib
      deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
      deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
      deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free

      清华大学源:
      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
 

      #官方更新源

      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

 

接着输入

apt-get update(更新源)

apt-get install open-vm-tools-desktop fuse(安装open-vm-tools)

            此处遇到了使用apt-get提示"E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the probl的    错误;解决方案如下:

mv /usr/bin/localedef /usr/bin/localedef.old 
dpkg --configure -a 
 

reboot(重启生效)

你可能感兴趣的:(Linux)