Programming Explorer
  • Blog
  • About
  • Contact

Installing Scratch 2 on Ubuntu Linux 14.04 64 bit

7/2/2015

42 Comments

 
Picture
Figure 1: A fresh Scratch 2 install on Ubuntu 14.04 64-bit

While Mac and Windows have relatively simple Scratch installs, the install via Ubuntu is more complicated, particularly if it is a 64 bit system.  While the older version of Scratch is available via the Ubuntu package manager, Scratch 2 is not.  Since Scratch 2 has some important new features, such as code blocks, you may want to install it instead, or in addition to, the older Scratch version.  Here is a step-by-step instruction guide to install Scratch 2 on an Ubuntu Linux 64 bit system:

  1. Download the Adobe Air and Scratch files from:

    https://scratch.mit.edu/scratch2download/

  2. The following libraries are needed:

    sudo apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386

  3. Now you have to create a symbolic link to your gnome keyring:

    sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0

    sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0

  4. cd into the directory with the AdobeAIRInstaller.bin

  5. sudo ./AdobeAIRInstaller.bin

  6. Now install Scratch 2:

    sudo "Adobe AIR Application Installer" /path/to/scratch2/installer/Scratch-437.air

    NOTE: The information for installing Adobe Air on Ubuntu 14.04 64-bit given above was found in this Ask Ubuntu post.




42 Comments
Bill
8/21/2015 02:09:48 am

Thank you very much for this tutorial. It worked perfectly for me on my Ubuntu 14.04 installation.

Reply
programmingexplorer
8/21/2015 10:15:32 am

Glad you found it helpful!

Reply
Gérald
10/12/2015 11:51:38 am

You saved my life

Reply
Anindo
10/27/2015 04:15:03 pm

Thanks a lot for the tips.

Reply
martin link
11/26/2015 12:07:00 pm

thank you for the instructions

Reply
Arnaud
1/7/2016 10:58:37 pm

Maybe you also need to give execution permission to the Adobe file before execution :

chmod u+x AdobeAIRInstaller.bin
then
sudo ./AdobeAIRInstaller.bin

Reply
JB Park link
7/26/2016 06:51:38 am

Yes, that is what I was about to say.

Reply
Roy
2/7/2017 06:46:04 pm

Nice one, thanks!

Reply
xardas55
1/21/2016 12:56:00 am

Отличная инструкция. Спасибо.

Reply
sfgsdgsd link
4/27/2017 08:39:57 am

dgdsgsdhkshkosdfisdihdsoigdskghjdkogjkodgjidghuhghgiofgwegewgfEEGEGE

Reply
IstanbulBoy
11/3/2017 01:13:20 pm

и тебе спасибо. есть хорошие дни

Reply
pedro link
3/4/2016 11:54:24 am

Reply
Naman
4/21/2016 11:07:33 pm

It worked like charm. Thanks a lot.

Reply
Imane El
5/11/2016 04:39:16 pm

Thank you sir, worked like charm.

Reply
Uriel Aceves
5/20/2016 02:15:42 pm

Great, I just had to make executable the file for the installation of Adobe AIR I used

sudo chmod 777 <filename>

After that it worked great.

Reply
Jim
5/22/2016 02:37:13 am

Unfortunately I can't get this to work. I'm on 16.04 and I get an error:

"E: Unable to locate package lib32nss-mdns"

when trying to install all those libraries.

Anyone know a work around / solution please?

Thanks!

Reply
philip
10/23/2016 10:28:47 am

i am having the same problem

Reply
Helper
12/24/2016 07:04:30 pm

i used libnss-mdns instead.

Jim
5/22/2016 03:20:50 am

I installed all the other libraries, plus this one:

$ sudo apt-get install libnss-mdns:i386
(https://www.codeweavers.com/support/wiki/Diag/MissingLibNss_mdns)

I managed to install Adobe Air okay, but now get an error when trying to install Scratch:

"Sorry, an error occurred.
The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author."

I've tried redownloading the .air installer but get the same error.

Reply
Jim
5/22/2016 05:08:23 am

As per the Scratch installation error:

I've found that simply double clicking on the Scratch.air installer once Adobe Air is installed successfully installs Scratch.

So *don't* do it through the terminal (sudo "Adobe AIR Application Installer" /path/to/scratch2/installer/Scratch-437.air
).

Reply
Oscar
3/30/2017 04:15:38 am

Excellent and most simple!! Thanks

Reply
kylian link
6/5/2016 10:53:15 pm

Reply
Olivier
6/29/2016 01:55:24 am

Same comment as Arnaud and Uriel regarding x access

Jim comment has been usefull too (double clicking)

... but I'm still having a problem as I'm asked to provide root password in a "su" command line. As I'm running ubuntu, I would need the command line to start with sudo (not su)

Any tip on how to process further ?

Reply
Olivier
6/29/2016 02:18:29 am

... and that's ok. To solve the su issue due to xdg-su :
- run "sudo /usr/bin/Adobe\ AIR\ Application\ Installer"
- and then open the scratch.air downloaded program

Nice to have scratch 2.0 running on my Ubuntu 15.10

Reply
Jonas Dias
9/18/2016 06:44:43 pm

thanks!!!! i have a lot problems to install scratch after install adobe
and this work

Reply
Olivier
7/5/2016 02:10:41 am

... and that's ok. To solve the su issue due to xdg-su :
- run "sudo /usr/bin/Adobe\ AIR\ Application\ Installer"
- and then open the scratch.air downloaded program

Nice to have scratch 2.0 running on my Ubuntu 15.10

Reply
bowpei
5/4/2017 07:20:44 pm

thanks so much!

Reply
jeje
11/25/2016 05:09:43 am

Works fine on Linux Mint 17.3 ! Thanks SOOOO much for this!

Note: Only double clicked the Scratch.air file instead of going the sudo route

Reply
mike
12/7/2016 12:25:12 pm

Thanks all for these instructions! Thought I would put everything together for others with Ubuntu 16.04 like me

I found that lib32nss-mdns is not available, so removing that and adding libnss-mdns:i386 (as suggested by Jim) gives:


sudo apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libnss-mdns:i386

create symlinks as original instructions

then (note, starting the AIR installer seemed to take a while)

chmod +x AdobeAIRInstaller.bin
sudo ./AdobeAIRInstaller.bin

start the installer

sudo /usr/bin/Adobe\ AIR\ Application\ Installer
browse for Scratch-451.air

The installer even adds the launcher to Applications as "Scratch 2", and then it can be pinned to the side bar so my kids can start it easily from their desktops. Each user has to agree to the Adobe license when they start for the first time.

Reply
Stephan
1/9/2017 10:30:24 am

Reply
Ainichou link
1/18/2017 08:18:17 am

I think that ....Thing helps me so much and I thank everyone who leaved their reply please *Need someone to talk with* :*

Reply
JC
1/31/2017 05:04:26 am

Mike,
Many thanks for the updated instructions - works perfectly for me using Mint 18 (Sarah) based on Ubuntu 16.04 (Xenial Xerus 64 bit).

Reply
Doyousketch2 link
2/10/2017 07:51:50 pm

This link has the Adobe Air installer packaged as a .deb file.
http://update.devolo.com/linux/apt/pool/main/a/adobeair

Just grab the i386 version if your pc is 32 bit.
or amd64 if you are on a 64 bit machine.

sudo dpkg -i adobeair*.deb

Reply
AB
3/3/2017 05:34:38 am

Thanks for the help both by the blog and comments, I want to add the installation asked for su password for that you should do this
sudo su
<enter your sudo password>
then you will be open in su profile, type
passwd
set new unix password and put that in the dialog box it's good if you do it defore starting scratch 2.0 installation

Reply
game
10/11/2017 02:12:35 am

very good

Reply
OUSSAMAMARZOUKI link
10/20/2017 12:33:14 pm

SCRACH.COM

Reply
GIT
11/20/2017 10:24:32 am

Nice guide. Thanks to you, it works on my Ubuntu 16.04 (AMD64)

Reply
memomeo
3/5/2018 01:48:48 pm

There seems to be a bug with the newest Scratch-460.air Version. After Installation scratch starts with a blank screen.
On the Scratch web page the older Version is not easy visable but I found it here: https://download.scratch.mit.edu/scratch2download/sa/Scratch-451.air
that one works fine still!

Reply
Carl
6/6/2018 02:42:18 pm

@memomeo,
Thanks for the insight on the older version download. The install worked well on Linux Mint 18.3 MATE. I briefly tested it and was able to make the sprite move across the stage. BTW, how were you able to learn of the older versions available for download. I get access denied when browsing to the parent directory of the current version download directory.

Reply
Carl
6/6/2018 02:49:56 pm

Thanks for this instruction. I was able to install successfully on Linux Mint 18.3 MATE 64-bit. Installing the 32-bit libraries (with libnss-mdns substituted for lib32nss-mdns) triggered an avalanche of additional package installations (89 in total), but hey, it worked. I also had to use the earlier Scratch-451.air download as pointed out by @memomeo. Again, thanks for the instruction. Tux rules!

Reply
vinu
12/4/2020 09:12:39 pm

super

Reply
parameshparamu link
1/20/2021 01:46:18 am

Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-level facilities than either of them.

https://www.acte.in/java-training-in-hyderabad

Reply



Leave a Reply.

    Programming Explorer

    Computers and programming

    Archives

    July 2015

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.