The name of the source server may not be accurate, which means creating your own private server on the Intranet. As long as Ubuntu downloads and installs software from the private server, the private server will cache the server, the next Ubuntu request is directly obtained from the cache.
Recently, the Ubuntu source server is too slow, and the network in Beijing is also bad. Forced!
First install apt-cacher
apt-get install apt-cacher
Select the daemon method during installation.
After installation, the content of the/etc/default/apt-cacher file should be as follows:
AUTOSTART=1
Therefore, the service should have been started.
Modify a line of configuration in the/etc/apt-cacher/apt-cacher.conf file to allow access from any client:
allowed_hosts = *
Restart service
Service apt-cacher restart
Then open the webpage: http: // your_ip: 3142/apt-cacher
When the page is displayed, the server is started normally.
Add a line to the/etc/hosts file to help find the dl.google.com on which chrome depends.
203.208.45.206 dl.google.com
Create the/etc/APT/apt. conf file or the/etc/APT/apt. conf. d/01proxy file on the Ubuntu server of the client.
The content is as follows:
Acquire::http::Proxy "http://your_server:3142";
Run apt-Get update to check whether the Update works. You can view the logs of APT-cacher and the log files under the directory on the server.
/Var/log/apt-cacher