Proxmox "The enterprise repository is enabled, but there is no active subscription!" 에러 해결하기.

Proxmox "The enterprise repository is enabled, but there is no active subscription!" 에러 해결하기.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease  401  Unauthorized [IP: 51.79.159.216 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.

Proxmox에서 apt update를 이용했을때 나오는 위와같은 에러를 해결하는방법입니다.

기본적으로 Proxmox의 경우 오픈소스이지만 엔터프라이즈 라이선스의 경우에는 유료구독으로 지원을 받을 수 있습니다.

다만, 기본 설치시에도 해당 Enterprise 라이선스의 레포지터리가 포함되어있어 위와같은 에러가 나오는데요

업데이트 -> Repositories 에도 아래처럼 에러가 뜨게됩니다.

The enterprise repository is enabled, but there is no active subscription!

해결방법

해결방법은 apt 레포지토리에서 enterprise를 주석처리해주고 비구독레포지토리를 추가해주시는방법을 사용하시면 됩니다.

기본적으로 PVE Enterprise의 레포지터리는 아래경로에 있는데요.
vi 편집기를 통해 기본 레포지토리를 주석처리하고 no-subscription 레포지토리를 등록해주겠습니다.

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

i를 눌러 편집모드로 진입하신뒤 첫줄은 #을 맨앞에 넣어 주석처리해주시거나 아예 다 삭제해주시고 아래 내용을 넣어주시면됩니다.

#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

이렇게 해주시고 apt update를 하시면 아래처럼 패키지가 제대로 업데이트되는걸 확인하실 수 있습니다.

관리페이지에도 아래처럼 나오나 사용하시는데는 문제없습니다.