【小技巧】Raspberry Pi 4B树莓派 | 树莓派apt安装libtiff5-dev库报错

安装libtiff5:

  sudo apt-get install libtiff5-dev -y

报错如下:

The following packages have unmet dependencies:
libtiff5-dev : Depends: libjbig-dev but it is not going to be installed
Depends: libjpeg-dev
Depends: liblzma-dev but it is not going to be installed
Depends: libtiff5 (= 4.0.8-2+deb9u4) but 4.0.10-4 is to be installed
E: Unable to correct problems, you have held broken packages.

解决方案:

首先说说为什么会这样,原因就是参考资料文章里面说的这样:" 刚安装好树莓派的时候,为了更新速度快,换了国内的源,结果换!错!了!"
只顾着按照网上的教程做,没有考虑太多,坑太多了!

根据自己安装的树莓派系统版本更新源,Debian 10 Buster? Stretch?Jessie?

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi


参考资料

猜你喜欢

转载自blog.csdn.net/Naiva/article/details/105218480