LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-09-2015, 06:47 PM   #1
rick.heuft@ge.com
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Rep: Reputation: Disabled
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?

I would appreciate any help.
 
Old 07-10-2015, 06:34 PM   #2
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
For your second question, you could try:

Code:
sudo dpkg-reconfigure tzdata
That launches an interactive utility that configures tzdata.
 
1 members found this post helpful.
Old 07-10-2015, 06:37 PM   #3
rick.heuft@ge.com
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks, Dave. I tried that. It just seems to bring up a dialog box asking for country and city.
 
Old 07-10-2015, 06:41 PM   #4
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
Yes, that's what it's supposed to do. It needs that information to set up the proper time zone configuration.
 
Old 07-10-2015, 06:43 PM   #5
rick.heuft@ge.com
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-10-2015, 07:06 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Hi "rick.heuft@ge.com"
first you are going to want to KILL OFF using that email
this forum gets indexed by bots ALL THE TIME

i suspect you are already getting a few SPAMS already

- it WILL get worse

reregister and DO NOT use your email as a user name


very soon that address will be SPAM central



next

is this a SINGLE Operating system install
or a dual boot with MS windows
THIS MAKES A BIG DIFFERENCE


Quote:
I'm running a very old version of Linux.
that might be a very hard problem if it is unsupported
there will NOT be the current LEAPSECOND update

Last edited by John VV; 07-10-2015 at 07:10 PM.
 
Old 07-13-2015, 01:44 PM   #7
rick.heuft@ge.com
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
HI John.

How do I kill the account with my email as user name?

It is a single VM Ware image.

I'm currently using Ubuntu 12.04.5 LTS.

Thanks.
 
Old 07-14-2015, 10:22 PM   #8
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
Quote:
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.
 
Old 07-15-2015, 12:47 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
It is a single VM Ware image.
this should have been in THE FIRST POST


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
 
Old 07-15-2015, 07:41 AM   #10
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
It's also possible to configure Windows to use UT instead of local time. At least it used to be possible; I haven't used Windows for a while.

But I don't see what this has to do with the original poster's issue.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does apt-get -b source Install the Package? Zssfssz Debian 2 01-30-2012 08:58 AM
Install an older version of a package using apt-get asookazian Linux - Newbie 1 03-28-2010 04:25 AM
Can't install tzdata (need for a lib of another program) prestosd Linux - Software 9 10-29-2006 04:05 AM
apt-get install Java, what's right package name? MOCKBA Ubuntu 1 01-16-2006 06:59 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration