树莓派换国内源安装vim

it2025-11-09  12

1.修改源文件 打开 /etc/apt/sources.list文件。 用以下替换原有的全部 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 #deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi 2.下载安装vim 用sudo apt-get update(下载) 然后用sudo apt-get install vim(安装) 之后看见y/n直接用回车跳过否则讲进行一下操作。

a.打开fz软件进行文件移动 主机用sftp://后面加上树莓派的IP地址 用户名和密码就是登陆密码 端口号没有就默认 b.文件传输 将sources.list里面放入 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 #deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi

Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’

#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi 然后拖进home中选择对应文件夹拖进,如果不行直接将其拖进home的pi中即可,然后再用cp指令拷贝 cp sources.list /etc/apt

最新回复(0)