f Mysql-Proxmox 更新软件包数据库(TASK ERROR: command ‘apt-get update‘ failed: exit code 100) - Powered by qidao123.com技术社区

Proxmox 更新软件包数据库(TASK ERROR: command ‘apt-get update‘ faile ...

打印 上一主题 下一主题

主题 2164|帖子 2164|积分 6492

1、毗连自己报错的物理机Shell,编辑文件
  1. vi /etc/apt/sources.list.d/pve-enterprise.list
复制代码
2、解释文件的第一行在开头加上#
按I进入编辑模式后 开头添加# 然后shift+: 输入wq或者wq!进行保存

3、解释后执行两个下令apt-get update 和 apt-get upgrade 即可。
  1. apt-get update
  2. Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
  3. Get:2 http://ftp.debian.org/debian bookworm InRelease [151 kB]            
  4. Get:3 http://security.debian.org bookworm-security/main amd64 Packages [245 kB]
  5. Get:4 http://ftp.debian.org/debian bookworm-updates InRelease [55.4 kB]                                 
  6. Get:5 http://ftp.debian.org/debian bookworm/main amd64 Packages [8,792 kB]                              
  7. Err:6 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease                                          
  8.   401  Unauthorized [IP: 51.79.228.122 443]
  9. Get:7 http://ftp.debian.org/debian bookworm/main Translation-en [6,109 kB]                                          
  10. Get:8 http://ftp.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]                                       
  11. Get:9 http://ftp.debian.org/debian bookworm/contrib Translation-en [48.8 kB]                                       
  12. Get:10 http://ftp.debian.org/debian bookworm-updates/main amd64 Packages [13.5 kB]                                 
  13. Get:11 http://ftp.debian.org/debian bookworm-updates/main Translation-en [16.0 kB]                                 
  14. Get:12 http://ftp.debian.org/debian bookworm-updates/contrib amd64 Packages [768 B]                                 
  15. Get:13 http://ftp.debian.org/debian bookworm-updates/contrib Translation-en [408 B]                                 
  16. Reading package lists... Done                                                                                       
  17. E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease  401  Unauthorized [IP: 51.79.228.122 443]
  18. E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease' is not signed.
  19. N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  20. N: See apt-secure(8) manpage for repository creation and user configuration details.
  21. root@CNGZPVE01:/# apt-get upgrade
  22. Reading package lists... Done
  23. Building dependency tree... Done
  24. Reading state information... Done
  25. Calculating upgrade... Done
  26. The following packages will be upgraded:
  27.   base-files bind9-dnsutils bind9-host bind9-libs bsdextrautils bsdutils criu eject fdisk libavahi-client3
  28.   libavahi-common-data libavahi-common3 libblkid1 libfdisk1 libglib2.0-0 libgstreamer-plugins-base1.0-0
  29.   libgstreamer1.0-0 libmount1 libnfsidmap1 libnss-systemd libpam-systemd libpython3.11-minimal libpython3.11-stdlib
  30.   libsmartcols1 libsystemd-shared libsystemd0 libtasn1-6 libudev1 libuuid1 mount nfs-common openssh-client
  31.   openssh-server openssh-sftp-server python3-pkg-resources python3-setuptools python3-urllib3 python3.11
  32.   python3.11-minimal rsync ssh systemd systemd-boot systemd-boot-efi systemd-sysv tzdata ucf udev util-linux
  33.   util-linux-extra
  34. 50 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  35. Need to get 24.8 MB of archives.
  36. After this operation, 553 kB disk space will be freed.
  37. Do you want to continue? [Y/n] y
  38. Get:1 http://ftp.debian.org/debian bookworm/main amd64 base-files amd64 12.4+deb12u9 [70.8 kB]
  39. Get:2 http://security.debian.org bookworm-security/main amd64 rsync amd64 3.2.7-1+deb12u2 [419 kB]
  40. Get:3 http://ftp.debian.org/debian bookworm/main amd64 bsdutils amd64 1:2.38.1-5+deb12u3 [94.4 kB]
  41. Get:4 http://ftp.debian.org/debian bookworm/main amd64 libsmartcols1 amd64 2.38.1-5+deb12u3 [107 kB]
  42. Get:5 http://ftp.debian.org/debian bookworm/main amd64 util-linux-extra amd64 2.38.1-5+deb12u3 [111 kB]
  43. Get:6 http://ftp.debian.org/debian bookworm/main amd64 util-linux amd64 2.38.1-5+deb12u3 [1,177 kB]
  44. Get:7 http://security.debian.org bookworm-security/main amd64 libtasn1-6 amd64 4.19.0-2+deb12u1 [48.6 kB]
  45. Get:8 http://security.debian.org bookworm-security/main amd64 bind9-host amd64 1:9.18.33-1~deb12u2 [54.1 kB]
  46. Get:9 http://security.debian.org bookworm-security/main amd
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
继续阅读请点击广告

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

笑看天下无敌手

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表