If not already installed, install it from here: https://addons.mozilla.org/en-US/firefox/addon/downthemall/ Now open the created file "apt-lists" with Firefox either through the right-click menu when clicking on the file itself, or through "File Open File..." from within Firefox.
Once the content of the file is displayed - it will show a lot of URLs -, right-click in the page and choose "Down Them All! In the upcoming dialog, all files should already be selected for download. Next, choose the directory into which the files shall be downloaded, the directory you may have created therefore before. If you don't have the package "tree" installed at the offline machine, and therefore created the file "apt-install" in the earlier step, handle this file similar to the above step, but this time enter this into the field "Renaming Mask" of Down Them All (the default): .
At the offline machine, enter the directory that contains all the downloaded files in the Terminal.
Updating ubuntu offline
If you want to either offline update your package information or upgrade your packages, there is currently no application that supports either of those targets.
But it is nevertheless possible, although at least technically a bit tricky.
However, by simply following these instructions step-by-step, it is also possible for less experienced users to succeed.
This method, btw., is also particularly interesting if you need to upgrade multiple machines at a time.
So, let's start over and squeeze the hell out of the command line!
For the following instructions, I picked up some of the essential commands from this earlier post: .At the offline machine, create the list for files to download.In this example, I save the file on the desktop, and name it "apt-lists", but you can also use any other location or name, in this case adapt the commands that follow. At the online machine, it doesn't matter what OS is installed, all you need is Firefox and the extension Down Them All.If you downloaded it in the earlier step, run this command to install it: Now we need to convert the names of the downloaded files, that are currently contained in a subdirectory structure, into the proper formats and cumulate them in a single directory.Therefore, we first create a new directory with a name like "lists-update", and then carry on with the actual converting: .If you need to update multiple machines with this method, you obviously only need to copy the produced files contained in the directory "lists-update" to the target system by running the very last command.