From terminal unable to locate package error. I have already added repository.

  • Which repository? Have you tried Ubuntu Make? – N0rbert Dec 9 '17 at 14:41
  • sudo apt-add-repository ppa:paolorotolo/android-studio – Fahad Khatri Dec 9 '17 at 14:42
  • You cannot use that repo because it's only for Ubuntu 16.10 and older. – user692175 Dec 9 '17 at 14:43
  • what should i do now? – Fahad Khatri Dec 9 '17 at 14:44
  • also downloading the android studio and executing the .sh file it stucks at downloading – Fahad Khatri Dec 9 '17 at 14:45

Go to Download Android Studio and download the zip file, extract the files.

extract files

Then run the following commands in your terminal

$ cd android-studio-ide-171.4443003-linux

Move the android-studio folder to /opt folder.

$ sudo move android-studio /opt

If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

Then cd into bin

cd ~/opt/android-studio/bin
./studio.sh # this will launch android studio

After launching android studio create a desktop entry by clicking Tool > Create Desktop Entry

enter image description here

When you launch android studio for the first time, it will download some components. enter image description here

| improve this answer | |

Your repository ppa:paolorotolo/android-studio does not contain packages for Ubuntu 17.10 Artful.

Remove it with sudo ppa-purge ppa:paolorotolo/android-studio and/or sudo apt-add-repository -r ppa:paolorotolo/android-studio

then add other PPA (Ubuntu Make) and install package from it

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
umake android

the last command will install Android Studio to your home folder with corresponding shortcuts.

| improve this answer | |
  • should i remove all the PPA packages? I am new to ubuntu – Fahad Khatri Dec 9 '17 at 14:49
  • Just execute commands from my answer - the remove only PPA which you mentioned. – N0rbert Dec 9 '17 at 14:52
  • 2
    its showing me this error now ERROR: The checksum of dl.google.com/dl/android/studio/ide-zips/… doesn't match. Corrupted download? Aborting. – Fahad Khatri Dec 9 '17 at 15:16
  • I got the same Corrupted download? Aborting error. – karel Dec 9 '17 at 16:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.