今天因为把vagrant的问题解决了,解决之后ssh连上ubuntu就去修改了一下ubuntu14.04的源,ubuntu不同版本的源不一致,所以大家还是要注意一下,因为不是教育网就没有用科大的源,尝试了用了一下阿里云的源,发现出现一些问题,然后就换成了网易的源,亲测,速度比较快。
源列表:
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
更新之前最好把之前的源备份一下,然后再修改:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
sudo vim /etc/apt/sources.list
//然后把上面的源copy进去覆盖里面的源
sudo apt-get update //更新源的列表
今天在修改依赖之间的关系的时候用到apt-get install -f:
install -f ,是修复依赖关系(depends)的命令,就是假如你的系统上有某个package不满足依赖条件,这个命令就会自动修复,安装那个package依赖的package。
vim自定义配置
自己喜欢配置一下vim 比如代码高亮,tablespace 为四个空格,显示行号
sudo vim /ete/vim/vimrc
//Shift +G 到最后一行 然后 o 插入自定义配置
set ts=4 //tablespace 4个空格
set expandtab
set nu //设置行号
syntax on //代码高亮
网友评论