Proxmox

Proxmox

    Proxmox提供强大的企业级解决方案,每个人都可以完全访问所有功能 - 高度可靠和安全。
软件定义的开放式平台易于部署、管理和预算。

点击进入 >> 官网  |  amd/iso  |  arm/loong/iso

更换debian软件源

1.清华园官网   https://mirrors.tuna.tsinghua.edu.cn/help/debian/

2.修改apt源  root@pve:~# 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://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

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware


修改pve源

1.清华园官网 https://mirrors.tuna.tsinghua.edu.cn/help/proxmox/

2. 修改文件加入免费源  nano /etc/apt/sources.list.d/pve-no-subscription.list

deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription

3.去掉企业源

root@pve:~# \rm /etc/apt/sources.list.d/pve-enterprise.list

4.去掉ceph源
nano /etc/apt/sources.list.d/ceph.list

# deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise


去掉登录弹窗

sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase()!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service


 更新软件源

 1.更新

root@pve:~# apt update

2.升级    -y 所有选择y

root@pve:~# apt upgrade -y

3.发现卡  更新时卡主了 

root@pve:~# vim /etc/apt/sources.list

去掉最下面一行内容    重新执行更新

root@pve:~# apt update

root@pve:~# apt upgrade -y

4.重启系统

root@pve:~# reboot