raspberrypi更新加速-修改为国内源

2020-08-11  本文已影响0人  zhf_sy

很多人修改树莓派系统软件仓库源时只修改了一处,在做更新是依然很慢,应该修改两处:

  1. sources.list
    我这里用的是阿里云的源
# cat /etc/apt/sources.list
#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
#阿里云
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
#deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
  1. raspi.list
    我这里用的是科大的源
root@raspberrypi:~# cat /etc/apt/sources.list.d/raspi.list 
#deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main
# 科大
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main
# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:    10
Codename:   buster

如上,我的是 buster


上一篇下一篇

猜你喜欢

热点阅读