Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am installing ubuntu 12.04 onto a HP 1U rack server that is in a lab with no internet connection.

I need to install PHP, Nginx and other packages so that I can run my web app on it that will serve internal clients.

I tried to run apt-offline set /media/usb/updates.sig but the server prompts me to install apt-offline instead.

What should I do to install the packages I want and keep the server up to date if it is not connected to the internet?

share|improve this question
up vote 2 down vote accepted

You can download apt-offline from the Ubuntu Packages Download Page for apt-offline which is the right webpage to visit to download apt-offline for Ubuntu 12.04. For other versions of Ubuntu just replace precise in the URL from the link in the previous sentence with the name of your version of Ubuntu. You can download apt-offline from the pool/universe/a/apt-offline/ subdirectory at any of the mirrors from the list of mirrors on the Ubuntu Packages Download Page for apt-offline.

The apt-offline package is a .deb file, so to install it just double-click on it, and the Ubuntu Software Center will open, and ask you to authenticate with your password in order to install it.

You can also use the navigation bar at the top of the Ubuntu Packages Download Page for apt-offline to search for other packages that you want to download manually.

share|improve this answer

Use sudo dpkg -i apt-offilne_package_file.deb to install it on server.

You can copy it with scp sourcefile username@serverip:/home/userdir/, or from windows with winscp

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.