ubuntu基本配置

新装的系统18.X版本提示没有vi,

sudo apt-get update
sudo apt-get upgrade

 

使用阿里源

备份/etc/apt/sources.list  # cp /etc/apt/sources.list /etc/apt/sources.list.bak

在/etc/apt/sources.list文件前面添加如下条目
#添加阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

最后执行如下命令更新源
sudo apt-get update
sudo apt-get upgrade

 

新装系统没有vi和vim  # 此时无法进行编辑 

备份/etc/apt/sources.list  # cp /etc/apt/sources.list /etc/apt/sources.list.bak

rm sources.list  # 删除源文件

echo "deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" > sources.list # 新建源文件并写入内容

最后执行如下命令更新源
sudo apt-get update
sudo apt-get upgrade

安装vim

apt-get install vim

cp sources.list.bak sources.list  # 复制备份的源文件至当前目录并改名

 

vi编辑器异常

ubuntu预装的是vim tiny版本,而需要的是vim full版本

sudo apt-get remove vim-common

sudo apt-get install vim

 

升级依赖关系

sudo apt-get install -f

 

安装QQ

https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu  # 原文地址

git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git

./install.sh # 安装deepin环境

dpkg -i  包名# 安装团建

 

posted @ 2020-03-18 09:18  clyde_S  阅读(286)  评论(0编辑  收藏  举报