×

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

hqy hqy 发表于2022-11-07 14:34:39 浏览500 评论0

抢沙发发表评论

问题描述:

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

;
;

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

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

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

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

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

;
;

解决方法:

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

修改文件/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


 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/2849.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客