Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

2
2

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を解決する方法

Posted at

今回解決すること

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を実行して問題が起きなければ解決です.

さいごに

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

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

2
2
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

Comments

No comments

Let's comment your feelings that are more than good

Qiita Conference 2024 Autumn will be held!: 11/14(Thu) - 11/15(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

Takahiro Anno, Masaki Fujimoto, Yukihiro Matsumoto(Matz), Shusaku Uesugi / Nicolas Ishihara(Vercel Inc.)

View event details

Being held Article posting campaign

2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Login to continue?

Login or Sign up with social account

Login or Sign up with your email address