How can I install Adobe Air on 64 bit Ubuntu 13.10 [duplicate]

I am a heavy user of certain applications that are built on AIR.

It appears that AIR has discontinued support for Linux. Even the older versions in the Adobe AIR Archives seem to support only 32 bit Linux distributions and I am on 64 bit currently.

Is there even a slight possibility that I could run AIR in these conditions? If so, can you please tell me where can I get a detailed step by step installation for this?


  1. Download Latest Version Air 2.6.0 For Linux to your Desktop:

    • http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin - 15.4Mb or find runtime files in Archived Adobe AIR SDK versions

      1. Ctrl+Alt+T to open terminal

      2. sudo apt-get install ia32-libs - (32bit rubbish if you want to run this in x64 Ubuntu; if you have trouble, see "Depends: ia32-libs-multiarch but it is not installable" - Solution)

      3. cd Desktop (change dir. to Desktop dir.)

      4. chmod +x AdobeAIRInstaller.bin (change mode - execute permission yes)

      5. ./AdobeAIRInstaller.bin (after you accept the Adobe Air license, it will prompt you for your password; it needs root access in order to install)

Maybe you'll get an error after the last command?

Sorry, an error has occurred. Adobe AIR could not be installed. Install either Gnome Keyring or KDE KWallet before installing Adobe AIR.

This can be fixed:

  • In a terminal (default shortcut: Ctrl+Alt+T), type:

    locate libgnome-keyring.so
    
  • This is my result (yours might be different):

    /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0
    /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0
    
  • As suggested below by @jmendeth, the easiest way to tell the installer where to find these files is to use LD_LIBRARY_PATH:

    • For 32-bit Ubuntu (tested on 12.04):

      LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu ./AdobeAIRInstaller.bin
      
    • For 64-bit Ubuntu, the command line would probably be:

      LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu ./AdobeAIRInstaller.bin
      

If the LD_LIBRARY_PATH trick doesn't work, you can try this:

  • Create a symbolic link to your location strings that you found with the previous commands:

    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
    
  • Use following commands for 32-bit systems:

    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
    
  • Then repeat step 4 & 6 (skip 5, as the permission to execute the file hasn't changed).

  • Remove symbolic links after installation of Adobe AIR 2.6.0:

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

Reference:

  • Archived Adobe AIR SDK versions - https://helpx.adobe.com/air/kb/archived-air-sdk-version.html
  • Install 32-bit Adobe AIR for desktop Linux - https://helpx.adobe.com/air/kb/install-32-bit-air-linux.html
  • Install Adobe AIR 2 for 64-bit Linux systems - https://helpx.adobe.com/air/kb/install-air-2-64-bit.html

  • www.clarifylinux.org/2012/04/ubuntu-1204-tweak-and-hack-round-up.html


Ubuntu 13.10, 14.04, 15.04 and 15.10 (64 bit)

  1. Install i386 libraries, that are required for successful installation and running of Adobe Air and air applications.

    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
    
  2. Install libgnome-keyring0:i386 package.

    sudo apt-get install libgnome-keyring0:i386
    
  3. Create symlinks to gnome-keyring so Adobe Air could see it.

    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. Download Adobe Air installer from here.

  5. Give execute permission and then run that .bin file.

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

Source

Note for Ubuntu 16.04 (64 bit)

For Ubuntu 16.04 and greater, install the package libnss-mdns:i386 instead of the package lib32nss-mdns. This will solve the problem of "Package not found error" related to that package.