赞
踩
Debian 的软件源配置文件是 /etc/apt/sources.list。备份配置文件
sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
若拉取 https 源失败,可先使用 http 源并安装:
sudo apt install apt-transport-https ca-certificates
sudo vi /etc/apt/sources.list
或
sudo vim /etc/apt/sources.list
或
sudo nano /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度 # 清华大学的软件源 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free # 阿里云的软件源 # deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib # deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib # deb https://mirrors.aliyun.com/debian-security/ bullseye-security main # deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main # deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib # deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib # deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib # deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib # 中科大的软件源 # deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free # deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free # deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free # deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free # deb-src https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
sudo apt update && sudo apt upgrade -y
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。