Raspberry4B+ 树莓派bullseye换源解决下载缓慢问题

主要是为了记录一些常用的语句和源

一、查看当前系统版本,我的是最新版的64Bullseye

lsb_release -a

二、在开始之前先装个vim,默认是不带的,用习惯了。虽然还没换源,但是好在vim不大,下载安装所需的时间还算可以接受。

sudo apt-get install vim

三、打开配置文件

sudo vim /etc/apt/sources.list

 

 四、更换源,因为没有做备份操作,为了防止意外,将原有的语句注释掉,如果备份了就直接删掉就行。

vim操作

英文状态下

进入编辑模式:i 

粘贴内容:shift+insert

退出并保存:ESC后输入   :WQ

deb https://mirror.nju.edu.cn/debian/ bullseye main contrib non-free
deb https://mirror.nju.edu.cn/debian-security/ bullseye-security main contrib non-free
deb https://mirror.nju.edu.cn/debian bullseye-updates main contrib non-free

五、更新列表

sudo apt update

六、更新已下载

sudo apt upgrade

七、相比较的话,还挺快的,打完收工!

猜你喜欢

转载自blog.csdn.net/weixin_41195886/article/details/128404227
今日推荐