It is recommended to setup this cron job in the night daily. E: Failed to fetch \įocal/restricted/cnf/Commands-amd64 404 Not Found įocal-updates/main/cnf/Commands-amd64 404 Not Found įocal-security/main/cnf/Commands-amd64 404 Not Found Scheduling Automatic Repositories Sync UpĬonfigure a cron job to automatically update our local apt repositories. Note : If we don’t sync cnf directory then on client machines we will get following errors, so to resolve these errors we have to create and execute above script. Copy this folder to mirror folder, $ sudo cp -av /var/www/html/ubuntu/mirror/ This script will create a folder with name ‘ ’ in the present working directory. So to avoid manually downloading CNF directory, create a shell script with below contents, $ vi cnf.shįor p in "$"Įxecute the script to download CNF directory and its files. In Ubuntu 20.04 LTS, apt-mirror does sync CNF directory and its files, so we have to manually download and copy the folder and its files. To monitor the mirroring progress use below, $ tail nohup.out Execute below: $ sudo apt-mirrorĪbove command can also be started in the background using below nohup command, $ nohup sudo apt-mirror
0 Comments
Leave a Reply. |