0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Proxmox VE 9でapt updateでエラーになった

0
Posted at

Proxmox VE9 のシェルでapt updateをしたら以下のエラーになりました。
その対応のメモです。

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
Error: The repository 'https://enterprise.proxmox.com/debian/ceph-squid trixie InRelease' is not signed.

原因

サブスクリプションを持っていないのに、Enterprise Repositoryを有効にしていたため。

対策

  1. apt リポジトリの参照先のEnterprise Repositoryを無効にする。
  2. pve-no-subscription版の参照先を作成する。

確認

リポジトリの内容は

/#ls -l /etc/apt
total 32
drwxr-xr-x 2 root root 4096 Mar 15 01:06 apt.conf.d
drwxr-xr-x 2 root root 4096 Jun 25  2025 auth.conf.d
drwxr-xr-x 2 root root 4096 Jun 25  2025 keyrings 
-rw-r--r-- 1 root root  147 Nov  1 11:58 listchanges.conf
drwxr-xr-x 2 root root 4096 Oct  7  2024 listchanges.conf.d
drwxr-xr-x 2 root root 4096 Jun 25  2025 preferences.d
-rw-r--r-- 1 root root    0 Nov  1 11:58 sources.list
drwxr-xr-x 2 root root 4096 Mar 15 15:49 sources.list.d
drwxr-xr-x 2 root root 4096 Nov  1 11:58 trusted.gpg.d

/# ls -l /etc/apt/sources.list.d
total 12
-rw-r--r-- 1 root root 163 Aug  5  2025 ceph.sources
-rw-r--r-- 1 root root 365 Aug  5  2025 debian.sources
-rw-r--r-- 1 root root 160 Aug  5  2025 pve-enterprise.sources

無効化

まずEnterprise リポジトリを無効化します。

pve-enterprise.sourcesとceph.sourcesの中身をコメントにして無効化。

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

# Types: deb
# URIs: https://enterprise.proxmox.com/debian/pve
# Suites: trixie
# Components: pve-enterprise
# Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

/etc/apt/sources.list.d/ceph.sources

# Types: deb
# URIs: https://enterprise.proxmox.com/debian/ceph-squid
# Suites: trixie
# Components: enterprise
# Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

No‑subscription リポジトリを追加

nano /etc/apt/sources.list.d/pve-no-subscription.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

Ceph の no-subscription を追加

nano /etc/apt/sources.list.d/ceph-no-subscription.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
/# apt update
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
Get:4 http://download.proxmox.com/debian/ceph-squid trixie InRelease [2,736 B]
Get:5 http://download.proxmox.com/debian/pve trixie InRelease [3,534 B]
Fetched 6,270 B in 1s (4,406 B/s)    
All packages are up to date.  

成功しました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?