zoukankan      html  css  js  c++  java
  • Proxmox VE中出现TASK ERROR: command 'apt-get update' failed: exit code 100的解决方法

    问题描述:

    出现这个错误一般在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
  • 相关阅读:
    Leetcode题目practice
    文件操作
    39个奇葩代码注释,拿走不谢
    Spring Boot 之配置导入,强大到不行!
    Git 的这个神技,学会爽歪歪~
    同事天天写垃圾代码,就没办法?
    for (;;) 与 while (true),哪个更快?
    Spring Boot 怎么打一个可执行 Jar 包?
    程序员真的是太太太太太太太太难了!
    面试官:new一个对象有哪两个过程?
  • 原文地址:https://www.cnblogs.com/Sungeek/p/10365681.html
Copyright © 2011-2022 走看看