安裝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
參考資料