# Proxmox 软件仓库

> 可调整选项：
> - 镜像地址：`https://mirrors.cernet.edu.cn/proxmox`
> - sudo：`开启`
> - Debian 版本 (release)：`Debian 13 (trixie)`
>   - 可选值：
>     - `Debian 13 (trixie)`
>     - `Debian 12 (bookworm)`
>     - `Debian 11 (bullseye)`
> - 服务 (service)：`Proxmox Virtual Environment (PVE)`
>   - 可选值：
>     - `Proxmox Virtual Environment (PVE)`
>     - `Proxmox Backup Server (PBS)`
>     - `Proxmox Backup Client (PBS-CLIENT)`
>     - `Proxmox Mail Gateway (PMG)`


> 本站收录所有共享帮助文档；文档存在不代表浙江大学镜像站当前提供该镜像。请查阅 https://mirrors.zju.edu.cn/mirrorz.json 确认当前目录与状态。
> 下列命令使用上述选项，请根据实际系统版本选择；未填写的文本选项需要在原文页面补充。

### Debian 软件源

参考 [Debian 帮助](<https://mirrors.zju.edu.cn/docs/debian/>) 修改 `/etc/apt/sources.list`。

### Proxmox 软件源

#### 传统格式（`/etc/apt/sources.list.d/pve-no-subscription.list`）：

新建 `/etc/apt/sources.list.d/pve-no-subscription.list`（如果选择的不是 pve，需要使用另一个文件名），内容为：

写入 `/etc/apt/sources.list.d/pve-no-subscription.list`：

```properties
deb https://mirrors.cernet.edu.cn/proxmox/debian/pve trixie pve-no-subscription
```

#### DEB822 格式（`/etc/apt/sources.list.d/pve-no-subscription.sources`）：

写入 `/etc/apt/sources.list.d/pve-no-subscription.sources`：

```yaml
Types: deb
URIs: https://mirrors.cernet.edu.cn/proxmox/debian/pve
Suites: trixie
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
```

注意快速配置中的文件名需要根据需求而修改。

### ISO 安装文件下载

```
https://mirrors.cernet.edu.cn/proxmox/iso/
```

### CT Templates

如果你需要加速 Proxmox 网页端下载 CT Templates，可以替换 CT Templates 的源。

具体方法：将 `/usr/share/perl5/PVE/APLInfo.pm` 文件中默认的源地址 `http://download.proxmox.com`
替换为

```
https://mirrors.cernet.edu.cn/proxmox
```


可以使用如下命令修改：

```bash
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
sed -i 's|http://download.proxmox.com|https://mirrors.cernet.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
```

针对 `/usr/share/perl5/PVE/APLInfo.pm` 文件的修改，重启后生效。

## OpenMediaVault

本节供 [OpenMediaVault 帮助](<https://mirrors.zju.edu.cn/docs/OpenMediaVault/>)使用。

```bash
omv-env set OMV_PROXMOX_APT_REPOSITORY_URL "https://mirrors.cernet.edu.cn/proxmox/debian"
```

---

许可：[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
文档索引：https://mirrors.zju.edu.cn/llms.txt
如仅限浙大校内网络访问，可将 mirrors.cernet.edu.cn 替换为 mirrors.zju.edu.cn。
