Package tzdata is not configured yet - when trying to apt-get install
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Package tzdata is not configured yet - when trying to apt-get install
There seems to be a great many posts from people with this problem or a similar one. tzdata seems very fragile.
date: error: bad command line -t value "Thu Jul 9 23:20:02 UTC 2015", must be a non-negative number
dpkg: error processing tzdata
I traced my problem back to the date when I used apt-get to install ntpdate. It overwrote 3 of the tzdata files in /var/lib/dpkg/info.
I moved the 3 new files to a backup and ran sudo apt-get upgrade. This seemed to allow installation of all the applications that failed to install since the time I installed ntpdate.
However, running sudo apt-get upgrade again fails to install tzdata itself (all the others were successful).
I have 2 questions.
1. Why did installing ntpdate cause tzdata to fail?
2. How do I get tzdata working again?
Something that improved things for me was "dpkg-query -s tzdata". txdata uses dpkg to store user-selected parameters. It seems that just the act of querying the application's database seemed to fix it so I can at least call apt-get install successfully.
I'm running a very old version of Linux. It is time for me to upgrade. That should clear my problem. Thanks, everyone for the help.
How do I kill the account with my email as user name?
I would send a private message to one of the moderators or administrators, or use the "Contact Us" link at the bottom of the page. Maybe they can simply change your user name.
I'm also using Ubuntu 12.04.5 LTS. It's not that old. It's supposed to be supported for five years, until April 2017.
Last edited by Dave Lerner; 07-14-2015 at 10:25 PM.
this is a virtual install of the OLD ubuntu 12.04 lts
unless you set the VM to compensate the time might be a problem - as in it WILL!!! be off by the DIFFERENCE in your local time zone to UT ( Greenwich mean time )
for example
for Eastern time zone ( new york usa) it is -4 hours
this is caused by Microsoft setting the time on the clock in your computer to YOUR LOCAL TIME ZONE
Linux, bsd,apple,and every operating system EXCEPT Microsoft set the clock to UNIVERSAL TIME in a 24 hour clock
now
every linux OS can compensate for this you can turn off UT time and use Microsoft's way
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.