Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I actually want to use my mobile to download updates as my internet is not so fast and I have to keep my computer running for a long time to install them. I want to download them in my mobile and then install later by transferring them to computer.

share|improve this question
    
Can't you just connect your computer to the internet on your phone? You could download the files manually on your phone and move them to your apt cache afterwards, but it is going to be a lot of work. –  RudolphEst Mar 1 '13 at 12:29
1  
What @RudolphEst says above, but as you have Android your option is to use your mobile's tethering and use then your mobile as you would use any wireless network - connect to internet via Wireless Network it's going to create. Search for info on tethering on internet or in applications/settings of your mobile. –  catalesia Mar 1 '13 at 16:45
    
I by no mean want to keep my computer "running". Just that is my problem. I run internet on my computer through tethering only and on 2G network. I don't have broadband for now. –  rainlover Mar 2 '13 at 2:31
add comment

2 Answers

For a situation like the one you described, I think that synaptic will be appropriate for your purpose.

(I had the same scenario you described, dial up connection at home, and high speed connection at my office.)


Short Version

Use synaptic to create a shell script in the slow machine. Run the script in the fast machine to download packages. Copy back the downloaded packages to the slow machine. Use synaptic to install the packages.


Long Version

If synaptic is not installed in your machine, you will have to install it.

sudo apt-get update
sudo apt-get install synaptic

I understand that your computer has very slow speed. But I hope that it can cope with the update and around 2500 K download for the above installation.

Start synaptic,

sudo synaptic

You get the opening window of synaptic. Select the files you want to install using the Search function.

enter image description here

Marks the packages you want to select, either left mouse click or right mouse menu-select. Finish marking all the packages you want.

enter image description here

From the File menu generate the download script.

enter image description here

Save the script at some convenient location. Use any file name you like. Let us say your name is mydownloads.sh

enter image description here

If you close synaptic, you can ignore the warning about not installed packages.

The script is a simple shell script, containing a series of wget commands, like the following,

#!/bin/sh
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/c/cadubi/cadubi_1.3-2_all.deb

Copy the script to your mobile, start a terminal, move to the directory where you copied the script and run it there.

sudo ./mydownloads.sh

Please remember that wget needs to be installed in that device. If it is not installed, install

sudo apt-get install wget 

Once finished running the script (it may take some time depending on the Internet speed and volume of download), you will get a number of .deb files in the directory from where you run the script. Copy those files back to your computer and run synaptic again.

sudo synaptic

From the file menu, use the Add downloaded package function to select the directory in your computer where you copied the downloaded files.

enter image description here

Click on Apply. Installation of your downloaded packages should go without any problem.

enter image description here

From time to time, you will need to run

sudo apt-get update

at your slow speed machine, select Mark All Upgrades in synaptic and then go through the process of generating the script, download the files at your high speed machine, and then install the downloaded files to keep the slow machine upgraded.

enter image description here

share|improve this answer
    
And that is exactly the long hard way I warned about in my first comment! Seems like too much effort to me. I'd really rather just find a fast network to use temporarily for updates. –  RudolphEst Mar 1 '13 at 16:58
    
Just by reading your short version, I came to know that you want me to use another computer but this thing is not in my reach. I just have one computer and my mobile. That's all. BTW very much thanks to you for providing me solution with screenshots. But that's not of any use to me for now. But may be in future (as this question will remain saved in my account). And surely this tutorial will benefit many other users. I just wanted to download some files but I should have said that I don't have any fast computer available. –  rainlover Mar 2 '13 at 2:40
    
@spacelover Sorry for the misunderstanding. I was under the impression that you mobile is also capable of working as a small yet fast computer. Still, if you want, you can get complete URL of the files to be downloaded from the generated script. You can use these URLs to download the files in your mobile. Hope your mobile can download files from given URLs and I am not misunderstanding yet again. –  MMA Mar 2 '13 at 6:09
    
Yeah Sure My mobile can download any file. Its Android 2.3 with 1GHz processor and near 120MB RAM. But it don't have a terminal (though there is an emulator in play store) and wget is not in play store. But I can just use URLs. –  rainlover Mar 2 '13 at 7:45
    
@spacelover That is really great. Just use the URLs and download the files. May be you will want to go a step further and use some downloader in your mobile with a facility to extract the URLs from the shell script. I am not sure what to use. I am very underexposed to Android. Or may be you will want to write an awk or a perl script to extract the URLs, may be in the slow machine or in your mobile. The possibilities and methods are always there. –  MMA Mar 2 '13 at 11:50
show 3 more comments

Keryx is one possible solution to your problem.

With Keryx you can decide what to download (updates included) and then download them on another computer.


If Keryx doesn't work as advertised, there is a step by step procedure for using Keryx v0.92.4.1

share|improve this answer
    
I have an android device. Can I run Keryx on Android? OR from where I can manually download updates which Keryx is going to download for me. I think Ubuntu should have separate files which can downloaded via a download manager and then installed. –  rainlover Mar 1 '13 at 14:23
    
@to-do, Keryx is somewhat outdated, with the last release on 2011-01-01. Is that a good choice? –  MMA Mar 1 '13 at 15:12
    
Although I don't know if there is a problem running Keryx on Android, I think one advantage over using Synaptic as described is that you don't need to know beforehand what packages you have to download. –  carnendil Mar 1 '13 at 18:51
    
@carnendil I will have to disagree here. Without knowing the packages, how do you decide which packages to install? Is not it the same for apt-get or software center? Synaptic is completely the same. You decide which software to install, the rest is automatic. Whether you run the shell script or just press Apply. The situation is the same for upgrades as well. Wanted to know more about keryx, found this at [link] (askubuntu.com/questions/127923/…). Do not see much difference from the way synaptic works. –  MMA Mar 2 '13 at 0:38
    
Thanks for all your support. Question closed. –  rainlover Mar 2 '13 at 2:43
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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