Set logrotate to specific time

If you only want to make logrotate run at midnight, move /etc/cron.daily/logrotate to some other directory, and add the line at the end of /etc/crontab.

0 0 * * * /new/path/to/logrotate
 

Apt error Could not get lock /var/lib/apt/lists/lock

  sudo fuser -vik -TERM /var/lib/apt/lists/lock  

Mais vistos