这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
资源:pve:proxmoxve_更新软件包数据库失败解办法 [2021/01/16 20:05] 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 更新失败。 | ||
行 10: | 行 10: | ||
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, | # PVE pve-no-subscription repository provided by proxmox.com, | ||
# NOT recommended for production use | # NOT recommended for production use | ||
deb http://download.proxmox.com/debian/pve buster pve-no-subscription | deb http://download.proxmox.com/debian/pve buster pve-no-subscription | ||
- | |||
# security updates | # security updates | ||
deb http://security.debian.org buster/updates main contrib | deb http://security.debian.org buster/updates main contrib | ||
使用方法: | 使用方法: | ||
+ | |||
(1) 备份原来的 sources.list | (1) 备份原来的 sources.list | ||
行 24: | 行 23: | ||
(2) 用上面的官方非订阅源替换掉 sources.list 的内容 | (2) 用上面的官方非订阅源替换掉 sources.list 的内容 | ||
+ | |||
(3) 注释 /etc/apt/sources.list.d/pve-enterprise.list 中源地址 | (3) 注释 /etc/apt/sources.list.d/pve-enterprise.list 中源地址 | ||