# Mixed architectures (arm64 + armhf) on Raspberry Pi 4 – is this expected?

**URL:** <https://dietpi.com/forum/t/mixed-architectures-arm64-armhf-on-raspberry-pi-4-is-this-expected/25103>\
**Category:** Troubleshooting\
**Created:** [5 April 2026 10:14 UTC](https://dietpi.com/forum/t/mixed-architectures-arm64-armhf-on-raspberry-pi-4-is-this-expected/25103 "2026-04-05T10:14:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![temp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/f04885/32.png) [@temp](https://dietpi.com/forum/u/temp)\
**Post date:** [5 April 2026 10:14 UTC](https://dietpi.com/forum/t/mixed-architectures-arm64-armhf-on-raspberry-pi-4-is-this-expected/25103/1 "2026-04-05T10:14:40Z")

</div>

Hello everyone,  
I’m running a Raspberry Pi 4 with DietPi (Debian trixie, 64-bit / arm64), and I recently ran into issues with Node.js/npm.  
While troubleshooting, I noticed that my system has both arm64 and armhf architectures enabled:

```auto
dpkg --print-architecture
dpkg --print-foreign-architectures

```

In addition, there are several :armhf packages installed, including essential libraries such as:

```auto
libc6:armhf
libgcc-s1:armhf

```

When I tried to remove them, apt correctly prevented it because they are marked as essential packages.  
My questions:

1. Is it normal/expected for DietPi to have both arm64 and armhf architectures enabled?
2. Is there an official recommendation on whether armhf should be kept or removed?
3. If cleanup is recommended: what is the safe way to do this without breaking the system?
4. Can this multiarch setup cause issues with Node.js/npm (e.g. conflicts between apt packages and NodeSource installations)?

Background:  
I encountered a broken npm installation (missing modules) and started investigating possible architecture conflicts.  
Thanks in advance for your help!

---

<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:** [5 April 2026 10:43 UTC](https://dietpi.com/forum/t/mixed-architectures-arm64-armhf-on-raspberry-pi-4-is-this-expected/25103/2 "2026-04-05T10:43:51Z")

</div>

That has nothing to do with DietPi. I don’t think you’re using a real 64-bit system. It’s probably a 32-bit image with a 32-bit userland and a kernel that’s being forced to run in 64-bit mode via a configuration parameter.

Unfortunately, you forgot to fill in the troubleshooting template and simply deleted it. Otherwise, we would already have a bit more information about your system. Could you please fill in the following?

#### Required

- DietPi version | `cat /boot/dietpi/.version`
- Distro version | `echo $G_DISTRO_NAME $G_RASPBIAN`
- Kernel version | `uname -a`
- Architecture | `dpkg --print-architecture`
- SBC model | `echo $G_HW_MODEL_NAME` or (EG: RPi3)

And if it is indeed a real 64-bit image, you added the 32-bit architecture manually yourself.

---

<div class="post-metadata">

**Author:** ![temp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/f04885/32.png) [@temp](https://dietpi.com/forum/u/temp)\
**Post date:** [5 April 2026 14:01 UTC](https://dietpi.com/forum/t/mixed-architectures-arm64-armhf-on-raspberry-pi-4-is-this-expected/25103/3 "2026-04-05T14:01:20Z")

</div>

Sorry forgot this

```auto
# cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=10
G_DIETPI_VERSION_SUB=2
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'

# echo $G_DISTRO_NAME $G_RASPBIAN
trixie 0

# uname -a
Linux smarthome 6.12.75+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.75-1+rpt1
(2026-03-11) aarch64 GNU/Linux

# dpkg --print-architecture
arm64

 echo $G_HW_MODEL_NAME
RPi 4 Model B (aarch64)

```

I found only this one

```auto
# dpkg -l | awk '/:armhf/ {print $2}' | cut -d: -f1 | sort -u
libgcc-s1
 

```

Can I remove the armhf and 32bit architecture or reinstall?

I just deleted it it’s okay now

---

<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:** [5 April 2026 20:30 UTC](https://dietpi.com/forum/t/mixed-architectures-arm64-armhf-on-raspberry-pi-4-is-this-expected/25103/4 "2026-04-05T20:30:42Z")

</div>

this is the only 32bit packahge installed? Are you sure?

```auto
dpkg -l | grep armhf

```

if yes, best to install 64bit package and purge the 32bit verion afterwards. Once done, I suggest removing 32bit architecture

```auto
sudo dpkg --remove-architecture armhf
sudo apt update

```

---

<div class="post-metadata">

**Author:** ![temp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/f04885/32.png) [@temp](https://dietpi.com/forum/u/temp)\
**Post date:** [5 April 2026 20:35 UTC](https://dietpi.com/forum/t/mixed-architectures-arm64-armhf-on-raspberry-pi-4-is-this-expected/25103/5 "2026-04-05T20:35:01Z")

</div>

Yes, it was I installed it and purged the other one and removed the architecture…as you described

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [4 July 2026 20:35 UTC](https://dietpi.com/forum/t/mixed-architectures-arm64-armhf-on-raspberry-pi-4-is-this-expected/25103/6 "2026-07-04T20:35:06Z")

</div>

Closed on 4 July 2026 20:35 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
