How to Use APT with Proxy on Ubuntu and Debian

Using a proxy server as an internet access intermediary is a common business scenario. This guide will show you how to set proxy for APT package manager so that you may be able to install and update packages from remote repos.