I'm trying to figure out how I can install the GUI on my Ubuntu server without an actual internet connection to do the downloading of the software to the server. I have a portable hotspot for internet connections used with my laptop(which also runs ubuntu). I'm just running into a brick wall in trying to figure this out. Any suggestions will be greatly appreciated
-
You can use Keryx. See this post: askubuntu.com/questions/974/…. Or you can use an alternate CD as described here– RonMay 30, 2015 at 5:01
-
@Ron keryx is old project and stopped, Also there is no alternate CD for ubuntu 15.04.– MaythuxMay 30, 2015 at 6:15
-
@Paul Wesselkamper: You can not share Internet between server and laptop?– kyodakeMay 30, 2015 at 17:20
-
A possibly-helpful Ubuntu help page: help.ubuntu.com/community/AptGet/Offline/Repository– user533208May 7, 2016 at 16:01
2 Answers
Install the Synaptic package manager in your laptop which also run same Ubuntu version.
Open Synaptic and look for the packages you want to install.
Mark the packages you want to install for installation: Right-click --- Mark to install.
Once marked, go to: File --- Generate package download script.
You chose a path where you want to save the script. In that same route downloaded packages are stored.
Close Synaptic. Go to the path you chose in the previous step and run the script for downloading double click
.
It will take a while until you download all the packages and dependencies.
Copy the files to the computer without Internet connection and install them.
sudo dpkg -i *.deb
You have many choices to do that:
- create an offline repository
- Simple trick but needs to make another installion of same version of your server.
So what to do?
create a VM or physical machine as you like contain the same version of your Ubuntu server
This VM/physical must have Internet connection and must be virgin same as the offline version
Clean the archives(not really needed but just to be sure)
sudo apt-get clean
Now Install the GUI on it
sudo apt-get install ubuntu-desktop
Now after the installation complete, go to the directory
/var/cache/apt/archives
Copy the
*.deb
from this directory and burn it to CD or just use some USB or any other storage deviceNow copy all
*.deb
to the offline machineNow install all these packages using the command:
sudo dpkg -i /path-to-debs/*.deb
Note: you may face some errors in output, just run the same command again and everything will go smoothly