Installing scratch offline

Open terminal in Ubuntu by clicking Applications---> Accessories>Terminal and copy paste these commands line by line

wget http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin

wget https://scratch.mit.edu/scratchr2/static/sa/Scratch-436.air

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

sudo apt-get install libgnome-keyring0:i386

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.0

chmod a+x AdobeAIRInstaller.bin

sudo ./AdobeAIRInstaller.bin

sudo rm /usr/lib/libgnome-keyring.so.0

sudo rm /usr/lib/libgnome-keyring.so.0.2.0

Applications->Accessories->Adobe Air Application Installer Open Scratch-436.air and Click OK

Source to install Adobe air