When executing "apt upgrade" command in Ubuntu 24.04 OS this error may be shown:
Setting up tzdata (2025b-0ubuntu0.24.04.1) ...
dpkg: error processing package tzdata (--configure):
installed tzdata package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of libpython3.12-stdlib:amd64:
libpython3.12-stdlib:amd64 depends on tzdata; however:
Package tzdata is not configured yet.
To fix this error the following command should be executed inside VPS prior "apt upgrade" or "apt install" commands:
ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
This should fix the problem. Europe/Berlin can be changed to other needed timezone.
