[ubuntu] Unable to install Android Studio on my Ubuntu pc

ساخت وبلاگ

i followed this ppa and getting these errors while installing Android Studio

user@walter-white:~$ sudo /opt/android-studio
[sudo] password for user:
sudo: /opt/android-studio: command not found
user@walter-white:~$ clear

user@walter-white:~$ sudo add-apt-repository ppaaolorotolo/android-studio
Automatic builds for Android Studio by Google packaged for Ubuntu.
More info: https://launchpad.net/~paolorotolo/+...android-studio
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmptfcrwrqv/secring.gpg' created
gpg: keyring `/tmp/tmptfcrwrqv/pubring.gpg' created
gpg: requesting key 7B9B74AA from hkp server keyserver.ubuntu.com
gpg: /tmp/tmptfcrwrqv/trustdb.gpg: trustdb created
gpg: key 7B9B74AA: public key "Launchpad PPA for Paolo Rotolo" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
user@walter-white:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://ppa.launchpad.net/notepadqq-t...tepadqq/ubuntu xenial InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:5 http://dl.google.com/linux/chrome/deb stable Release
Hit:6 http://ppa.launchpad.net/paolorotolo...-studio/ubuntu xenial InRelease
Get:7 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:9 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:10 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [378 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [373 kB]
Fetched 941 kB in 14s (63.9 kB/s)
Reading package lists... Done
user@walter-white:~$ sudo apt-get install android-studio
Reading package lists... Done
Building dependency tree
Reading state information... Done
android-studio is already the newest version (5.2.1-ubuntu0).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
android-studio : Depends: java-sdk or
oracle-java7-installer but it is not installable or
oracle-java8-installer but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@walter-white:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
user@walter-white:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
openjdk-9-jdk
Suggested packages:
openjdk-9-demo openjdk-9-source visualvm
The following NEW packages will be installed:
openjdk-9-jdk
0 upgraded, 1 newly installed, 0 to remove and 104 not upgraded.
31 not fully installed or removed.
Need to get 0 B/16.6 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 178140 files and directories currently installed.)
Preparing to unpack .../openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb ...
Unpacking openjdk-9-jdk:amd64 (9~b114-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/jvm/java-9-openjdk-amd64/include/linux/jawt_md.h', which is also in package openjdk-9-jdk-headless:amd64 9~b114-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

feed all...
ما را در سایت feed all دنبال می کنید

برچسب : ubuntu unable to locate package,ubuntu unable to resolve host,ubuntu unable to lock the administration directory,ubuntu unable to connect to upstart,ubuntu unable to enumerate usb device,ubuntu unable to mount exfat,ubuntu unable to resolve hostname,ubuntu unable to fetch some archives,ubuntu unable to locate package docker,engine,ubuntu unable to mount, نویسنده : استخدام کار feedoll بازدید : 481 تاريخ : شنبه 6 شهريور 1395 ساعت: 21:14