You are not logged in.
Pages: 1
ok i realise ntp has synced my clock to 1970, i try to sync it back to normal with ntupdate then reboot
sudo then says its out of sync, or something, so i search for a solution, google came up with a "sudo -K" which makes sudo work, but now i can't build anything ("==> ERROR: Build Failed." Aborting... "Error: Makepkg was unable to build amule-cvs package." ect..)
and loads of root files are created or modified at 1970
do i need to flush my whole system some how?
Last edited by gav616 (2008-03-31 00:37:29)
Offline
What's the big deal with using sudo? Just use su. Then set the correct time:
rdate -s ntp.demon.co.uk
Or use the date command.
See ntp config.
I suppose you'll have to search for a utility, to fix the bad file timestamps.
Offline
sorry i didn't post very good, my time has been sorted the question was why does having had the time at 1970 now not allow me to build anything?
or I'm assuming that's what's causing the not descriptive error
Offline
It seems to me that you could use something like
find . -mtime +3650
that should find only the files with 1970 dates. And then take the output of that command, clean it up, and 'touch' all those files and bring them up to today.
There is probably some really elegant one-line way to do it, but I'm a beginner; I'd do it in 3 steps.
Offline
At the end of the find command:
-exec touch '{}' \;
Offline
ok i did;
$ find . -mtime +3650 -exec touch '{}' \;
...now i can build amule-cvs ect....
well, thank you very much guys.
Offline
Great!
Please mark this thread as solved, so others who have the same problem can see that it's solvable...
Offline
Great!
Please mark this thread as solved, so others who have the same problem can see that it's solvable...
You gotta do it yourself
Go KISS!
Anyway, just edit the title of your first post, and that's it.
Have you Syued today?
Free music for free people! | Earthlings
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery
Offline
Pages: 1