阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Proxmox VE中出现TASK ERROR: command ‘apt-get update’ failed: exit code 100的解决方法

341次阅读
没有评论

共计 1146 个字符,预计需要花费 3 分钟才能阅读完成。

问题描述:

出现这个错误一般在 WEB 或者在 Proxmox VE 的服务器上面能看到日志:

Proxmox VE 中出现 TASK ERROR: command'apt-get update'failed: exit code 100 的解决方法

Proxmox VE 中出现 TASK ERROR: command'apt-get update'failed: exit code 100 的解决方法

PVE 中出现 TASK ERROR: command ‘apt-get update’ failed: exit code 100

这个错误出现的原因是由于企业版软件源需要付费订阅才可以访问。

我们用到的是免费开源版的,所以更新就会提示错误。

未订阅用户如果需要更新 Proxmox 可以使用 Proxmox VE 无订阅存储库。

在官方包存储库这里有说明:https://pve.proxmox.com/wiki/Package_Repositorie

Proxmox VE 中出现 TASK ERROR: command'apt-get update'failed: exit code 100 的解决方法

Proxmox VE 中出现 TASK ERROR: command'apt-get update'failed: exit code 100 的解决方法

解决方法:

因为用到的是免费版开源的,所以没有付费订阅,需要修改文件注释掉付费企业版订阅

修改文件 /etc/apt/sources.list.d/pve-enterprise.list

可以把 pve-enterprise.list 文件修改名称,或者进去注释此存储库
root@kvm1:/etc/apt/sources.list.d# ls
pve-enterprise.list

root@kvm1:/etc/apt/sources.list.d# vim pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

然后免费的可以使用 Proxmox VE 无订阅存储库

顾名思义,您不需要订阅密钥即可访问此存储库。它可用于测试和非生产用途。不建议在生产服务器上运行,因为这些软件包并不总是经过大量测试和验证。

修改文件 /etc/apt/sources.list

deb http://ftp.debian.org/debian stretch main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use(不推荐用于生产用途)
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

# security updates
deb http://security.debian.org stretch/updates main contrib

或者按照下面这种设置

deb http://ftp.debian.org/debian stretch main contrib

deb http://ftp.debian.org/debian stretch-updates main contrib

# security updates
deb http://security.debian.org stretch/updates main contrib

正文完
星哥说事-微信公众号
post-qrcode
 
星锅
版权声明:本站原创文章,由 星锅 2022-01-21发表,共计1146字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中