ubuntu 17.04下载vim更新源

Ubuntu17.04下载vim提示找不到包

修改/etc/apt/sources.list文件,若跟我一样是下载vim,则用自带编辑器gedit修改该文件

在网上找了阿里源清华源网易源测试均失败,最后测试中科大源成功下载vim。

具体步骤

1./etc/apt/sources.list文件是只读文件,先修改权限sudo chmod  666 /etc/apt/sources.list

2.然后gedit /etc/apt/sources.list打开文件

3.先把原文件做个备份

4.把以下源复制到/etc/apt/sources.list文件当中保存

5.回到终端输入sudo apt-get update更新源

6.输入sudo apt-get install vim下载vim

 

中科大源:

deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty-security main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty-updates main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty-backports main restricted universe multiverse

## Not recommended
# deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ zesty-proposed main restricted universe multiverse
 

你可能感兴趣的:(ubuntu 17.04下载vim更新源)