- vm 中安装 Ubuntu 一定要关了网络,有个下载过程恶心死了,一直在 retrieving file
- 安装vm tools
替换下载的镜像源
默认使用的是美国的源,下载起来真tm蛋疼,1kb/s 的速度,所以必须修改下载源
备份一下原有的源列表
wilker@ubuntu:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
编辑源列表
wilker@ubuntu:~$ sudo gedit /etc/apt/sources.list
全部替换为一下内容,网易的源比较快,速度基本就是你有的带宽。需要注意的是 xenial 是你当前系统对应的版本
deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
可用源参考地址:http://wiki.ubuntu.org.cn/%E6%A8%A1%E6%9D%BF:16.04source
更新一下
wilker@ubuntu:~$ sudo apt-get update && sudo apt-get upgrade
可以随便装东西测下
安装 Chrome
使用安装命令
$ sudo add-apt-repository ppa:a-v-shkop/chromium $ sudo apt-get update $ sudo apt-get install chromium-browser $ sudo apt-get install google-chrome-stable
参考资料:http://jingyan.baidu.com/article/f79b7cb31a990d9144023ea2.html
解决 vim 上下左右 为 abcd 的问题
卸载现有的vim,重新装一个
$ sudo apt-get remove vim-common $ sudo apt-get install vim
解决 vim 安装问题
如果安装 vim 报错
root@62a1b3fcae28:~# sudo apt-get install vim bash: sudo: command not found root@62a1b3fcae28:~# apt-get install vim Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vim
则进行一下几步
apt-get update apt-get install apt-file apt-file update apt-get install vim