树莓派 Debian11(bullseye)64位 镜像源更新

更新镜像源

修改 /etc/apt/sources.list

  • 备份:
    sudo nano /etc/apt/sources.list sudo nano /etc/apt/sources.list.bak
  • 修改:
    sudo nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

修改/etc/apt/source.list.d/raspi.list

  • 备份:
    sudo cp /etc/apt/source.list.d/raspi.list /etc/apt/source.list.d/raspi.list.bak
  • 修改:
    sudo nano /etc/apt/source.list.d/raspi.list
deb http://mirrors.aliyun.com/raspberrypi/ bullseye main

更新系统

sudo apt-get update
sudo apt-get upgrade

链接: 无法更新apt镜像源?树莓派安装最新版Debian11(bullseye)arm64位系统步骤.

你可能感兴趣的:(树莓派,debian,linux)