I’m brand-new to creating snaps and I’m looking to create a snap for a program called XGate. I use it for email over satellite phones. It has a bunch of old i386 library dependencies which are causing packaging conflicts on my system - a perfect candidate for a snap!
But when I run the “snapcraft” command, get the following error:
$ snapcraft --debug
Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory.
Launching a VM.
launch failed: timed out waiting for instance to respond
An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
I read another post on the same issue and ran:
$multipass launch
and after a minute received
Launched: lustrous-carinal
I’m rather out of my depth with this. Any pointers would be greatly appreciated.
thanks,
Iain
Bear in mind, I’m a seasoned Linux user but completely new to creating snaps and my only exposure so far is trying to follow the Pre-built binary quick start documentation when I’ve run into this issue.
@zyga-snapd - where/how do I specify the architecture?
My system has the necessary libraries installed to make XGate work, but if multipass is starting a VM to build the snap in, how do I ensure these old non-standard libraries are referenced?
Here’s my notes on how I got X-Gate to work on my system (Pop!_OS 18.10 x64):
sudo dpkg --add-architecture i386
sudo apt update
sudo apt-get -f install ppp:i386 libice6:i386 libtiff5:i386 libjpeg62:i386
sudo dpkg -i xgate_i386.deb
# now x11 has an issue in apt, do following to install gtk2-x11
sudo apt --fix-broken install
sudo ln -s /usr/lib/i386-linux-gnu/libtiff.so.5 /usr/lib/i386-linux-gnu/libtiff.so.4
sudo ln -s /usr/lib/i386-linux-gnu/libpng16.so.16 /usr/lib/i386-linux-gnu/libpng12.so.0
#copy library file
cp libpng12.so.0.54.0 /usr/lib/i386-linux-gnu/
sudo ln -s /usr/lib/i386-linux-gnu/libpng12.so.0.54.0 /usr/lib/i386-linux-gnu/libpng12.so.0
What’s the mechanism for me to make sure these libraries are included when I build the snap?
Sorry if this is a stupid question, I’m trying to get my head around this since it’s new to me.
If anyone has a minute to give building this snap a go, feel free! The link to the .deb is in my first post.