远程虚拟机 pve 功能强大,还可用 ssh方式连线但是下 apt update 时会更新失败
可以使用 ssh 工具 putty 使用 root 连线哦 如下
方法1:最简单有效
注释掉:
nano /etc/apt/sources.list.d/pve-enterprise.list# deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
方法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 的内容
deb http://ftp.debian.org/debian buster main contribdeb http://ftp.debian.org/debian buster-updates main contrib# PVE pve-no-subscription repository provided by proxmox.com,# NOT recommended for production usedeb http://download.proxmox.com/debian/pve buster pve-no-subscription# security updatesdeb http://security.debian.org buster/updates main contrib