一般PVE更新服务器出现问题会输出以下错误日志:
- starting apt-get update
- Ign:1 http:
- Get:2 http:
- Get:3 http:
- Get:4 http:
- Get:5 http:
- Get:6 http:
- Get:7 http:
- Get:8 http:
- Get:9 http:
- Ign:10 https:
- Ign:11 https:
- Ign:12 https:
- Ign:13 https:
- Ign:14 https:
- Ign:12 https:
- Ign:13 https:
- Ign:14 https:
- Ign:12 https:
- Ign:13 https:
- Ign:14 https:
- Ign:12 https:
- Ign:13 https:
- Ign:14 https:
- Ign:12 https:
- Ign:13 https:
- Ign:14 https:
- Get:15 http:
- Err:12 https:
- 401 Unauthorized
- Ign:13 https:
- Ign:14 https:
- Get:16 http:
- Get:17 http:
- Fetched 13.2 MB in 30s (425 kB/s)
- Reading package lists...
- W: The repository 'https://enterprise.proxmox.com/debian/pve stretch Release' does not have a Release file.
- E: Failed to fetch https:
- E: Some index files failed to download. They have been ignored, or old ones used instead.
- TASK ERROR: command 'apt-get update' failed: exit code 100
在PVE中出现 TASK ERROR: command 'apt-get update' failed: exit code 100 这个错误提示是由于企业版软件源需要付费才可以访问,免费版实际上应该是使用最多的版本。
未订阅用户如果需要更新Proxmox可以使用Proxmox VE无订阅存储库。
Proxmox VE无订阅存储库,pve-no-subscription回购可用于测试和非生产使用。 它不推荐在生产服务器上运行,因为这些软件包并不总是经过严格测试和验证。 顾名思义,没有Proxmox VE订阅密钥需要访问此存储库。
2018.2.6更新:根据研究群里大佬的提醒,Proxmox VE从5.x之后的版本已经是 stretch 了,源还用jessie肯定会失败的,所以本文根据官方wiki文档做了修改,请仔细阅读。
修改 /etc/apt/sources.list
- deb http://ftp.debian.org/debian stretch main contrib
- deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
- deb http://security.debian.org stretch/updates main contrib
然后禁用官方的收费服务器:
修改 /etc/apt/sources.list.d/pve-enterprise.list
在这一句代码前加个#号注释掉即可。改为以下内容
# deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
附:Proxmox ve关闭登录时的未订阅弹窗
在5.1版本验证通过提醒:升级到5.1-46版本后,官方已经更改了弹窗JS路径。
根据博友uouuou的摸索后发现,Proxmox ve官方在5.1-46版本之后已经更改了弹窗JS路径。
区别在第一步备份及所编辑的JS路径不同
下面提供两种不同版本的解决方案,请根据自己的版本选择对应的操作。
1、备份原始文件
5.1-46版本之前操作如下
- root@pve:~
- root@pve:/usr/share/pve-manager/js
5.1-46版本之后操作如下
- root@pve:~
- root@pve:/usr/share/javascript/proxmox-widget-toolkit
2、找到这一行(5.1 3rd release在第850行,5.1-49在第352行。版本不一样可能对应的位置不一样,建议自己搜索):
if (data.status !== 'Active') {3、修改为
if (false) {现在登录就再也没有烦人的弹窗了!
最后于 2018-7-2
被coolsd编辑
,原因: