Search code examples
ubuntuarmraspberry-pi4ddev

ddev with RaspberryPi 4 and Ubuntu Server 22?


I got some new Raspberry Pi 4 with 8GB ram to replace some mini servers that I have in my office network.

Normally I use the Ubuntu Server 22.04 (jammy) on my mini servers and ddev works well. Unfortunatelly this is not the case with the same Ubuntu inside of my new Pi. I was able to install the docker and the mkcert and both are running well but, when I try to install the ddev, I just got the message "Sorry, your machine architecture armv7l is not currently supported."

Am I doing something wrong or there's no port to this set up?

Install the ddev using apt and the install script as well. Both give me the same message.

Thanks


Solution

  • First, you need a 64-bit version of Linux for your Raspberry Pi. As explained below in https://stackoverflow.com/a/76815990/215713 that is a fundamental requirement.

    I've been running DDEV on a Raspberry Pi for years, see https://ddev.com/blog/watch-ddev-local-on-arm64-raspberry-pi/

    Raspberry Pi is an arm64 processor, so you need to use the arm64 version of DDEV. You can use the linux arm64 version from https://github.com/ddev/ddev/releases

    But you didn't say how you were trying to install DDEV... Both apt install ddev and the install script should work fine.

    Here's what I see with arch and uname -a on my Pi running Ubuntu 22.04 Jammy:

    $ arch
    aarch64
    $ uname -a
    Linux pi-ddev-site 5.15.0-1034-raspi #37-Ubuntu SMP PREEMPT Mon Jul 17 10:02:14 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux