1

我正在尝试在我的 Pi Zero 上安装 OPENALPR,我正在使用 https://www.reddit.com/r/raspberry_pi/comments/baxwz5/how_to_install_openalpr_on_raspberry_pi/上的说明

在我运行以下命令后:

sudo apt-get install autoconf automake libtool libleptonica-dev libicu-dev libpango1.0-dev libcairo2-dev cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev virtualenvwrapper liblog4cplus-dev libcurl4-openssl-dev libtiff5-dev libpng12-dev gcc make ca-certificates autoconf-archive

我得到错误:

The following packages have unmet dependencies:
 libpng-dev : Conflicts: libpng12-dev but 1.2.54-6 is to be installed
 libpng12-dev : Conflicts: libpng-dev but 1.6.36-6 is to be installed
E: Unable to correct problems, you have held broken packages.

在较小的组中安装软件包(而不是一次安装)可以工作,但在此过程中会删除 libpng-dev

上面的不兼容怎么解决?谢谢

4

1 回答 1

1

将 libpng12-dev 替换为 libpng-dev

于 2021-10-08T13:38:54.667 回答