Answer the question
In order to leave comments, you need to log in
Installing deb packages on server without internet?
There is a server (Ubuntu 11.04) on the local network that I connect to via SSH. You need to install tightvnc server on this server, update virtualbox and do a couple of other things. The server does not have an internet connection. How do I install all these packages, figure out the dependencies, download and install them in this situation?
Answer the question
In order to leave comments, you need to log in
help.ubuntu.com/community/AptGet/Offline/PrintUris
On a server without Internet, install packages
apt-get --print-uris --yes install ExamplePackage > packageuri.htm
Get a file with links to everything you need to download. On a computer with int download -
wget --input-file packageuri.htm
We get the package and all downloaded dependencies, they must be transferred to the server and put
apt-get -o dir::cache::archives="/media/flash" install ExamplePackage
/media/flash is where you have downloaded packages
And now the easiest way:
1. We raise the ssh tunnel on port 8080
2. We set the variable http_proxy=http://127.0.0.1:8080
3. We use aptitude \ apt-get regularly as much as we like
PS I use this method.
In order to update Virtualbox, you just need to go to the offsite, download the package for your architecture, upload it to the server and install it using dpkg -i. By the way, don't forget to say ExtensionPack for your version of Virtualbox. I think you will also have to do the same for tightvncserver - this package also does not require special dependencies.
Wouldn't mirroring the repository work? After that, you can install / update anything without any questions. (Just for a LAN it is very convenient).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question