LoginSignup
2
1

More than 1 year has passed since last update.

【2022/04/05 時点】Debian 10 で apt-get update を実行すると、「404 Not Found [IP: 151.101.110.132 80]」が発生する問題と対策

Last updated at Posted at 2022-04-05

概要

過去に docker build に成功した Dockerfile (Debian GNU/Linux 10 \n \l) において、
apt-get update を追加し実行すると、次のエラーが発生した

このときの原因と対策の記録である.

当然、人によって原因は異なるので注意が必要である.

エラーログ

Err:1 http://deb.debian.org/debian buster/main amd64 libc-l10n all 2.28-10
  404  Not Found [IP: 151.101.110.132 80]

原因

下記 /etc/apt/sources.list に定義された URL から、
buster (Debian 10) のパッケージリストが存在しなくなったため

# cat /etc/apt/sources.list
deb http://deb.debian.org/debian buster main
deb http://security.debian.org/debian-security buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb http://dl.google.com/linux/chrome/deb/ stable main 

対策

ミラーサイト「http://ftp.jp.debian.org」を参照するように変更した

$ diff -u /etc/apt/sources.list.ORIG /etc/apt/sources.list
--- /etc/apt/sources.list.ORIG	2022-04-05 23:26:26.849715123 +0900
+++ /etc/apt/sources.list	2022-04-05 22:45:08.850093089 +0900
@@ -1,4 +1,4 @@
-deb http://deb.debian.org/debian buster main
-deb http://security.debian.org/debian-security buster/updates main
-deb http://deb.debian.org/debian buster-updates main
-deb http://dl.google.com/linux/chrome/deb/ stable main 
+deb http://ftp.jp.debian.org/debian/ buster main contrib non-free
+deb http://ftp.jp.debian.org/debian/ buster-updates main contrib
+deb http://ftp.jp.debian.org/debian/ streach-backports main contrib  non-free

その他

事前に、Proxy サーバを使用する設定が正しいことは確認した.

参考にしたサイト

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