curl
依存関係の不一致の問題のため、更新またはインストールできません。(私はそれが役立つかもしれないと思って、削除して再インストールしようとしましたが、それはしませんでした。)
私のcurl
試み:
pi@RECOVERY:~ $ sudo apt-get install curl
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+deb9u1) but 7.38.0-4+deb8u5 is to be installed
E: Unable to correct problems, you have held broken packages.
次に、依存関係の1つを試行します。
pi@RECOVERY:~ $ sudo apt-get install libcurl3
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:
libcurl3 : Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but 1.12.1+dfsg-19+deb8u2 is to be installed
Depends: libnghttp2-14 (>= 1.12.0) but it is not installable
Depends: libpsl5 (>= 0.13.0) but it is not installable
Depends: libssh2-1 (>= 1.7.0) but 1.4.3-4.1+deb8u1 is to be installed
Depends: libssl1.0.2 (>= 1.0.2d) but it is not installable
E: Unable to correct problems, you have held broken packages.
私も試しましたがsudo apt-get update && sudo apt-get upgrade && sudo apt-get -f install
、それもうまくいきませんでした。どちらもしませんでしたsudo apt-get purge
。
私はサブの依存性(例えばいくつかのことがわかりlibnghttp2-14
、libpsl5
など)として表示され、「インストールできません。」これはそれと関係がありますか?
どうすればこれを乗り越えることができますか?
-編集-
コメントで要求されたように、ここに私の/etc/apt/sources.list
、とからの出力がありapt-cache policy curl
ます:
sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://security.debian.org stable/updates main
deb-src http://security.debian.org/ stable/updates main
apt-cache
pi@RECOVERY:~ $ apt-cache policy curl
curl:
Installed: (none)
Candidate: 7.52.1-5+deb9u1
Version table:
7.52.1-5+deb9u1 0
500 http://security.debian.org/ stable/updates/main armhf Packages
7.38.0-4+deb8u6 0
500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
500 http://archive.raspbian.org/raspbian/ jessie/main armhf Packages
あなたのsources.list
ミックスRaspbianジェシー、そして今ストレッチ(Debianの9)であるDebianの「安定」。これがこの問題に直面している理由です。curl
インストールはcurl
、Raspbian Jessieからの依存関係を使用して、Debian9からセキュリティアップデートをインストールしようとしますが、これは機能しません。
この問題を解決するには、交換するstable
とjessie
中sources.list
:
deb http://security.debian.org jessie/updates main
deb-src http://security.debian.org jessie/updates main
それが完了したら、を実行するapt update
と、をインストールできるようになりますcurl
。
安定したDebianリリースに従う場合は、「安定」ではなく常にリリースコードネームを使用する必要があります。後者は新しいリリースが作成されると突然リリースを変更するためです。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加