Debian 10(Buster)でのIronPdfデプロイメントのトラブルシューティング
IronPDF のデプロイメント用に Debian 10 (Buster) ベースイメージを使用して Docker イメージをビルドする際に、Docker ビルドが apt-get update ステップで 404 エラーで失敗します。
0.648 Err:4 http://deb.debian.org/debian buster Release
0.648 404 Not Found [IP: 151.101.162.132 80]
0.657 Err:5 http://deb.debian.org/debian-security buster/updates Release
0.657 404 Not Found [IP: 151.101.162.132 80]
0.708 E: The repository 'http://deb.debian.org/debian buster Release' does not have a Release file.
0.708 E: The repository 'http://deb.debian.org/debian-security buster/updates Release' does not have a Release file.
Debian 10 (Buster) はサポート終了です。そのリポジトリは deb.debian.org から削除されたため、デフォルトの Buster ミラーに対して apt-get update を呼び出す Docker イメージはこれらの 404 エラーで失敗します。 エラーはIronPDFの依存関係インストールコマンド自体ではなく、リポジトリメタデータの欠落によって引き起こされます。
解決策
オプション1: Debian 12へのアップグレード(推奨)
Dockerfile ベースイメージを mcr.microsoft.com/dotnet/aspnet:8.0 または他の Debian 12 ベースのイメージに移行してください。 IronPDFはDebian 12および.NET 8を完全にサポートします。 完全な動作Dockerfileについては、IronPDF Dockerガイドをご覧ください。
オプション2: DockerfileでAPTをDebianアーカイブにリダイレクトする
apt-get update の前に sed コマンドを追加して、sources.list を archive.debian.org に向けるように書き換えます:
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
RUN sed -i 's|deb.debian.org|archive.debian.org|g' /etc/apt/sources.list \
&& sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y \
libgobject-2.0-0 libglib2.0-0 libnss3 libatk1.0-0 libatk-bridge2.0-0 \
libcups2 libxcomposite1 libxrandr2 libxdamage1 libxfixes3 \
libxkbcommon0 libxshmfence1 libgbm1 libasound2 \
libpangocairo-1.0-0 libpango-1.0-0 libgtk-3-0 \
fonts-liberation ca-certificates \
&& rm -rf /var/lib/apt/lists/*
この方法は、まだ.NET 8に移行できない既存 for .NET Core 3.1デプロイに役立ちます。 Debian 10はもはやセキュリティパッチを受け取らないため、Debian 12への移行は推奨される経路です。

