# No hassle Raspberry Pi 4 installation?

**URL:** <https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551>\
**Category:** Support, Help & Resources\
**Created:** [February 17, 2022, 10:18am UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551 "2022-02-17T10:18:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bubo](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/bubo/32/786_2.png) [@Bubo](https://in-thread.sonic-pi.net/u/Bubo)\
**Post date:** [February 17, 2022, 10:18am UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/1 "2022-02-17T10:18:35Z")

</div>

Hi! Long time no see In\_Thread forum!

I am returning to Sonic Pi once more to play with @amiika [Ziffers](https://github.com/amiika/ziffers). To make musical exploration more fruitful, I am trying to setup a Raspberry Pi with 10’ screen amid my synthesizers and drum machines, with USB-MIDI out going into a thru box for message dispatching. I don’t really need audio output because I won’t be using the audio synthesis capabilities of Sonic Pi, just the timing mechanism and MIDI/OSC I/O.

However, I haven’t been able to find a binary of the latest SP version for the latest Raspbian image and compilation failed as well (more info on this later). I know that some of you are using Sonic Pi primarily on Raspberry Pi. Is there a recent build I could try somewhere or something to make experimentation easier?

I am using a regular Rasp 4 4GB, tiny USB soundcard + 10’ screen mounted and connected through pins.

Have a good day!

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [February 17, 2022, 2:05pm UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/2 "2022-02-17T14:05:35Z")

</div>

EDIT. Correct version will be posted tonight

Hi there. I thought the latest RPi binary deb on [sonic-pi.net](http://sonic-pi.net) was Ok

You could try this which should be the same

purge the version you have installed using  
sudo apt purge sonic-pi  
then download and try installing this version instead

Oops wrong versio. I thin below is for Buster not bullseye. Will add alternative when I am home tonight

> **[sonic-pi\_3.3.1\_1\_armhf.deb](https://drive.google.com/file/d/1UH6CPekpXayT6Fj7Zbt5oSEk_mmFuncv/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Bubo](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/bubo/32/786_2.png) [@Bubo](https://in-thread.sonic-pi.net/u/Bubo)\
**Post date:** [February 17, 2022, 4:13pm UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/3 "2022-02-17T16:13:54Z")

</div>

Thank you very much! I’ll wait for the new version and keep you updated about the installation process. I’ll install it on a fresh environment to start building from scratch.

---

<div class="post-metadata">

**Author:** ![Bubo](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/bubo/32/786_2.png) [@Bubo](https://in-thread.sonic-pi.net/u/Bubo)\
**Post date:** [February 17, 2022, 10:32pm UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/4 "2022-02-17T22:32:00Z")

</div>

Retried installing the deb version from [sonic-pi.net](http://sonic-pi.net) (3.3.1\_2) and got the following error:

```ruby
The following packages have unmet dependencies:
  supercollider-server:armhf : Depends: jackd:armhf but it is not installable
E: Unable to correct problems, you have held broken packages.

```

I’ll continue to investigate.

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [February 17, 2022, 11:22pm UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/5 "2022-02-17T23:22:15Z")

</div>

3.3.1\_2 should be the correct version. How are you installing it? Using dpkg will NOT bring in dependencies. From a terminal in the folder in which it is downloaded use `sudo apt install ./sonic-pi_3.3.1_2_armhf.deb` should work. Alternatively double clicking the icon and entering your pi password when requested should work too.

Another link to this version is at [sonic-pi\_3.3.1\_2\_Bullseye\_armhf.deb - Google Drive](https://drive.google.com/file/d/1ztfGK3LN0r4NGC4ZCjBa--U3uglCfUnu/view?usp=sharing)  
Let me know if you still have problems.

---

<div class="post-metadata">

**Author:** ![Bubo](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/bubo/32/786_2.png) [@Bubo](https://in-thread.sonic-pi.net/u/Bubo)\
**Post date:** [February 18, 2022, 9:35am UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/6 "2022-02-18T09:35:05Z")

</div>

I am running `sudo apt install ./sonic-pi_3.3.1_2_armhf.deb`. The command is launched from a brand new OS image, using `wget` to download the .deb file beforehand. I have not tried using `dpkg`. I don’t really know what is going on, because the dependencies ARE installed. I’ve also tried to run the first steps of the compiling scripts, especially the script that is supposed to download all the dependencies through `apt`.

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [February 18, 2022, 11:05am UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/7 "2022-02-18T11:05:34Z")

</div>

Can you try using qjackctl? It is installed by default but hidden on the main menu sound section. Use the main menu editor in the preferences section to enable it. See if you can start jack. Again I am in hospital visiting my Wife during the day so can’t give more details from here.

---

<div class="post-metadata">

**Author:** ![Bubo](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/bubo/32/786_2.png) [@Bubo](https://in-thread.sonic-pi.net/u/Bubo)\
**Post date:** [February 18, 2022, 3:51pm UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/8 "2022-02-18T15:51:24Z")

</div>

Jack is installed and running well. Is `jackd` the same thing as Jack2? The error I reported sooner in the topic it is complaining about `jackd` and not `jackd2`.

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [February 19, 2022, 6:55pm UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/9 "2022-02-19T18:55:50Z")

</div>

Sorry to be so long in answering but I am spending every day all day at hospital at present visiting my Wife.  
see if this page helps you sort the problem

> **[Use apt-get to fix missing and broken packages](https://linuxhint.com/apt_get_fix_missing_broken_packages/)**
>
> Sometimes you receive an error and left with a condition where you cannot add a new package nor update or delete the existing packages until you fix the problem. In this article, we will learn how to fix the missing dependencies and broken packages...

---

<div class="post-metadata">

**Author:** ![shemp](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@shemp](https://in-thread.sonic-pi.net/u/shemp)\
**Post date:** [February 20, 2022, 11:42am UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/10 "2022-02-20T11:42:32Z")

</div>

As mentioned in the Mac M1 thread, people have been working on this. “This” meaning hassle-free generation of packages in and for various environments. You need to `apt-get` some packages and libraries for the source to build, but that is not sufficient. For instance, try compiling Sonic Pi in a clean Raspbian Bullseye environment (e.g., in a virtual machine). The library `libatomic1` gets installed. However, the first crash in the `pi-prebuild` script occurs when it downloads and tries to build `vcpkg-tools`: the option `-latomic` is missing when it tries to link at the end.

This is not even a Sonic Pi issue, but where should it be patched?

---

<div class="post-metadata">

**Author:** ![samaaron](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/samaaron/32/7_2.png) [@samaaron](https://in-thread.sonic-pi.net/u/samaaron)\
**Post date:** [February 20, 2022, 12:03pm UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/11 "2022-02-20T12:03:45Z")

</div>

> [@shemp](#):
>
> This is not even a Sonic Pi issue, but where should it be patched?

Sounds like a potential vcpkg issue to me. I’m yet to test it, but try updating vcpkg by first deleting the `app/vcpkg`, then modifying the `pi-prebuild.sh` to use `VCPKG_BRANCH="2022.02.02"` and see if that helps matters. It’s one version newer than the one we reference currently.

Note, this is the kind of developer-oriented discussion that’s best held over on GitHub. These forums are mainly for discussing the use of Sonic Pi rather than building it 🙂

---

<div class="post-metadata">

**Author:** ![ethancrawford](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@ethancrawford](https://in-thread.sonic-pi.net/u/ethancrawford)\
**Post date:** [February 20, 2022, 12:21pm UTC](https://in-thread.sonic-pi.net/t/no-hassle-raspberry-pi-4-installation/6551/12 "2022-02-20T12:21:54Z")

</div>

\*`VCPKG_BRANCH` that is 😉
