这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
|
资源:pve:proxmoxve_更新软件包数据库失败解办法 [2021/01/16 20:04] admin 创建 |
资源:pve:proxmoxve_更新软件包数据库失败解办法 [2021/09/23 23:08] (当前版本) admin |
||
|---|---|---|---|
| 行 1: | 行 1: | ||
| 使用 Proxmox VE 默认的 APT 更新源,在 WEB 管理面板 更新 点击 刷新 后,会显示错误: | 使用 Proxmox VE 默认的 APT 更新源,在 WEB 管理面板 更新 点击 刷新 后,会显示错误: | ||
| - | TASK ERROR: command 'apt-get update' failed: exit code 100 | + | TASK ERROR: command 'apt-get update' failed: exit code 100 |
| 这时因为默认的更新源为 Proxmox VE 企业版的订阅,如果我们没有购买订阅,就会提示签名错误,从而使得 APT 更新失败。 | 这时因为默认的更新源为 Proxmox VE 企业版的订阅,如果我们没有购买订阅,就会提示签名错误,从而使得 APT 更新失败。 | ||
| 行 8: | 行 8: | ||
| 这里提供Proxmox的官方非订阅源: | 这里提供Proxmox的官方非订阅源: | ||
| - | deb http://ftp.debian.org/debian buster main contrib | + | deb http://ftp.debian.org/debian buster main contrib |
| - | deb http://ftp.debian.org/debian buster-updates main contrib | + | deb http://ftp.debian.org/debian buster-updates main contrib |
| + | # PVE pve-no-subscription repository provided by proxmox.com, | ||
| + | # NOT recommended for production use | ||
| + | deb http://download.proxmox.com/debian/pve buster pve-no-subscription | ||
| + | # security updates | ||
| + | deb http://security.debian.org buster/updates main contrib | ||
| - | # PVE pve-no-subscription repository provided by proxmox.com, | ||
| - | # NOT recommended for production use | ||
| - | deb http://download.proxmox.com/debian/pve buster pve-no-subscription | ||
| - | |||
| - | # security updates | ||
| - | deb http://security.debian.org buster/updates main contrib | ||
| - | 1 | ||
| - | 2 | ||
| - | 3 | ||
| - | 4 | ||
| - | 5 | ||
| - | 6 | ||
| - | 7 | ||
| - | 8 | ||
| - | 9 | ||
| 使用方法: | 使用方法: | ||
| + | |||
| (1) 备份原来的 sources.list | (1) 备份原来的 sources.list | ||
| - | cp /etc/apt/sources.list /etc/apt/sources.list.bak | + | cp /etc/apt/sources.list /etc/apt/sources.list.bak |
| - | 1 | + | |
| (2) 用上面的官方非订阅源替换掉 sources.list 的内容 | (2) 用上面的官方非订阅源替换掉 sources.list 的内容 | ||
| + | |||
| (3) 注释 /etc/apt/sources.list.d/pve-enterprise.list 中源地址 | (3) 注释 /etc/apt/sources.list.d/pve-enterprise.list 中源地址 | ||
| - | # deb https://enterprise.proxmox.com/debian/pve buster pve-enterpris | + | # deb https://enterprise.proxmox.com/debian/pve buster pve-enterpris |
| - | 1 | + | |
| (4) 执行更新 | (4) 执行更新 | ||
| - | apt update | + | apt update |
| - | 1 | + | |
| 源替换完成后,即可在 WEB 管理面板中正常使用 更新 功能了。 | 源替换完成后,即可在 WEB 管理面板中正常使用 更新 功能了。 | ||