I’m running this via a local vagrant box and am wondering if this has anything to do with the problem. Each time I run ‘vagrant provision’, cache_valid_time is ignored and the cache is updated.
I'm running this via a local vagrant box and am wondering if this has
anything to do with the problem. Each time I run 'vagrant provision',
cache_valid_time is ignored and the cache is updated.
This parameter makes the module check the timestamp on two paths:
- first /var/lib/apt/periodic/update-success-stamp
- and if that was not available, /var/lib/apt/lists/
And compares that timestamp to the current time to caclulate the that
valid_time.
Can You check on you host if you have those files on those locations?
-rw-r–r-- 1 root root 0 May 5 2013 update-success-stamp
and /var/lib/apt/lists/ has many .ubuntu.com_ubuntu_dists_raring- files with varying dates (ranging from Oct 2012 to today).
My results for ‘date’ are Wed Dec 4 19:26:56 UTC 2013.
If I’m understanding correctly, it’s updating the cache because the update-success-stamp is there with a > 3600 second timestamp (which is how it should work). So the question is why isn’t that timestamp getting updated.
Hm, makes me wonder if we should let apt give some feedback (as in,
setting some return value) when that happens? If I update for adding a
particular repo I just added, I would want to know it fails.