前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >解决 pve apt update 401

解决 pve apt update 401

作者头像
行 者
发布2023-10-20 14:46:05
7900
发布2023-10-20 14:46:05
举报
文章被收录于专栏:运维技术迷运维技术迷

环境

PVE Version:7.2-3

问题

代码语言:javascript
复制
root@pve:~# apt update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://download.proxmox.com/debian/ceph-pacific bullseye InRelease                                                                                                
Hit:3 http://ftp.debian.org/debian bullseye InRelease                                                                                   
Get:4 http://ftp.debian.org/debian bullseye-updates InRelease [44.1 kB]           
Err:5 https://enterprise.proxmox.com/debian/pve bullseye InRelease
  401  Unauthorized [IP: 51.79.159.216 443]
Reading package lists... Done                                                                                                                                                                  
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease  401  Unauthorized [IP: 51.79.159.216 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

解决

代码语言:javascript
复制
root@pve:~# mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
root@pve:~# nano /etc/apt/sources.list
#适用于PVE 6.x
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
#适用于PVE 7.x
deb http://security.debian.org/debian-security bullseye-security main contrib

root@pve:~#  echo 'deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription' >> /etc/apt/sources.list.d/pve-no-subscription.list
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2023-01-06,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 环境
  • 问题
  • 解决
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档