- 首先为了方便虚拟机的使用,大家最好安装vmware-tools工具。步骤如下:
- 点击虚拟机的,里面有个安装vmtool工具,
- 在桌面会弹出一个DVD。里面有个压缩包。
- 把它复制到桌面,右键提取到(解压)到桌面
- 点击进入,在次打开终端(需要进入root权限下。)
- 执行./vmware-install.pl命令。
- 结束后重启虚拟机。(可以执行reboot命令)
- 安装vim
- apt install vim
- 出现无法解析软件包
- vi /etc/apt/sources.list 打开后,在编辑模式下最后添加
- deb http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free - 保存,关闭文件
- 再次安装vim