感谢镜像源站:
proxmox | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

debian | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

1.执行 apt install apt-transport-https ca-certificates

2.pve-no-subscription.list 修改

echo "deb <https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian> bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list

3.pve-enterprise.list 修改

echo "deb <https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian> bookworm pve-no-subscrip" /etc/apt/sources.list.d/pve-enterprise.list

4.Debain软件源

debian | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

输入echo "" > **/etc/apt/sources.list 来清空内容**

输入 nano /etc/apt/sources.list 修改为

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb <https://mirrors.tuna.tsinghua.edu.cn/debian/> bookworm main contrib non-free non-free-firmware
# deb-src <https://mirrors.tuna.tsinghua.edu.cn/debian/> bookworm main contrib non-free non-free-firmware
deb <https://mirrors.tuna.tsinghua.edu.cn/debian/> bookworm-updates main contrib non-free non-free-firmware
# deb-src <https://mirrors.tuna.tsinghua.edu.cn/debian/> bookworm-updates main contrib non-free non-free-firmware
deb <https://mirrors.tuna.tsinghua.edu.cn/debian/> bookworm-backports main contrib non-free non-free-firmware
# deb-src <https://mirrors.tuna.tsinghua.edu.cn/debian/> bookworm-backports main contrib non-free non-free-firmware
#--------------------------------------------------------------------------------------------------------------
# 镜像安全更新软件源
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
deb <https://mirrors.tuna.tsinghua.edu.cn/debian-security> bookworm-security main contrib non-free non-free-firmware
# deb-src <https://mirrors.tuna.tsinghua.edu.cn/debian-security> bookworm-security main contrib non-free non-free-firmware
# 官方安全更新软件源
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
# deb <https://security.debian.org/debian-security> bookworm-security main contrib non-free non-free-firmware
# deb-src <https://security.debian.org/debian-security> bookworm-security main contrib non-free non-free-firmware

注意:使用镜像安全更新软件源可能存在更新延迟的问题

5.修改ceph.list(PVE8需要修改)

echo "deb <https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy> bookworm no-subscription"  /etc/apt/sources.list.d/ceph.list

6.删除企业源(可选)

rm /etc/apt/sources.list.d/pve-enterprise.list

7.更新软件包

输入 apt-get update 等待即可大功告成!

小工具推荐:pvetools,是一个pve工具,可以进行一些简单配置,但是我让我有些过时,这里不过多赘述,需要可以自行安装

最后修改:2024 年 08 月 16 日 12 : 03 PM
如果觉得我的文章对你有用,请随意赞赏