# Error installing FPC on Raspi 4 with Dietpi Armv7

**URL:** <https://dietpi.com/forum/t/error-installing-fpc-on-raspi-4-with-dietpi-armv7/5863>\
**Category:** General Discussion\
**Created:** [25 October 2021 10:48 UTC](https://dietpi.com/forum/t/error-installing-fpc-on-raspi-4-with-dietpi-armv7/5863 "2021-10-25T10:48:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![diver66](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@diver66](https://dietpi.com/forum/u/diver66)\
**Post date:** [25 October 2021 10:48 UTC](https://dietpi.com/forum/t/error-installing-fpc-on-raspi-4-with-dietpi-armv7/5863/1 "2021-10-25T10:48:25Z")

</div>

HI,

I am trying to install FPC on my Raspi 4, using the latest DietPi\_RPi-ARMv7-Bullseye (32 bit Debian), I also tried DietPi\_RPi-ARMv8-Bullseye (64 bit Debian),  
problem is I am always getting the following error message :

sudo apt-get -y install fpc

The following packages have unmet dependencies:  
libgtk2.0-dev : Depends: gir1.2-gtk-2.0 (= 2.24.33-2) but 2.24.33-2+rpt1 is to be installed  
E: Unable to correct problems, you have held broken packages.  
  
  
sudo apt-get install libgtk2.0-dev

The following packages have unmet dependencies:  
libgtk2.0-dev : Depends: gir1.2-gtk-2.0 (= 2.24.33-2) but 2.24.33-2+rpt1 is to be installed  
E: Unable to correct problems, you have held broken packages.

What can I do ?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [25 October 2021 10:53 UTC](https://dietpi.com/forum/t/error-installing-fpc-on-raspi-4-with-dietpi-armv7/5863/2 "2021-10-25T10:53:05Z")

</div>

I guess you would need to use the ARMv6 image as the package you try to install require Raspbian repository instead of Debian repository.

---

<div class="post-metadata">

**Author:** ![diver66](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@diver66](https://dietpi.com/forum/u/diver66)\
**Post date:** [25 October 2021 12:32 UTC](https://dietpi.com/forum/t/error-installing-fpc-on-raspi-4-with-dietpi-armv7/5863/3 "2021-10-25T12:32:33Z")

</div>

okay thanks a lot, i’ll install now and let you know, quick question could I not somehow add the raspbian sources ?, just shooting blanks 😃

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [25 October 2021 12:44 UTC](https://dietpi.com/forum/t/error-installing-fpc-on-raspi-4-with-dietpi-armv7/5863/4 "2021-10-25T12:44:00Z")

</div>

not 100% sure on the side effect if you add Raspbian source as well.

Theoretically you could download the single deb package directly but it might have other dependency as well.

```nohighlight
root@DietPiProd:~# apt show libgtk2.0-dev
Package: libgtk2.0-dev
Version: 2.24.32-3+rpt1
Priority: optional
Section: libdevel
Source: gtk+2.0
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Installed-Size: 16.1 MB
Depends: libgtk2.0-0 (= 2.24.32-3+rpt1), gir1.2-gtk-2.0 (= 2.24.32-3+rpt1), libgtk2.0-common, libglib2.0-dev (>= 2.27.3), libgdk-pixbuf2.0-dev (>= 2.21.0), libpango1.0-dev (>= 1.20), libatk1.0-dev (>= 1.29.2), libcairo2-dev (>= 1.6.4-6.1), libx11-dev (>= 2:1.0.0-6), libxext-dev (>= 1:1.0.1-2), libxinerama-dev (>= 1:1.0.1-4.1), libxi-dev (>= 1:1.0.1-4), libxrandr-dev (>= 2:1.2.99), libxcursor-dev, libxfixes-dev (>= 1:3.0.0-3), libxcomposite-dev (>= 1:0.2.0-3), libxdamage-dev (>= 1:1.0.1-3), pkg-config (>= 0.26-1), libxml2-utils

```

Better to use ARMv6 image 🕶

---

<div class="post-metadata">

**Author:** ![diver66](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@diver66](https://dietpi.com/forum/u/diver66)\
**Post date:** [29 October 2021 17:41 UTC](https://dietpi.com/forum/t/error-installing-fpc-on-raspi-4-with-dietpi-armv7/5863/5 "2021-10-29T17:41:35Z")

</div>

Thanks worked like a charm

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [29 October 2021 17:46 UTC](https://dietpi.com/forum/t/error-installing-fpc-on-raspi-4-with-dietpi-armv7/5863/6 "2021-10-29T17:46:33Z")

</div>

Did you used the ARMv6 image or how did you managed?
