Proxmox 更新软件包数据库(TASK ERROR: command ‘apt-get update‘ failed: exit code 100)

1、连接自己报错的物理机Shell,编辑文件

vi /etc/apt/sources.list.d/pve-enterprise.list 

2、注释文件的第一行在开头加上#

按I进入编辑模式后 开头添加# 然后shift+: 输入wq或者wq!进行保存

3、注释后执行两个命令apt-get update 和 apt-get upgrade 即可。

apt-get update
Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
Get:2 http://ftp.debian.org/debian bookworm InRelease [151 kB]             
Get:3 http://security.debian.org bookworm-security/main amd64 Packages [245 kB]
Get:4 http://ftp.debian.org/debian bookworm-updates InRelease [55.4 kB]                                 
Get:5 http://ftp.debian.org/debian bookworm/main amd64 Packages [8,792 kB]                               
Err:6 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease                                          
  401  Unauthorized [IP: 51.79.228.122 443]
Get:7 http://ftp.debian.org/debian bookworm/main Translation-en [6,109 kB]                                          
Get:8 http://ftp.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]                                        
Get:9 http://ftp.debian.org/debian bookworm/contrib Translation-en [48.8 kB]                                        
Get:10 http://ftp.debian.org/debian bookworm-updates/main amd64 Packages [13.5 kB]                                  
Get:11 http://ftp.debian.org/debian bookworm-updates/main Translation-en [16.0 kB]                                  
Get:12 http://ftp.debian.org/debian bookworm-updates/contrib amd64 Packages [768 B]                                 
Get:13 http://ftp.debian.org/debian bookworm-updates/contrib Translation-en [408 B]                                 
Reading package lists... Done                                                                                       
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease  401  Unauthorized [IP: 51.79.228.122 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm 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.
root@CNGZPVE01:/# apt-get upgrade 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  base-files bind9-dnsutils bind9-host bind9-libs bsdextrautils bsdutils criu eject fdisk libavahi-client3
  libavahi-common-data libavahi-common3 libblkid1 libfdisk1 libglib2.0-0 libgstreamer-plugins-base1.0-0
  libgstreamer1.0-0 libmount1 libnfsidmap1 libnss-systemd libpam-systemd libpython3.11-minimal libpython3.11-stdlib
  libsmartcols1 libsystemd-shared libsystemd0 libtasn1-6 libudev1 libuuid1 mount nfs-common openssh-client
  openssh-server openssh-sftp-server python3-pkg-resources python3-setuptools python3-urllib3 python3.11
  python3.11-minimal rsync ssh systemd systemd-boot systemd-boot-efi systemd-sysv tzdata ucf udev util-linux
  util-linux-extra
50 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.8 MB of archives.
After this operation, 553 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian bookworm/main amd64 base-files amd64 12.4+deb12u9 [70.8 kB]
Get:2 http://security.debian.org bookworm-security/main amd64 rsync amd64 3.2.7-1+deb12u2 [419 kB]
Get:3 http://ftp.debian.org/debian bookworm/main amd64 bsdutils amd64 1:2.38.1-5+deb12u3 [94.4 kB]
Get:4 http://ftp.debian.org/debian bookworm/main amd64 libsmartcols1 amd64 2.38.1-5+deb12u3 [107 kB]
Get:5 http://ftp.debian.org/debian bookworm/main amd64 util-linux-extra amd64 2.38.1-5+deb12u3 [111 kB]
Get:6 http://ftp.debian.org/debian bookworm/main amd64 util-linux amd64 2.38.1-5+deb12u3 [1,177 kB]
Get:7 http://security.debian.org bookworm-security/main amd64 libtasn1-6 amd64 4.19.0-2+deb12u1 [48.6 kB]
Get:8 http://security.debian.org bookworm-security/main amd64 bind9-host amd64 1:9.18.33-1~deb12u2 [54.1 kB]
Get:9 http://security.debian.org bookworm-security/main amd
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

郑禄(Richard)

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值