I am trying to install android studio via terminal on Ubuntu 12.04. However, every time the terminal gets to the download, the file download freezes at some point like this
. Sometimes it freezes at 95%. I then have to start all over again. How do I resolve this such that on slight connection drop, the installation doesn't abort/hang. You can clearly see this is the 12th time am trying it from the extension in the download file.
Asked
Active
Viewed 2,976 times
5
antivirtel
- 3,635
- 4
- 30
- 46
mungaih pk
- 151
- 1
- 4
-
4When this happens, I just kill the command using `Ctrl +c` and then rerun it. It restarts from where it ended. – Registered User Dec 17 '14 at 09:04
-
This might be useful: http://askubuntu.com/a/141523/360911 – user23013 Dec 23 '14 at 10:41
-
@RegisteredUser You are right!!! I just do the same. It is a kind of effective way to overcome such issue. – Wolverine Dec 29 '14 at 16:30
2 Answers
1
There is no "resume" feature in apt-get (according to man apt.conf) nor does dl.google.com support ftp (which would allow you to manually resume)
So the best you can do is:
- to manually download the package from another location (work?) and then
cp /mnt/usb /var/cache/apt/archives set the
apt-gettime-out to a higher value bygksudo gedit /etc/apt/apt.conf.d/99apt.confand entering the following lines into it:Acquire::http::Timeout "10";Acquire::ftp::Timeout "10";
If the above doesn't make any sense, drop me a note @Fabby.
Fabby
- 34,341
- 38
- 97
- 191
0
You might download that file manually. Then you might unzip it, and try to install it using INSTALLION guide.
Ps. then you need to get rid of the trash files: find / -name android-studio-ide-135.1611497-linux.zip
antivirtel
- 3,635
- 4
- 30
- 46