ubantu 18.x 学习记录

安装net tools

用于 ifconfig命令

sudo apt-get install net-tools

配置阿里更新源

1.先备份文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 
2.清空
sudo > /etc/apt/sources.list
3.写入
sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
4.更新
sudo apt-get update&&sudo apt-get upgrade&&sudo apt-get install -f

安装Vim

sudo apt-get purge vim-common

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install vim
上一篇:Ubuntu12.10开机输入密码后黑屏无法进入桌面的问题记录


下一篇:JPA 总结