07
2022
11
14:34:39

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



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

问题描述:

出现这个错误一般在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://hqyman.cn/post/2849.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: