What is the best way to install packages in Ubuntu offline?
The version is Hardy and the computer has no internet connection. When trying to install packages there is always a dependent that is missing.
Observing members:
0
Composing members:
0
6 Answers
Bad news: you’d have to download all its dependencies in advance as well. While the packages.ubuntu .com site does tell you which packages it dependencies on, this can get quite tiresome if those packages in turn have dependencies on other packages. I’ve been there, and it wasn’t fun :(
There might very well be a site that bundles all this into one big download, and if not, there should be :P
You could also check whether the application you’re trying to install offers a binary file (i.e. you just extract it, then double-click to run it), but that can get quite messy.
Which applications are you trying to install? I might see if I can install them, check which dependencies it installs and bundle them in an archive.
That’s what I kept running into. I’d try to install one, then it needed another. I did try going through the entire list of dependencies and the dependencies dependencies but I finally gave up and have been looking for another option.
The ones on my list were:
editra
ejecter
gimp *
gpicview
gscrot
kino
lives
ogmrip
wine
I’m not sure that all of them are even necessary or if they even work well enough to keep. I originally thought I’d install them, check them out and remove the ones I didn’t like. And I actually have the version of gimp that came preloaded.
These just looked like useful programs to get started in addition to what was preloaded. I also need the codecs for audio and video files. But I’m more worried about getting applications problem sorted out at the moment.
Thank you for the prompt answer.
Hi, sorry to take so long this time to anwer. I found this post through Google, it contains a script that you can edit for each package. If you run that, it will generate a list of dependencies with links to the download page. If you can send that to me (or perhaps do it yourself on an online machine – you could use a mass downloader like DownThemAll to download all the links at once) then I’ll download all the stuff for you and compress it into an archive for you to install.
Great, thank you very much for this. I actually can get them on my laptop and then copy them over. I just kept running into blank requires blank_1, then blank_1 requires blank_2 and so on.
After I get all the files I need, what particular archival method do I need to use?
When you have them all in one folder, you’ll have to open a terminal window in that folder (unfortunately you can’t “bulk install” packages graphically yet) – if you open a Terminal window (under Accessories if I’m right) you enter “cd <path_to_folder>”, where you replace <path_to_folder> with the location of the folder you stored the files in. Then you enter the command “sudo dpkg -i ./*.deb” and they should be installed :)
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.