package tzdata 2024a-3ubuntu1.1 failed to install/upgrade: installed tzdata package post-installation script subprocess returned error exit status 10

Bug #2070285 reported by Justin Bache
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tzdata (Ubuntu)
New
Undecided
Unassigned

Bug Description

https://bugs.launchpad.net/ubuntu/+source/tzdata/+filebug/fb042db4-3232-11ef-b78b-9b3aa32b5f1b?field.title=package+tzdata+2024a-3ubuntu1.1+failed+to+install%2Fupgrade%3A+installed+tzdata+package+post-installation+script+subprocess+returned+error+exit+status+10

ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: tzdata 2024a-3ubuntu1.1
ProcVersionSignature: Ubuntu 6.5.0-1018.21-raspi 6.5.13
Uname: Linux 6.5.0-1018-raspi aarch64
ApportVersion: 2.28.1-0ubuntu3
Architecture: arm64
CasperMD5CheckResult: unknown
CloudArchitecture: aarch64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: config-disk (/dev/mmcblk0p1)
Date: Mon Jun 24 09:04:36 2024
DuplicateSignature:
 package:tzdata:2024a-3ubuntu1.1
 Setting up tzdata (2024a-3ubuntu1.1) ...
 dpkg: error processing package tzdata (--configure):
  installed tzdata package post-installation script subprocess returned error exit status 10
ErrorMessage: installed tzdata package post-installation script subprocess returned error exit status 10
PackageArchitecture: all
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.22.6ubuntu6
 apt 2.7.14build2
SourcePackage: tzdata
Title: package tzdata 2024a-3ubuntu1.1 failed to install/upgrade: installed tzdata package post-installation script subprocess returned error exit status 10
UpgradeStatus: Upgraded to noble on 2024-06-24 (0 days ago)

Revision history for this message
Justin Bache (jbach87) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. What happens when you retry?

```
sudo apt install -f
```

Revision history for this message
Nagabhiru Sudhakar (nagabhiru888) wrote :

I am also facing same issue with tzdata 2024a-3ubuntu1.1 and it is a bug with package.

Please check and fix the bug.

Revision history for this message
Nagabhiru Sudhakar (nagabhiru888) wrote :

It is critically one and need fix asap.

Revision history for this message
Benjamin Drung (bdrung) wrote :

There is no error message in the logs that would explain the failure. Are you willing to help debugging the failure to find (and then resolve) the root cause?

Can you edit /var/lib/dpkg/info/tzdata.postinst and add `set -x` in line two and then run

```
sudo apt install -f
```

Revision history for this message
Nagabhiru Sudhakar (nagabhiru888) wrote :

Please refer below error output as per request.

# apt install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up tzdata (2024a-0ubuntu0.22.04.1) ...
+ LC_ALL=C
+ LANG=C
+ unset TZ
+ umask 022
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/tzdata.postinst configure 2024a-0ubuntu0.22.04.1
dpkg: error processing package tzdata (--configure):
 installed tzdata package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 tzdata
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Benjamin Drung (bdrung) wrote :

So the debconf call fails. Can you run debconf with debug mode?

```
sudo DEBCONF_DEBUG=developer debconf /var/lib/dpkg/info/tzdata.postinst configure 2024a-0ubuntu0.22.04.1
```

Revision history for this message
Nagabhiru Sudhakar (nagabhiru888) wrote :

The latest version "2024a-0ubuntu0.22.04.1" getting installed rightly if my instance time zone is in UTC.
Othereise it is failing and it shouldn't impact the timezone which set as per our requirment.
Looks it required some fix.

# date
Mon Jul 1 12:31:50 CEST 2024
# ls -ld /etc/localtime
lrwxrwxrwx 1 root root 23 Jun 30 15:53 /etc/localtime -> /usr/share/zoneinfo/CET
# DEBCONF_DEBUG=developer debconf /var/lib/dpkg/info/tzdata.postinst configure 2024a-0ubuntu0.22.04.1
debconf (developer): starting /var/lib/dpkg/info/tzdata.postinst configure 2024a-0ubuntu0.22.04.1
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- GET tzdata/Areas
debconf (developer): --> 0 Etc
debconf (developer): <-- GET tzdata/Zones/Etc
debconf (developer): --> 0 UTC
debconf (developer): <-- STOP

Current default time zone: 'Etc/UTC'
Local time is now: Mon Jul 1 10:32:02 UTC 2024.
Universal Time is now: Mon Jul 1 10:32:02 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

# ls -ld /etc/localtime
lrwxrwxrwx 1 root root 27 Jul 1 10:32 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC
#

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.