# Sonic Pi .deb package on Ubuntu 19.10?

**URL:** <https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635>\
**Category:** Support, Help & Resources\
**Created:** [April 13, 2020, 7:43am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635 "2020-04-13T07:43:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.krakou](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@chris.krakou](https://in-thread.sonic-pi.net/u/chris.krakou)\
**Post date:** [April 13, 2020, 7:43am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/1 "2020-04-13T07:43:48Z")

</div>

Has anyone tried using the new .deb package on other debian-ish systems such as Ubuntu?

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [April 13, 2020, 8:01am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/2 "2020-04-13T08:01:40Z")

</div>

hi @chris.krakou

no but @robin.newman said it was working only for Buster on raspberry pi.  
the next [Ubuntu 20.04 Long Term Support](https://ubuntu.com/about/release-cycle) version is due to be released soon. I will try to install spi 3.2.2 using the new procedure as i did on 18.04.04

> [@Sonic PI 3.2.2 under Ubuntu 18.04.04 possible!](http://in-thread.sonic-pi.net/t/sonic-pi-3-2-2-under-ubuntu-18-04-04-possible/3612):
>
> Hi there, Just to let you know you can install the latest 3.2.2 version on ubuntu 18.04.04. It works for me but i precise that it is said on linux it depends on your configuration but the following steps work for me on an “already jack system” Edit : a tip : on ubuntu 18.04.04 these following packages have different name : libffi is libffi-dev and so on for libjack-jack2-dev. i use the excellent [Open Stage Control software from Jean-Emmanuel](https://github.com/jean-emmanuel/open-stage-control/releases/tag/v1.0.0-alpha3). This little piece of code allows me…

---

<div class="post-metadata">

**Author:** ![chris.krakou](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@chris.krakou](https://in-thread.sonic-pi.net/u/chris.krakou)\
**Post date:** [April 13, 2020, 8:05am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/3 "2020-04-13T08:05:12Z")

</div>

Thanks for the fast response @nlb. I’m going to give the deb package a try on the off chance that it just might work.

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [April 13, 2020, 8:11am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/4 "2020-04-13T08:11:52Z")

</div>

you are a sacré aventurier ! [http://r.newman.ch/rpi/sonic-pi-3.2.2/](http://r.newman.ch/rpi/sonic-pi-3.2.2/)_The installer is a .deb file which will ONLY work with Raspberry Pi_  
I wouldn’t bet a penny on your success…

why don’t you wait for 20.04 release and then dist-upgrade ?

---

<div class="post-metadata">

**Author:** ![chris.krakou](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@chris.krakou](https://in-thread.sonic-pi.net/u/chris.krakou)\
**Post date:** [April 13, 2020, 8:18am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/5 "2020-04-13T08:18:27Z")

</div>

Good point. I’ll go with the safe option and use 18.04

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [April 13, 2020, 8:27am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/6 "2020-04-13T08:27:13Z")

</div>

10 days to wait. But it seems to have a first beta released if wanna try right now. [http://releases.ubuntu.com/20.04/](http://releases.ubuntu.com/20.04/)

---

<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:** [April 13, 2020, 8:40am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/7 "2020-04-13T08:40:21Z")

</div>

The binary deb package I produced uses arm coded binaries and so won’t be any use on non arm based computers. However, I think that a binary deb for other Linux could be produced but would probably be different for each distro, by its very nature, not being source based. You can certainly build SP 3.2.2 on Ubuntu 19.10 and Debian 10.3. I will be looking at Ubuntu 20.04 when it is released.

---

<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:** [April 13, 2020, 6:58pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/8 "2020-04-13T18:58:44Z")

</div>

> <https://twitter.com/rbnman/status/1249704908909170689>

I decided to have a go, installed Ubuntu 20.04 beta on my Mac and managed to build SP 3.2.2 on it fairly easily. On the plus side, you don’t need any alternative packages now. The supplied packages for supercollider-server and sc3-plugins-server as well as cmake are now usable. The only problem is that final build of the helpfile system needs a lot of memory, and I had to install a swapfile to get this to build. The symptom you will get is a crash towards the end of the build process, due to lack of memory, although you don’t get any helpful error messages. I was building on a 4Gb RAM system and I installed an 8Gb swapfile using the procedure below.

```ruby
#to setup swapfile
sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

#to make permanent (surving reboot)
#sudo nano /etc/fstap
#add line
#/swapfile swap swap defaults 0 0
#ctrl+X then Y to wrote and exit

sudo swapon --show

#to remove swapfile
sudo swapoff -v /swapfile

#remove swapfile line from fstab using sudo nano /etc/fstab

sudo rm /swapfile

```

With the swapfile active it built fine.

I installed a list of packages prior to the install which can be refined a bit as some of the packages installed others on the list.

```ruby
sudo apt-get install -y \
     g++ pkg-config git build-essential qjackctl libjack-jackd2-dev \
     libsndfile1-dev libasound2-dev libavahi-client-dev libicu-dev \
     libreadline6-dev libfftw3-dev libxt-dev libudev-dev \
     libqt5svg5-dev qt5-qmake qt5-default libqt5websockets5-dev qtwebengine5-dev \
     qttools5-dev qttools5-dev-tools qtdeclarative5-dev libqt5webkit5-dev \
     qtpositioning5-dev libqt5sensors5-dev qtmultimedia5-dev libffi-dev \
     libqt5opengl5-dev curl erlang-base ruby ruby-dev cmake libssl-dev \
     libaubio5 supercollider-server sc3-plugins-server

```

after installing these you can proceed to installing and building sonic pi

```ruby
git clone https://github.com/samaaron/sonic-pi.git

cd sonic-pi/app/server/native
mkdir lib
cd lib
ln -s /usr/lib/x86_64-linux-gnu/libaubio.so.5 libaubio-5.so
#this allows for the fact that SP looks for libaubio-5.so not libaubio.so.5
cd ../../../gui/qt
./unix-prebuild.sh
./unix-config.sh
cd build
cmake --build .

```

When that has completed you can set up your sound card for jack using qjackctl  
then `./sonic-pi` from the build folder to run it.

I hope to look at the feasibility of building a binary installer .deb file

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [April 13, 2020, 7:41pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/9 "2020-04-13T19:41:11Z")

</div>

Great job @robin.newman !

I have downloaded the beta version this morning and have now to find a real machine to install on it.

> [@robin.newman](#):
>
> The only problem is that final build of the helpfile system needs a lot of memory, and I had to install a swapfile to get this to build.

Couldn’t come from the fact you use a virtualbox and so less processor power than on a native machine ?

> [@robin.newman](#):
>
> I hope to look at the feasibility of building a binary installer .deb file

it would be great just a click and hop it would be installed !

---

<div class="post-metadata">

**Author:** ![chris.krakou](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@chris.krakou](https://in-thread.sonic-pi.net/u/chris.krakou)\
**Post date:** [April 13, 2020, 9:49pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-deb-package-on-ubuntu-19-10/3635/10 "2020-04-13T21:49:55Z")

</div>

Thanks Robin. That worked like a charm! Hopefully Ubuntu will have less audio latency than Windows (which is why I looked this in the first place)
