The error is:^^^^^^^^
Preparing to unpack .../bacula-common_15.0.3-3_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/bacula-common_15.0.3-3_amd64.deb (--unpack):
new bacula-common package pre-installation script subprocess returned error exit status 1
^^^^^^^^systemd-tmpfiles: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libkmod.so.2)
/var/lib/dpkg/info/bacula-common.postinst has:
# Automatically added by dh_installtmpfiles/13.24.2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -x "$(command -v systemd-tmpfiles)" ]; then
systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --create bacula.conf || true
fi
fi
# End automatically added section
I wonder if it would help to have bacula-common Depend on Pre-Depend on systemd to help apt decide to configure it before call systemd-tmpfiles
in postinst.
FWIW, I checked the stable version of bacula-common and it has the same story. The `systemd-tmpfiles` call only appears in the `postinst`, so there is no way I can find that a `bacula-common.preinst` call would trigger `systemd-tmpfiles`
On Sun, 20 Jul 2025 12:27:53 +0200 Niels Thykier <[email protected]> wrote:
Perharps debian-devel or other people that would be in similar
situations can help. Concretely, I suspect the postgres/mariaDB
maintainers would have been in a similar situation at some point (I
think PostgreSQL has a yearly bump of data base format). Personally,
I would probably reach out to the PostgreSQL maintainers / check the
PG packaging.
Maybe we can reduce the amount of people running into the scenario
where this is needed by giving sound upgrade instructions?
Is the upgrade handled by dbconfig-common? I recall that will at least
dump the database before trying the upgrade and notify the user of
that in case of failures.
Hi,
my mail from last week didn't receive any feedback.
Let's look at this another way: I think this boils down to the question
what kind of support we will need to give after the release. My take is
that it will be either:
a) users where the upgrade didn't go through because they didn't affirm
that their systems are fit for the upgrade of the bacula database
(very easy and quick to fix).
...
should we recommend upgrading to bacula from backports before the dist-upgrade in the release notes? That will perform the database
upgrade and seems like an easy workaround.
...
B) Default to "Yes" (applies to all scenarios)
If we switch the default for all scenarios to "Yes, go ahead with the
update", I fully expect to receive bug reports about failed upgrades
and I can imagine the frustration of people with big installations
that only notice hours (or days) later that the upgrade broke and they
need to do a restore that can then take another few hours, just to get
to the point where they started from.
...
Regards
Carsten
On Mon, Jul 28, 2025 at 12:12:55PM +0200, Carsten Leonhardt wrote:
...
should we recommend upgrading to bacula from backports before the
dist-upgrade in the release notes? That will perform the database
upgrade and seems like an easy workaround.
no, backports shouldn't become a requirement for a regular upgrade from
one release to the next release. It would also not make a difference
with the problem at hand that the user is forced to answer (or preseed
a debconf answer) for something that is not necessary.
On Mon, Jul 21, 2025 at 06:44:17PM +0200, Carsten Leonhardt wrote:
...
B) Default to "Yes" (applies to all scenarios)
If we switch the default for all scenarios to "Yes, go ahead with the
update", I fully expect to receive bug reports about failed upgrades
and I can imagine the frustration of people with big installations
that only notice hours (or days) later that the upgrade broke and they
need to do a restore that can then take another few hours, just to get
to the point where they started from.
...
Is it true that they would "only notice hours (or days) later"?
The expected error handling would be:
1. bacula-director-$db.postint fails, aborting the upgrade with a clear
error message for the administrator
2. administrator creates required space
3. attempting again to upgrade the package is successful and results in
a correctly upgraded database
What actually matters is that this error handling works,
since some users will always hit this problem no matter
how often and how annoyingly you informed them.
Regarding bacula-common.preinst, it is much better for our users to read
the release notes once instead of having to deal with release notes in
the form of dozens of debconf questions on every single machine being upgraded.
debconf is for configuring packages, not for forcing information on users.
It seems something has already been added to the release notes: https://www.debian.org/releases/trixie/release-notes/issues.html#bacula-director-database-schema-update-needs-large-amounts-of-disk-space-and-time
Release notes and NEWS.Debian are for informing users, you already have
both of these now.
...
The situation for MariaDB warranted documentation in the Release Notes:
https://www.debian.org/releases/trixie/release-notes/issues.html#mariadb-major-version-upgrades-only-work-reliably-after-a-clean-shutdown
Maybe we can reduce the amount of people running into the scenario where
this is needed by giving sound upgrade instructions?
...
Paul
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (1 / 15) |
| Uptime: | 164:47:55 |
| Calls: | 12,096 |
| Calls today: | 4 |
| Files: | 15,001 |
| Messages: | 6,517,802 |