Profile picture

[Proxmox] Proxmox 무료 사용자 apt update 에러 해결하기

JaehyoJJAng2024년 01월 10일

◾️ 개요

apt-get update 명령어 실행시 아래와 같은 에러 발생

Hit:1 http://ftp.kr.debian.org/debian bullseye InRelease
Hit:2 http://ftp.kr.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org bullseye-security InRelease
Hit:4 http://download.proxmox.com/debian/pve bullseye InRelease
Err:5 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
  401  Unauthorized [IP: 103.76.41.50 443]
Err:6 https://enterprise.proxmox.com/debian/pve bullseye InRelease
  401  Unauthorized [IP: 103.76.41.50 443]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease  401  Unauthorized [IP: 103.76.41.50 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.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease  401  Unauthorized [IP: 103.76.41.50 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bullseye 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. 

이는 구독 서비스가 활성화 되지 않은 유저가 enterprise 레포지토리로 패키지 업데이트 요청 시, 접근이 차단되어 해당 레포지토리에서 패키지 데이터베이스를 로드할 수 없다는 에러가 발생하는 것이다.

해결 방법은 간단하다.


◾️ 해결 방법

/etc/apt/sources.list, /etc/apt/sources.list.d/ceph.list 파일을 각각 아래와 같이 수정해주자.

$ vim /etc/apt/sources.list

deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib

# Proxmox VE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib
$ vim /etc/apt/sources.list.d/ceph.list

deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription

그리고 /etc/apt/sources.list.d/pve-enterprise.list 레포지토리를 삭제

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

그러고 다시 apt-get update를 수행하면 정상적으로 처리된다.

root@pve:~/npm# apt-get update -y

Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://ftp.debian.org/debian bookworm InRelease
Hit:3 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:4 http://download.proxmox.com/debian/ceph-reef bookworm InRelease
Hit:5 http://ftp.debian.org/debian bookworm-updates InRelease
Reading package lists... Done

◾️ Ref

https://pve.proxmox.com/wiki/Package_Repositories


Loading script...