最近从CentOS转战Ubuntu,很多CentOS默认自带的东西Ubuntu居然都没有。
ifconfig命令
需要安装nettools:
sudo apt-get install net-tools
Vim编辑器
Ubuntu自带是VI编辑器,对于用惯VIM的人来说很不习惯。
sudo apt install vim
更换Ubuntu的软件源为阿里云的
- 访问阿里云网站:https://developer.aliyun.com/mirror/
- 找到Ubuntu的配置:
由于我的Ubuntu版本是20.0, 所以选择20的:
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
- 然后在Ubuntu 的终端输入命令:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vi /etc/apt/sources.list
sudo apt-get update && apt-get upgrade
显示阿里云即为成功:
还有其他的后续待更新。。。
|