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
复制代码 免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
|