Proxmox VE 9.0.3 apt updateでエラーになった時のメモ

chackchychackchy
1 min read

有料のサブスクに入っていないと、apt updateしたときにエラーになってしまう。 公式のドキュメントにそれを回避する方法が載っているのでそれに沿って作業を行ったときのメモ。

エラー内容は次の通り。

root@user:~# apt update && apt upgrade
Hit:1 http://security.debian.org/debian-security trixie-security InRelease
Hit:2 http://deb.debian.org/debian trixie InRelease        
Hit:3 http://deb.debian.org/debian trixie-updates InRelease
Err:4 https://enterprise.proxmox.com/debian/ceph-squid trixie InRelease
  401  Unauthorized [IP: 117.120.5.24 443]
Err:5 https://enterprise.proxmox.com/debian/pve trixie InRelease
  401  Unauthorized [IP: 117.120.5.24 443]
Error: Failed to fetch https://enterprise.proxmox.com/debian/ceph-squid/dists/trixie/InRelease  401  Unauthorized [IP: 117.120.5.24 443]
Error: The repository 'https://enterprise.proxmox.com/debian/ceph-squid trixie InRelease' is not signed.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.
Error: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/trixie/InRelease  401  Unauthorized [IP: 117.120.5.24 443]
Error: The repository 'https://enterprise.proxmox.com/debian/pve trixie InRelease' is not signed.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.

Ceph リポジトリ

/etc/apt/sources.list.d/ceph.sourcesを適切に書き換えればよいとのこと。

無料版を使いたいので、次のように書き換える。

Types: deb
URIs: http://download.proxmox.com/debian/ceph-squid
Suites: trixie
Components: no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

Proxmox VE リポジトリ

次の通りにやっていく。

  1. /etc/apt/sources.list.d/pve-enterprise.sourcesの中身を#ですべてコメントアウト
  2. /etc/apt/sources.list.d/proxmox.sourcesファイルに次の内容を書く。
Types: deb
URIs: http://download.proxmox.com/debian/pve
Suites: trixie
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

apt updateできればOK。

0
Subscribe to my newsletter

Read articles from chackchy directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

chackchy
chackchy