package tzdata 2024a-3ubuntu1.1 failed to install/upgrade: installed tzdata package post-installation script subprocess returned error exit status 10
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| tzdata (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
| Focal |
Fix Released
|
Medium
|
Unassigned | ||
| Jammy |
Fix Released
|
Medium
|
Unassigned | ||
| Noble |
Fix Released
|
Medium
|
Unassigned | ||
| Oracular |
Fix Released
|
Medium
|
Unassigned | ||
Bug Description
[ Impact ]
Updating the tzdata package will fail on systems that have a legacy timezone selected (that is not updated to a recent one during dpkg-reconfigure). Example:
```
$ schroot-wrapper -p tzdata -c jammy -u root
(jammy)root@host:~# ln -sf /usr/share/
(jammy)root@host:~# DEBIAN_
(jammy)root@host:~# echo $?
10
```
[ Test Plan ]
Test cases were added for Ubuntu 24.10 (oracular), Ubuntu 24.04 (noble), and Ubuntu 22.04 (jammy) to the autopkgtest to cover the testing:
* debconf: test_legacy_
So the test plan is to check that the autopkgtest succeeds. For older releases, run the example given above. It should exit with 0 and keep the configured timezone.
[ Where problems can occur ]
The fix touches the code that is used for configuring the timezone. That can cause package update to fail. There are autopkgtest to avoid regressions.
[ Original report ]
ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: tzdata 2024a-3ubuntu1.1
ProcVersionSign
Uname: Linux 6.5.0-1018-raspi aarch64
ApportVersion: 2.28.1-0ubuntu3
Architecture: arm64
CasperMD5CheckR
CloudArchitecture: aarch64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: config-disk (/dev/mmcblk0p1)
Date: Mon Jun 24 09:04:36 2024
DuplicateSignature:
package:
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
PackageArchitec
Python3Details: /usr/bin/
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
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)
| tags: | removed: need-duplicate-check |
| description: | updated |
| description: | updated |
| Changed in tzdata (Ubuntu): | |
| status: | Fix Committed → Fix Released |

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
```