【小技巧】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


參考資料

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章