Hi Christian,

Thanks for reporting this issue with initramfs-tools.

After investigating the error, I've identified the root cause:

The Problem:
Your system has a version of the zstd compression tool (1.5.8~dev) that was 
installed from a source other than the Ubuntu repositories (marked as "[origin: 
unknown]" in your dependency list). This development version has a different 
symbol interface than the libzstd1 library (1.5.5+dfsg2-2build1.1) that Ubuntu 
packages expect.

When initramfs-tools tries to generate the initramfs image, it calls the
system zstd binary, which fails because of this version mismatch: "zstd:
symbol lookup error: zstd: undefined symbol: POOL_free"

What You Can Do:

1. First, identify where the non-Ubuntu zstd came from:
   - Did you add a PPA repository?
   - Did you manually install zstd?
   - Did you use snap, flatpak, or another package manager?
   - Did you download it from the zstd project's GitHub?

2. To fix the issue, reinstall the Ubuntu versions:
   sudo apt install --reinstall zstd libzstd1

3. After that, complete your upgrade:
   sudo apt --fix-broken install
   sudo apt upgrade

If you're unsure where the third-party zstd came from, try running:
dpkg -S /usr/bin/zstd

This will tell you which package provides the zstd binary.

The issue is not with initramfs-tools itself, but with a dependency
conflict caused by a non-Canonical package. Once you have the correct
versions from Ubuntu repositories, the initramfs generation should work
properly.

Let me know if you need any clarification or run into issues with the
fix.

** Package changed: initramfs-tools (Ubuntu) => libzstd (Ubuntu)

** Changed in: libzstd (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143811

Title:
  package initramfs-tools 0.142ubuntu25.5 failed to install/upgrade:
  installed initramfs-tools package post-installation script subprocess
  returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libzstd/+bug/2143811/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to