アーカイブを介してDebianにカールをインストールする

アーカイブを介してDebianにカールをインストールする

debian:9コンテナイメージが正しく機能するようにする必要があります。

まず、dockerfileが失敗しました。

apt-get update -y

だから私はこれをしました:

RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list.d/backdoors.list
RUN rm /etc/apt/sources.list

これで、apt-getアップデートが正常に動作します。ただし、カールをインストールする必要がありますが、次のような結果が表示されます。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 curl : Depends: libcurl3 (= 7.52.1-5+deb9u10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

パッケージが別のリポジトリに移動されたかどうかを確認する方法がわからず、以前のソースリストを復元しても機能しません。 libcurl3のインストールも試しましたが、うまくいきませんでした。

この問題を解決する正しい方法は何ですか?

ベストアンサー1

解決しました。

すべてがアーカイブに移植されたので、間違ったリンクを使用しました。から始めなければならない

deb http://security.debian.org/debian-security stretch/updates main

到着

deb http://archive.debian.org/debian-security stretch/updates main

その後実行

apt-get update
apt-get install curl

おすすめ記事