Ways to update Ubuntu (debian-based distros) offline
Solution 1
It depends on your distribution. For debian-based distributions (such as Ubuntu) you can use the command apt-offline
http://www.researchut.com/tools/apt-offline
This guide provides another methods for updating ubuntu offline:
https://help.ubuntu.com/community/Synaptic/Offline
Solution 2
A simple but tiresome solution would be to download the packages you need to the windows machine and then transfer them with some storage-media (usb thumbdrive, cd or something) to the linux machine.
Solution 3
On the Windows machine,
- download a preconfigured routing LiveCD
- create a cd from the ISO iamge
- reboot the windows machine using that CD
- tell your offline Linux it is now online via the rebooted Windows machine.
Related videos on Youtube
phix
Updated on September 18, 2022Comments
-
phix over 1 year
What is the easiest way to update/upgrade an offline Ubuntu machine with the help of a Windows machine that has internet access?
This question also applies to installing new packages offline and not only updates/upgrades.
The Linux system shall remain completely cut off from the Windows machine, meaning there should be no ethernet connection or the likes between the two computers.
Update:
Please have patience, since I haven't updated this since two weeks.
There are some complications getting apt-offline to work properly on Lubuntu and all other methods seem to be too old and deprecated:AptOff - last update 2006
AptMedium - last update 2007
Keryx - last update 2011, looks like this project was discontinuedI hope I will be able to somehow update the offline machine, finally.
While I was still not able to update/upgrade the offline system due to authentication errors, I accepted an answer, because it's taking too long.
-
IBr over 10 yearsPlease explain why linux machine must have no internet, while it is connected to machine which has? Does the solution where windows machine shares internet connection with Linux machine is acceptable for you? Also what distribution you are using, answers changes from one to another.
-
-
phix over 10 yearsCould you give an example, please? How should the directory structure look like and where should I transfer the packages?
-
phix over 10 yearsThese methods sound promising. I hope they are easy to accomplish.
-
Thomas Sigurdsen over 10 yearsDepends on your distro I guess. Most package managers have a way of installing local packages. I think Debian and derivatives can use the dpkg -i FILENAME.deb command. You could also install directly from sourcecode, but this is often considered harder.
-
user1993 over 6 yearsBut I don't have
apt-offline
in my non-online Ubuntu computer! I ran the commandsudo apt-offline set apt-offline.sig
and it gave me the error -sudo apt-offline: command not found
!