proxmox换源_关于Proxmox 5.x的国内有效镜像源

2023-05-16

官网的 http://download.proxmox.com/ 有多慢我就不提了,否则大家也不会看到这篇小文。

首先需要分清楚Proxmox VE的镜像构成。

1)Debian自身。这个用国内哪个镜像都可以,aliyun、163之类;

2)pve enterprise。如果你是订阅用户,我不知道该用哪个,在此略过不表。

3)pve-no-subscription。我是非订阅用户,只能用这个小白鼠版。这部分国内目前出现了两个镜像:

3.1)https://mirrors.ustc.edu.cn/proxmox/

3.2)http://download.proxmox.wiki/

略为遗憾的是,截至我发文时,这两个镜像各有各的问题。科大的主要是不稳定,经常会timeout,作为应对,你可以手工指定http协议以及响应比较快的线路,比如chinanet或unicom(参考https://mirrors.ustc.edu.cn/首页说明)。proxmox.wiki的问题是包大小不一致导致apt检测失败,这个比较严重直接导致我放弃使用,或许哪天维护方会解决吧。

Err:2 http://download.proxmox.wiki/debian/pve stretch/pve-no-subscription amd64 Packages                                                            Writing more data than expected (320319 > 320112) [IP: 101.89.100.240 80]

4)如果你使用了ceph,那么还需要考虑这货,慢到20年前56Kbps猫的速度不是那么好忍受的。解决这个问题可以使用163的ceph镜像。

wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -

echo deb http://mirrors.163.com/ceph/debian-luminous/ stretch main | tee /etc/apt/sources.list.d/ceph.list

最后,我的/etc/apt/sources.list 大概是这样的:

#deb http://ftp.debian.org/debian stretch main contrib

#deb http://ftp.debian.org/debian stretch-updates main contrib

# security updates

#deb http://security.debian.org stretch/updates main contrib

# PVE pve-no-subscription repository provided by proxmox.com,

# NOT recommended for production use

deb http://chinanet.mirrors.ustc.edu.cn/proxmox/debian/pve stretch pve-no-subscription

#deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

#see /etc/apt/sources.list.d/pve-install-repo.list

#xieyh 20190731

deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib

deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib

deb http://mirrors.aliyun.com/debian-security stretch/updates main

deb-src http://mirrors.aliyun.com/debian-security stretch/updates main

deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib

deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib

deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

注意:仅供参考。仅供参考。

当前,我需要从PVE5.2升级到5.4,根据官方FAQ,直接升级是安全的,所以只要如下执行就可以了。

apt update

apt dist-upgrade

升级完成之后,你可能需要reboot并apt remove旧版的kernel。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

proxmox换源_关于Proxmox 5.x的国内有效镜像源 的相关文章

随机推荐