Need to install an Ubuntu package on a system that is not directly connected to the Internet? Well, if you have a HTTP proxy nearby, you can do it as follows:
# cd /etc/apt/apt.conf.d
# vi proxy
Just edit/create the file above and add the line shown (substituting the IP address or hostname of your proxy server) and use your
apt-get command(s) as normal. No need to restart any processed.