美文网首页
Ubuntu20.04 安装vim与配置镜像源

Ubuntu20.04 安装vim与配置镜像源

作者: 煮梦斋_bioinfo | 来源:发表于2021-02-27 16:07 被阅读0次

在Ubuntu20.04 新装系统下无法安装vim
解决办法:更新镜像源至清华镜像源

sudo gedit /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

更新源:

sudo apt-get update

安装:

sudo apt-get install vim

相关文章

网友评论

      本文标题:Ubuntu20.04 安装vim与配置镜像源

      本文链接:https://www.haomeiwen.com/subject/hxlifltx.html