From terminal unable to locate package error. I have already added repository.
-
Which repository? Have you tried Ubuntu Make?– N0rbertDec 9, 2017 at 14:41
-
sudo apt-add-repository ppa:paolorotolo/android-studio– Fahad KhatriDec 9, 2017 at 14:42
-
You cannot use that repo because it's only for Ubuntu 16.10 and older.– user692175Dec 9, 2017 at 14:43
-
what should i do now?– Fahad KhatriDec 9, 2017 at 14:44
-
also downloading the android studio and executing the .sh file it stucks at downloading– Fahad KhatriDec 9, 2017 at 14:45
2 Answers
Go to Download Android Studio and download the zip file, extract the 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
When you launch android studio for the first time, it will download some components.
-
1its constant showing dl.google.com/android/repository/android_m2repository_r47.zip in downloading components Dec 9, 2017 at 15:52
-
-
-
1still showing me dl.google.com/android/repository/android_m2repository_r47.zip even after moving it to /opt No progress in download Dec 9, 2017 at 15:59
-
1
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:lyzardking/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.
-
-
Just execute commands from my answer - the remove only PPA which you mentioned.– N0rbertDec 9, 2017 at 14:52
-
2its showing me this error now ERROR: The checksum of dl.google.com/dl/android/studio/ide-zips/3.0.1.0/… doesn't match. Corrupted download? Aborting. Dec 9, 2017 at 15:16
-