Install the new version of VIM from the Raspberry Pi update source

The default source of the Raspberry Pi is foreign. apt-get fails during installation, and we need to update it to a domestic one.

1. Edit sources.list

Open terminal input

sudo nano /etc/apt/sources.list

Use # to comment or directly delete the original content and add two new items:

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
#deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

ctrl+x to save and exit.

2. Edit raspi.list

sudo nano /etc/apt/sources.list.d/raspi.list


Use # to comment or directly delete the original content and add two new items:

deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
#deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

Update the software source list:

sudo apt-get update

 3. Install the new version of vim

sudo apt-get install vim

 

Guess you like

Origin blog.csdn.net/baidu_39594043/article/details/115101525