Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED] /etc/localtime not found

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
not_cool
n00b
n00b
Posts: 22
Joined: Thu Dec 08, 2005 2:00 am

[SOLVED] /etc/localtime not found

  • Quote

Post by not_cool » Thu Dec 08, 2005 3:49 am

Hi! I am still in the process of installing Gentoo, and am currently trying to set the local timezone. The installation guide says to copy the timezone from /usr/share/zoneinfo/ to /etc/localtime. But when I try to do: "cp /usr/share/zoneinfo/America /etc/localtime", I get the error: "cp: omitting directory '/usr/share/zoneinfo/America'" I try to change to the /etc/localtime directory and get an error saying that it is not a directory.

Thanks for all the help! :)
Last edited by not_cool on Thu Dec 08, 2005 5:08 am, edited 1 time in total.
Top
jmbsvicetto
Bodhisattva
Bodhisattva
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Thu Dec 08, 2005 3:55 am

Hi.

You don't have to copy the file, actually you have to create a symlink. Look at the output of

Code: Select all

# ls -l /usr/share/zoneinfo/
You should determine what is your time zone. If you're in the US, it should be /usr/share/zoneinfo/America/*. In my case it's

Code: Select all

atl64 atlantis # ls -l /etc/localtime
lrwxrwxrwx  1 root root 37 2005-04-23 20:33 /etc/localtime -> ../usr/share/zoneinfo/Atlantic/Azores
atl64 atlantis # 
When you know what's your time zone, you should do the following

Code: Select all

# cd /etc
# ln -l ../usr/share/zoneinfo/* localtime
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
kucrut
n00b
n00b
Posts: 38
Joined: Fri Jun 24, 2005 1:12 pm

  • Quote

Post by kucrut » Thu Dec 08, 2005 3:57 am

shouldnt you just link your timezone to /etc/localtime ? mine is Africa/Cairo, so i did:

Code: Select all

ln -s /usr/share/zoneinfo/Africa/Cairo /etc/localtime
EDiT: ah jmbsvicetto, you beat me to it :D
Top
not_cool
n00b
n00b
Posts: 22
Joined: Thu Dec 08, 2005 2:00 am

  • Quote

Post by not_cool » Thu Dec 08, 2005 3:59 am

Solved! Thanks!
Top
jmbsvicetto
Bodhisattva
Bodhisattva
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Thu Dec 08, 2005 4:10 am

@not_cool: If you've solved your problem, please add [solved] to the title of the thread (edit first post).

@kucrut: It was a close call! :wink: I would just point your attention to the preferred syntax - you should use a relative path to assure that you're referencing the same file even if your disk partitions were mounted on another system.
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
good ole flopp
n00b
n00b
Posts: 13
Joined: Sun Feb 12, 2006 8:17 pm

hi

  • Quote

Post by good ole flopp » Mon Feb 13, 2006 12:43 am

:)
i'm a gent-n00b first time installing gentoo on my poweredge 2400 and i ran into this problem too.
i think the misunderstanding comes from the gentoo handbook using GMT as their example, and not being very descriptive.

:)
i had the same problem as the original poster, by following the gentoo handbook recommendations my cp command came back with an error.
i tried using the ln commands recomended by the other posters and they fell flat too.

:)
first let me say that the PST8PDT doesn't work for whatever reason, it seemed a natural choice for me (san francisco).
there was an entry for me in America that came close though, Los_Angeles.
my successful timezone changing statement was:

Code: Select all

# cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
:)
i dont know why that worked and PST8PDT didn't, i'm also not sure why the gentoo handbook left out these few extra details about how this part of the install should go, but whatever
"if only we knew what we don't know, we'd do things right the first time."
Top
Post Reply

6 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic