FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-25-2008, 02:41 AM
Amit Uttamchandani
 
Default Bad year 1903 for /var/log/aptitude

Anacron sends out a local email complaining about logrotate:

/etc/cron.daily/logrotate:
error: bad year 1903 for file /var/log/aptitude in state
file /var/lib/logrotate/status run-parts: /etc/cron.daily/logrotate
exited with return code 1

Looking at /var/log with ls -l i see several different files with bad
dates. Now, the 1903 date happened when my laptop battery died and on
top of that, the CMOS battery is no good as well.

How do I solve the above issue? Do I simply execute a touch command to
the files in question so they have the current date?

Thanks for any help.

Amit


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 09-25-2008, 01:40 PM
Thomas Preud'homme
 
Default Bad year 1903 for /var/log/aptitude

Thursday 25 September 2008, Amit Uttamchandani wrote*:
> Anacron sends out a local email complaining about logrotate:
>
> /etc/cron.daily/logrotate:
> error: bad year 1903 for file /var/log/aptitude in state
> file /var/lib/logrotate/status run-parts: /etc/cron.daily/logrotate
> exited with return code 1
>
> Looking at /var/log with ls -l i see several different files with bad
> dates. Now, the 1903 date happened when my laptop battery died and on
> top of that, the CMOS battery is no good as well.
>
> How do I solve the above issue? Do I simply execute a touch command
> to the files in question so they have the current date?

If these files are supposed to be older than other logs, use touch -d
instead and it should work.

>
> Thanks for any help.
>
> Amit


Regards,

Thomas Preud'homme
--
Why Debian : http://www.debian.org/intro/why_debian
 

Thread Tools




All times are GMT. The time now is 05:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org