Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

dpkg fails while setting up android-studio #12

Open
schildbach opened this issue Jun 12, 2015 · 3 comments
Open

dpkg fails while setting up android-studio #12

schildbach opened this issue Jun 12, 2015 · 3 comments

Comments

@schildbach
Copy link

This is on Ubunu 15.04, 64 bit:

$ sudo apt-get install android-studio

[...]

Setting up android-studio (4.8.3-ubuntu0) ...
unzip:  cannot find or open /opt/android-studio-ide-*, /opt/android-studio-ide-*.zip or /opt/android-studio-ide-*.ZIP.

No zipfiles found.
rm: cannot remove ‘/opt/android-studio-ide-*’: No such file or directory
find: `/opt/android-studio/': No such file or directory
find: `/opt/android-studio/': No such file or directory
dpkg: error processing package android-studio (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 android-studio
@paolorotolo
Copy link
Owner

It seems that /opt/android-studio/ doesn't exists...
Try to run:

sudo mkdir /opt/android-studio/

This should fix the issue.

@audacioustux
Copy link

sudo apt-get purge android-studio; sudo apt-get install android studio.... this should fix your problem...

@AnthonyAstige
Copy link

AnthonyAstige commented May 9, 2016

I got a similar error when installing on a brand new Ubuntu 14.04 Digital Ocean server. To work around the error I ran similar to what @paolorotolo said: sudo /opt

This has allowed sudo apt-get install android-studio to finish without error (though I haven't yet confirmed it runs).

Seems like some distros don't come with a /opt folder, and the post-install scripts in the ppa expects the folder to exists.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants