libpng12-0がインストールされていません

libpng12-0がインストールされていません

重要な要約 - 私のシステムはlibpng12をインストールしようとしませんが、多くのアプリケーションはそのライブラリに依存しています。 OS - カーリースクロ​​ール
こんにちはあなた。過去数日間、私はaptを使用してpython3-opencvをインストールしたときに発生したこの問題を解決しようとしました。私が得るエラー:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libqtgui4 : Depends: libpng12-0 (>= 1.2.13-4) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

提案どおりに実行しようとすると、次のようになりますapt --fix-broken install

The following additional packages will be installed:
  libpng12-0
The following NEW packages will be installed:
  libpng12-0
0 upgraded, 1 newly installed, 0 to remove and 2294 not upgraded.
2 not fully installed or removed.
Need to get 0 B/173 kB of archives.
After this operation, 273 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 602063 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.50-2+deb8u3_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.50-2+deb8u3) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.50-2+deb8u3_amd64.deb (-
-unpack):
 unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or d
irectory
Errors were encountered while processing:
 /var/cache/apt/archives/libpng12-0_1.2.50-2+deb8u3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

これがうまくいかなかったので、次のようにdebパッケージからインストールしようとしましたdpkg -i libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

(Reading database ... 602063 files and directories currently installed.)
Preparing to unpack libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--install):
 unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Processing triggers for libc-bin (2.30-8) ...
Errors were encountered while processing:
 libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

ここが私があきらめ、皆さんに尋ねることに決めたところです。 :D このライブラリを入手するには何ができますか?

ベストアンサー1

libpng(提供libpng12-0)2016年4月24日からKali Linuxから削除されました。

python3-opencv以下からインストールできますapt

sudo apt install opencv

opencvパッケージが提供されますpython3-opencv

次の行が必要です/etc/apt/sources.list

deb http://http.kali.org/kali kali-rolling main non-free contrib

おすすめ記事