最新消息:走过的,离开的,已经错过,新开始2016

Proxmox VE添加社区源的一些坑

技术随笔 果果 7755浏览 0评论

这几天又开始折腾家里的路由器了,之前是直接在centos里面安装的KVM虚拟化,管理不方便,最近想换成PVE,于是有了今天这文章。

安装就不介绍了,主要介绍一下使用社区源,PVE免费版是不能更新的,而且会一直提醒你购买商业订阅,而且一些功能也有限制。

删除原来不花钱不能用的商业订阅源

mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak

添加免费社区源

echo 'deb http://download.proxmox.wiki/debian/pve buster pve-no-subscription' >> /etc/apt/sources.list.d/pve-no-subscription.list

请注意中间的buster,一开始发现其他教材写的是 stretch,会照成在apt-get 的时候被禁止,提示你要先删除PVE。

果果在修改网卡的时候,点应用配置发现并没有生效,提示需要重启网络,需要安装ifupdown2。但是在apt-get install ifupdown2,的时候发生了下面提示。


W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook

这个有点恶心。

其他软件也使用国内阿里云源速度更快。

cp /etc/apt/sources.<span class="hljs-built_in">list /etc/apt/sources.list.bak

 

修改sources.list


deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

最后更新

apt update && apt upgrade && apt dist-upgrade

 

转载请注明:果果.IT » Proxmox VE添加社区源的一些坑

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址