8
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?

kubernetesのパッケージレポジトリがいつのまにか削除されてた

Posted at

apt updateでコケていた

自宅のubuntuサーバーで久しぶりに apt update を実行したところ、kubernetesの該当レポジトリがもうなくなってるよと言われていた。

E: The repository 'https://apt.kubernetes.io kubernetes-xenial Release' no longer has a Release file.

https://github.com/kubernetes/release/issues/3485
こちらのissueにある通り、 2024-03-04以降削除されているらしい。

解決方法

kubernetes公式のブログに対処方が記載されている。
https://kubernetes.io/blog/2023/08/15/pkgs-k8s-io-introduction/#how-to-migrate

以下に対応を抜粋

apt参照のレポジトリ更新

echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list

gpg keyのダウンロード

curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg

packageのアップデート

sudo apt-get update

これで正常に更新できるかと思います。

8
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
8
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?