> ## Content Index
> Fetch the complete content index at: https://www.moeox.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Proxmox更换国内更新源
- URL: https://www.moeox.com/proxmox-e6-9b-b4-e6-8d-a2-e5-9b-bd-e5-86-85-e6-9b-b4-e6-96-b0-e6-ba-90/
- Published: 2022-05-13T03:15:28.000Z
- Updated: 2022-05-13T03:15:28.000Z
- Author: asumi233
- Tags: Linux, 杂项, #wp, #wp-post, #Import 2026-09-01 23:51

1.首先更换debian系统的更新源，如下命令：

```bash
sed -i 's|^deb http://ftp.debian.org|deb https://mirrors.ustc.edu.cn|g' /etc/apt/sources.list
sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
```

2.添加proxmox 无订阅更新源，如下命令：

```bash
source /etc/os-release
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve $VERSION_CODENAME pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
```

对于 Proxmox Backup Server 和 Proxmox Mail Gateway，请将以上命令中的 pve 分别替换为 **pbs** 和 **pmg**

运行以下命令更新源：

```bash
apt update
```

done.