远程虚拟机 pve 优化1 (apt update)

远程虚拟机 pve 功能强大,还可用 ssh方式连线但是下 apt update 时会更新失败
可以使用 ssh 工具 putty 使用 root 连线哦 如下
http://img2.58codes.com/2024/20136076WR26c9YYso.jpg

方法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

关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章