5
3

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でapt-get update' failed: exit code 100を解決する方法

Last updated at Posted at 2024-07-01

今回解決すること

image.png

"TASK ERROR: command 'apt-get update' failed: exit code 100" というエラーを解決します.

なぜエラーが起きるのか

まずなぜこのエラーを吐くのかというと, パッケージマネージャがProxmoxエンタープライズリポジトリにアクセスしようとしていて, サブスクリプション登録をしていないとこのエラーが発生します.

では, エンタープライズリポジトリにアクセスしないように設定を変更することで解決ができます.

解決手順

ノードのシェルに入って次のファイルを変更します.

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

image.png

おそらくこのような内容が記述されていると思うので, この1行目の先頭に'#'をつけてコメントアウトを行います.

同様に以下のファイルを開きコメントアウトを行います.

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

image.png

最後に, "pve-no-subscription.list"を作成して以下の内容を入力し保存をしてください

nano /etc/apt/sources.list.d/pve-no-subscription.list

↓ 入力内容 ↓

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

入力し保存したら, 以下のコマンドを実行します.

apt-get update && apt-get dist-upgrade

apt-get update && apt-get dist-upgradeを実行して問題が起きなければ解決です.

さいごに

毎日ログに赤文字で目についていたので解決方法を模索しました.
同じ問題で困っている方の助けになれば幸いです.

ご閲覧いただきありがとうございました.

5
3
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
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?