tzdate upgrade fails wih invalid format error during Xenial upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tzdata (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Everything looks fine; Not sure what is invalid about the format. I am EST, the output is in UTC.
Breaks the upgrade after from 15.05 at a point where is says it completed with errors, but some 200+ packages remaining.
Setting up tzdata (2016a-1) ...
Current default time zone: 'America/Toronto'
date: invalid date 'Sun Mar 13 02:32:57 UTC 2016'
dpkg: error processing package tzdata (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: tzdata 2016a-1
ProcVersionSign
Uname: Linux 4.2.0-30-generic x86_64
NonfreeKernelMo
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
Date: Sat Mar 12 21:35:07 2016
InstallationDate: Installed on 2014-10-22 (507 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitec
ProcEnviron:
LANGUAGE=en_CA:en
TERM=xterm-
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: tzdata
UpgradeStatus: Upgraded to xenial on 2016-03-13 (0 days ago)
So,
I have no idea what happened; manual setting of localtime to UTC (command below) fixed the configuration of the package, allowing the upgrade to continue.
Anyway, I executed the following command to set to UTC, and then proceeded to complete the dist-upgrade from 15.05, and the error from tzdata was resolved; I'll fix my timezone after the upgrade completes.
#ln -sf /usr/share/ zoneinfo/ UTC /etc/localtime