gee*_*mc4 15 apt cron amazon-ec2
最近我每天都收到来自服务器的邮件,
主题
Cron <root@host> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Run Code Online (Sandbox Code Playgroud)
身体
/etc/cron.daily/apt:
DB Update failed, database locked
Run Code Online (Sandbox Code Playgroud)
如果我只是运行该/etc/cron.daily/apt部分,它只是停留在那里而没有输出,我尝试运行tail -f /var/log/apt/*.log /var/log/syslog &然后运行/etc/cron.daily/apt但也没有输出
哪个数据库被锁定,被什么锁定,我能够apt-get update成功。
昨天做了一些更新,不得不重新启动,所以微软修复在这里不起作用(这在更新之前一直在发生,所以不相关)
我还能看什么?
这是一个亚马逊实例,因为它很重要
小智 8
真正为我解决这个问题的是卸载 apt-xapian-index 包。在我的情况下,其他建议的修复程序都没有做任何事情。
您可以从我的小博文中阅读更多详细信息。
小智 4
长话短说,换RandomSleep=1800一些更令人愉快的事情。我选择了RandomSleep=5
参考: https: //lists.ubuntu.com/archives/ubuntu-users/2009-February/175474.html & http://ubuntuforums.org/showthread.php?t=1071892#post_6747612
当您同时运行多个 APT/DPKG 实例时,就会发生这种情况。如果您在 GUI 模式下运行像 aptitude 这样阻止 apt-get 的东西,并sudo /etc/cron.daily/apt最终键入,它将失败并显示相同的消息。
| 归档时间: |
|
| 查看次数: |
5372 次 |
| 最近记录: |