How to install scratch 2 in ubuntu 18.04
Sebastian Wright
Yesterday i was trying to install scratch on my ubuntu desktop and followed this tutorial How to install Scratch 2 on Ubuntu 16.10. or 17.04 (64bit)?
And everything was just successfully installed but when i run scratch it shows me only heading and white screen. It was not starting. Can someone give me updated instructions on this. Thanks
4 Answers
... and this works for me on ubuntu 18.04 (64bit)
install necesary i386 libraries
$ sudo apt-get install libgtk2.0-0:i386 libstdc++6:i386 libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libqt4-qt3support:i386 libgnome-keyring0:i386 libnss-mdns:i386 libnss3:i386make keyring visible for Adobe Air
$ sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0 $ sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0Download Adobe Air
$ cd ~/Downloads $ wget $ sudo mkdir /opt/adobe-air-sdk $ sudo tar jxf AdobeAIRSDK.tbz2 -C /opt/adobe-air-sdkDownload Air runtime/SDK from Archlinux
$ wget $ sudo tar xvf adobe-air.tar.gz -C /opt/adobe-air-sdk $ sudo chmod +x /opt/adobe-air-sdk/adobe-air/adobe-airGet actual scratch file URL from
$ sudo mkdir /opt/adobe-air-sdk/scratch $ wget $ sudo cp Scratch-456.0.1.air /opt/adobe-air-sdk/scratch/ $ cp Scratch-456.0.1.air /tmp/ $ cd /tmp/ $ unzip /tmp/Scratch-456.0.1.air $ sudo cp /tmp/icons/AppIcon128.png /opt/adobe-air-sdk/scratch/scratch.pngCreate Desktop Shortcut
$ sudo cat << _EOF_ > /usr/share/applications/Scratch2.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Exec=/opt/adobe-air-sdk/adobe-air/adobe-air /opt/adobe-air-sdk/scratch/Scratch-456.0.1.air Icon=/opt/adobe-air-sdk/scratch/scratch.png Terminal=false Name=Scratch 2 Comment=Programming system and content development tool Categories=Application;Education;Development;ComputerScience; MimeType=application/x-scratch-project _EOF_ $ sudo chmod +x /usr/share/applications/Scratch2.desktop
I found an Ubuntu educational fork for Scratch 3 beta version. You just need to change language from french to english =)
For scratch 1.4 just type:
sudo apt-get install scratchI'm not in informatics, but I think in the 1.4 version a library like Qt4 is missing for the fonts.
For Scratch 2, I didn't manage to install Adobe Air 20, it bugs too much on Wine install :/
Please don't over spam this french academy, as I don't believe at all their Bandwith to handle World's download neither a town's download. Just add the download to a normal download website for Ubuntu packages.
More over there must be an official link outside of the one I proposed as it's official Scratch 3 official beta version online works with Linux. Must be somewhere in GitHub or something?
1Install adobe air as state on
wget -O adobe-air_amd64.deb
sudo dpkg -i adobe-air_amd64.deb
sudo apt install -fInstall pixbuf stuff
sudo apt-get install gtk2-engines-pixbuf:i386Install scratch (use 455, newer versions need newer AIR)
wget Start
/opt/adobe-air-sdk/adobe-air/adobe-air ./Scratch-455.air See also How to install Scratch 2 on Ubuntu 16.10. or 17.04 (64bit)?
To bring Jerare's comment (consider posting an answer next time; you may get credit for it) further into the light, Scratux is a Linux build of the latest Scratch Desktop (currently 3.10.2) and is available on the Ubuntu snap store. I had to go through those Adobe Air installation steps on a previous Ubuntu installation; this is much simpler!