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! Select the Daemon method when installing the apt-cacherapt-getinstallapt-cacherapache2 first. After installation,/etc/defaul
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 apache2
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.
Create the/etc/apt. conf file or the/etc/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.