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 12-12-2007, 06:24 PM
"Robert Bond"
 
Default Files/directories dated 2012?

I ran apt-get update on my etch system yesterday. It has been a while so 40+
packages showed up to be upgraded. I installed them... Most of it appeared
to be Open Office upgrades. The upgrade blew up. I tracked the problem down
to the fact that many files and directories on my system had a modification
date of 12/12/2012! I fixed most of them with some "touch" scripts and got
the upgrades to work.

My question is: does anybody have any idea where the bogus time stamps came
from? I'd like to avoid doing this again. I don't know if the clock was
wrong - I suppose it could have been - but by time I figured out what the
problem was I had rebooted the system because one of the other upgrades was
a new kernel. The clock was correct after the reboot.

The system is a Gateway laptop with standard etch and an ext3 file system.

Bob


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-12-2007, 07:50 PM
Andrew Sackville-West
 
Default Files/directories dated 2012?

On Wed, Dec 12, 2007 at 11:24:57AM -0800, Robert Bond wrote:
> I ran apt-get update on my etch system yesterday. It has been a while so 40+
> packages showed up to be upgraded. I installed them... Most of it appeared
> to be Open Office upgrades. The upgrade blew up. I tracked the problem down
> to the fact that many files and directories on my system had a modification
> date of 12/12/2012! I fixed most of them with some "touch" scripts and got
> the upgrades to work.
>
> My question is: does anybody have any idea where the bogus time stamps came
> from? I'd like to avoid doing this again. I don't know if the clock was
> wrong - I suppose it could have been - but by time I figured out what the
> problem was I had rebooted the system because one of the other upgrades was
> a new kernel. The clock was correct after the reboot.


filesystem corruption?

A
 
Old 12-13-2007, 01:22 AM
Raj Kiran Grandhi
 
Default Files/directories dated 2012?

Robert Bond wrote:

I ran apt-get update on my etch system yesterday. It has been a while so 40+
packages showed up to be upgraded. I installed them... Most of it appeared
to be Open Office upgrades. The upgrade blew up. I tracked the problem down
to the fact that many files and directories on my system had a modification
date of 12/12/2012! I fixed most of them with some "touch" scripts and got
the upgrades to work.


Where did those files come from? If they belong to some debian package,
you might want to check the timestamps of the files in that package with:


dpkg --contents file.deb

--
Raj Kiran


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-13-2007, 06:13 PM
"Robert Bond"
 
Default Files/directories dated 2012?

>> I ran apt-get update on my etch system yesterday. It has been a while so
40+
>> packages showed up to be upgraded. I installed them... Most of it
appeared
>> to be Open Office upgrades. The upgrade blew up. I tracked the problem
down
>> to the fact that many files and directories on my system had a
modification
>> date of 12/12/2012! I fixed most of them with some "touch" scripts and
got
>> the upgrades to work.

>Where did those files come from? If they belong to some debian package,
>you might want to check the timestamps of the files in that package with:

I spent some time trying to figure this out. The question lead me to some
interesting facts. There are 125 .deb files in /var/cache/apt/archives that
had the 2012 date. I take that to mean that the clock was probably wrong
when these file were loaded. Many, many other files scattered around the
system were wrong.

The updates for the new packages came in a couple of waves - the first bunch
were just the ones that the Gnome applet (don't know what this is called)
prompted me to install. Once I did that I ran apt update and the second wave
came. I'm going to make the hypothesis that something during the first wave
changed my system clock to 2012. I extracted these lines from "ls -tl /etc":

drwxr-xr-x 2 root root 4096 2007-12-11 16:17 vim
drwxr-xr-x 2 root root 4096 2007-12-11 16:17 w3m
drwxr-xr-x 2 root root 4096 2007-12-11 16:17 wpa_supplicant
drwxr-xr-x 4 root root 4096 2007-12-11 16:17 xdg
drwxr-xr-x 2 root root 4096 2007-12-11 16:17 xml
-rw-r--r-- 1 root root 349 2007-12-11 15:45 mtab
-rw-r--r-- 1 root root 46 2007-12-11 15:44 adjtime
drwxr-xr-x 2 root root 4096 2007-12-11 15:41 gre.d
-rw-r--r-- 1 root root 49345 2007-12-11 15:41 ld.so.cache
drwxr-xr-x 2 root root 4096 2007-12-11 15:40 alternatives
drwxr-xr-x 2 root root 4096 2007-12-11 15:40 bash_completion.d
drwxr-xr-x 2 root root 4096 2007-12-11 15:40 openoffice

Everything with a date of "2007-12-11 16:17" was fixed when I ran my "touch"
script so these items had the date 2012. Indeed,
/var/cache/apt/archives/vim-common_1%3a7.0-122+1etch2_i386.deb had the 2012
date. So /etc/vim was probably hosed when it was installed.

It is interesting that /etc/adjtime is one of the last things that changed
before things went south. Does anyone know what programs mess with
/etc/adjtime? Maybe I can track that down....

Bob


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 12:56 AM.

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