postgresql インストール時にエラー発生 Failed to fetch debian postgresql postgresql .deb 404 Not Found [IP: postgresql postgresql
Failed to fetch debian postgresql postgresql .deb 404 Not Found [IP:
■実行コマンド
RUN apt-get -y install postgresql
・・・省略
#0 486.0 Fetched 45.7 MB in 8min 4s (94.5 kB/s)
#0 486.0 E: Failed to fetch http://deb.debian.org/debian/pool/main/p/postgresql-13/postgresql-client-13_13.8-0%2bdeb11u1_amd64.deb 404 Not Found [IP: 151.101.110.132 80]
#0 486.0 E: Failed to fetch http://deb.debian.org/debian/pool/main/p/postgresql-13/postgresql-13_13.8-0%2bdeb11u1_amd64.deb 404 Not Found [IP: 151.101.110.132 80]
#0 486.0 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
failed to solve: executor failed running [/bin/sh -c apt-get -y install postgresql]: exit code: 100
■解決策
事前に
$ apt-get update
する。その後に再度
$ RUN apt-get -y install postgresql
でok