Linux运维

Proxmox 5.x 6.x配置国内更新源

宋兴柱 · 3月21日 · 2020年 · 574次已读

一、Debian系统源(PVE5-Debain9 )

nano /etc/apt/sources.list
#deb http://ftp.debian.org/debian stretch main contrib
deb http://mirrors.163.com/debian stretch main contrib
#deb http://ftp.debian.org/debian stretch-updates main contrib
deb http://mirrors.163.com/debian stretch-updates main contrib

# security updates
#deb http://security.debian.org stretch/updates main contrib
deb http://mirrors.163.com/debian-security stretch/updates main contrib

二、Proxmox源(PVE5-Debain9)

nano /etc/apt/sources.list.d/pve-enterprise.list 
#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

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

三、 Ceph源(PVE5-Debain9)

nano /etc/apt/sources.list.d/ceph.list 
#deb http://download.proxmox.com/debian/ceph-luminous stretch main
deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-luminous stretch main

四、Debian系统源(PVE6-Debain10)

nano /etc/apt/sources.list
#deb http://deb.debian.org/debian buster main contrib
deb http://mirrors.163.com/debian buster main contrib
#deb http://deb.debian.org/debian buster-updates main contrib
deb http://mirrors.163.com/debian buster-updates main contrib
 
# security updates
#deb http://security.debian.org buster/updates main contrib
deb http://mirrors.163.com/debian-security buster/updates main contrib

五、Proxmox源(PVE6-Debain10)

nano /etc/apt/sources.list.d/pve-enterprise.list 
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
 
#deb http://download.proxmox.com/debian/pve buster pve-no-subscription
deb http://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription

六、 Ceph源(PVE6-Debain10)

nano /etc/apt/sources.list.d/ceph.list 
#deb http://download.proxmox.com/debian/ceph-nautilus buster main
deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-nautilus buster main

七、一次性配置PVE6源 (Proxmox6+Debain10+Ceph14)

删除原有的源:

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

添加新的源:

nano /etc/apt/sources.list

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

# debian aliyun source
deb https://mirrors.aliyun.com/debian buster main contrib non-free
deb https://mirrors.aliyun.com/debian buster-updates main contrib non-free
deb https://mirrors.aliyun.com/debian-security buster/updates main contrib non-free

# proxmox source
# deb http://download.proxmox.com/debian/pve buster pve-no-subscription
deb http://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription

# ceph source
#deb http://download.proxmox.com/debian/ceph-nautilus buster main
deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-nautilus buster main

说明:CEPH.LIST 总是恢复的问题

经过测试,在PVE6按四、五、六配置完后,每次apt-get update时,就会把Ceph.list源恢复。因此建议使用采用第七步方案。
0 条回应