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
  • 相关阅读:
    seajs模块化开发
    agularJs 路由
    sass
    web工作流
    lufylegend游戏引擎
    canvas游戏之贪食蛇
    [bzoj3743 Coci2015] Kamp(树形dp)
    [bzoj2662 BeiJing wc2012] 冻结 (分层图+最短路)
    [luogu2680] 运输计划 (lca+二分+树上差分)
    [luogu1463 HAOI2007] 反素数 (约数)
  • 原文地址:https://www.cnblogs.com/Sungeek/p/10365681.html
Copyright © 2011-2022 走看看