dpkg - How to install Scratch 2 on Ubuntu 16.10. or 17.04 (64bit)? - Ask Ubuntu


i need install adobe air on ubuntu 16.10/17.04 offline scratch 2. air many years unsupported on linux, there several workarounds. 1 worked me ubuntu 16.04 (using air binary installer):

# install i386 necessary 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:i386 # install keyring $ sudo apt-get install libgnome-keyring0:i386 # make keyring visible air $ 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  # download adobe air installer $ wget  http://airdownload.adobe.com/air/lin/download/2.6/adobeairinstaller.bin # run $ sudo chmod +x adobeairinstaller.bin $ sudo ./adobeairinstaller.bin 

but on 16.10/17.4 ends installator error:

adobe air not installed. debian tools creating deb packages (such dpkg-deb or ar) not found on system.

which false error message dpkg-deb , ar both installed:

$ dpkg-deb --version debian 'dpkg-deb' package management program version 1.18.10 (amd64). $ ar --version gnu ar (gnu binutils ubuntu) 2.28 

the adobe air install log file /root/.appdata/adobe/air/logs/install.log

[setup:2506][info] runtime installer begin version 2.6.0.19170 on linux x86 [setup:2506][info] commandline is:  [setup:2506][info] no installed runtime detected [setup:2506][info] relaunching elevation [setup:2506][info] launching subprocess commandline /tmp/air.hp19ku/setup -ei [setup:2525][info] runtime installer begin version 2.6.0.19170 on linux x86 [setup:2525][info] commandline is: -stdio /tmp/air.kwo9tt/channel -ei [setup:2525][info] no installed runtime detected [setup:2525][info] starting silent runtime install. installing runtime version 2.6.0.19170 [setup:2525][info] session detected: gnome [setup:2525][err] error occurred during rpm create operation; beginning rollback: [errorevent type="error" bubbles=false cancelable=false eventphase=2 text="dpkg-query: package 'adobe-certs' not installed , no information available;use dpkg --info (= dpkg-deb --info) examine archive files,;and dpkg --contents (= dpkg-deb --contents) list contents.could not run command : ar" errorid=5031] [setup:2525][info] rollback complete [setup:2525][err] exiting due error: [errorevent type="error" bubbles=false cancelable=false eventphase=2 text="dpkg-query: package 'adobe-certs' not installed , no information available;use dpkg --info (= dpkg-deb --info) examine archive files,;and dpkg --contents (= dpkg-deb --contents) list contents.could not run command : ar" errorid=5031] [setup:2525][err] runtime installer end exit code 7 [setup:2506][err] exiting due error: [errorevent type="error" bubbles=false cancelable=false eventphase=2 text="dpkg-query: package 'adobe-certs' not installed , no information available;use dpkg --info (= dpkg-deb --info) examine archive files,;and dpkg --contents (= dpkg-deb --contents) list contents.could not run command : ar" errorid=5031] [setup:2506][err] runtime installer end exit code 7 

so found way install adobe air via deb package (i didn't know before):

$ wget http://airdownload.adobe.com/air/lin/download/2.6/adobeair.deb $ sudo dpkg -i adobeair.deb 

and voilĂ ! adobe air installed on ubuntu 16.10/17.04.
install scratch 2.

# find latest scratch air file link https://scratch.mit.edu/scratch2download/ $ wget https://scratch.mit.edu/scratchr2/static/sa/scratch-456.0.1.air $ sudo adobe\ air\ application\ installer ./scratch-456.0.1.air  

and again same error:

adobe air not installed. debian tools creating deb packages (such dpkg-deb or ar) not found on system.

install.log

[adobe air application installer:3197][info] application installer begin version 2.6.0.19170 on linux x86 [adobe air application installer:3197][info] commandline is:  [adobe air application installer:3197][info] installed runtime (2.6.0.19170) located @ /opt/adobe air [adobe air application installer:3197][info] unpackaging file:///home/administrator/downloads/scratch-456.0.1.air /tmp/flashtmp.lsckv7 [adobe air application installer:3197][info] application signature verified [adobe air application installer:3197][info] unpackaging/validation complete [adobe air application installer:3197][info] no app located appid 'edu.media.mit.scratch2editor' , pubid '' [adobe air application installer:3197][info] converting unpackaged application native installation package in /tmp/flashtmp.rjswfw [adobe air application installer:3197][err] native installation package creation failed: [errorevent type="error" bubbles=false cancelable=false eventphase=2 text="unhandled exception error: error creating package not run command : ar" errorid=5031] [adobe air application installer:3197][err] application installer end exit code 7 

looks unmaintained adobe air cannot play new dpkg-deb , ar anymore.

any hints offline scratch 2 on ubuntu 16.10/17.04?

i have been playing around couple of hours. first tried trace adobe air application installer , find, what's happening inside.

$ sudo strace -s 500 -t -o air_scratch.txt adobe\ air/versions/1.0/adobe\ air\ application\ installer ~/downloads/scratch-456.0.1.air  

and found line:

read(18, "dpkg-deb: error: treewalk root /tmp/flashtmp.3twnki/build/debian not directory\n", 4096) = 84 

it seems new dpkg cannot handle links previous one. can fixed wrapper script placed e.g. ~/air/bin/dpkg , changing path variable before running adobe air application installer. unfortunately, scratch cannot installed without sudo, , changing path sudo not easy.

then found polish forum of unhappy tax payers, solving similar problems (they need run air app ministry of finance on debian/ubuntu): https://forum.dug.net.pl/viewtopic.php?pid=310108.

and deep inside forum found hints, how run scratch 2 on ubuntu 16.10/17.04 (even without adobeair.deb installation).

this final working solution, tested on clean installation.

# 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:i386  # make keyring visible 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.0  # download adobe air cd ~/downloads wget http://airdownload.adobe.com/air/lin/download/2.6/adobeairsdk.tbz2 $ sudo mkdir /opt/adobe-air-sdk $ sudo tar jxf adobeairsdk.tbz2 -c /opt/adobe-air-sdk  # download air runtime/sdk archlinux wget https://aur.archlinux.org/cgit/aur.git/snapshot/adobe-air.tar.gz $ sudo tar xvf adobe-air.tar.gz -c /opt/adobe-air-sdk $ sudo chmod +x /opt/adobe-air-sdk/adobe-air/adobe-air  # actual scratch file url https://scratch.mit.edu/scratch2download/ $ sudo mkdir /opt/adobe-air-sdk/scratch wget https://scratch.mit.edu/scratchr2/static/sa/scratch-456.0.1.air $ 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.png 

create launcher:

$ 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 , content development tool categories=application;education;development;computerscience; mimetype=application/x-scratch-project _eof_  $ chmod +x /usr/share/applications/scratch2.desktop 

and that's it. first run little bit longer, air unpacking scratch 2 application ~/.appdata/edu.media.mit.scratch2editor folder.

scratch 2 running on ubuntu 17.04


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User