zoukankan      html  css  js  c++  java
  • 解决 ProXmoX VE升级 aptget update 报错的问题

    使用 Proxmox VE 默认的 APT 更新源,在 WEB 更新管理面板点击“刷新”后,会显示错误。这时因为默认的更新源为 Proxmox VE 企业版的订阅,如果我们没有购买订阅,就会提示签名错误,从而使得 APT 更新失败,解决的办法很简单,就是更换软件源就可以了。Proxmox 官方提供了对应不同版本的源,可以根据自己的情况进行选择。

    网上找的三种解决方法,原理都是替换软件源,三种方法分别为:

    方法1:

    vim /etc/apt/sources.list.d/pve-enterprise.list

    注释掉:

    # deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

    然后:

    echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

    方法2:

    编辑 sources.list,输入以下命令:

    nano /etc/apt/sources.list

    打开后在最下面添加:

    deb http://download.proxmox.com/debian buster pve-no-subscription

    接着按 Ctrl+O 保存,按Ctrl+X退出。

    编辑下pve-enterprise.list,输入以下命令:

    nano /etc/apt/sources.list.d/pve-enterprise.list

    注释掉 deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

    然后保存退出。

    方法3:

    备份原来的 sources.list

    cp /etc/apt/sources.list /etc/apt/sources.list.bak

    用下面的官方非订阅源替换掉 sources.list 的内容

    deb http://ftp.debian.org/debian buster main contrib
    deb http://ftp.debian.org/debian buster-updates main contrib
    
    # PVE pve-no-subscription repository provided by proxmox.com,
    # NOT recommended for production use
    deb http://download.proxmox.com/debian/pve buster pve-no-subscription
    
    # security updates
    deb http://security.debian.org buster/updates main contrib

    注释 /etc/apt/sources.list.d/pve-enterprise.list 中源地址

    # deb https://enterprise.proxmox.com/debian/pve buster pve-enterpris

    之后执行以下命令就可以正常升级了。

    apt update && apt dist-upgrade

    升级完成后,reboot重启物理服务器,执行pveversion -v查看下最新的软件版本。

  • 相关阅读:
    一些你可能用到的代码
    iOS 键盘下去的方法
    iOS设计模式汇总
    随笔
    Spring cloud config 分布式配置中心 (三) 总结
    Spring cloud config 分布式配置中心(二) 客户端
    Spring cloud config 分布式配置中心(一) 服务端
    jdbcUrl is required with driverClassName spring boot 2.0版本
    JpaRepository接口找不到 spring boot 项目
    解决IntelliJ “Initialization failed for 'https://start.spring.io'
  • 原文地址:https://www.cnblogs.com/kimshen/p/15569214.html
Copyright © 2011-2022 走看看