package thunderbird 2:1snap1-0ubuntu1 failed to install/upgrade: new thunderbird package pre-installation script subprocess returned error exit status 1

Bug #2061918 reported by Brian Murray
48
This bug affects 6 people
Affects Status Importance Assigned to Milestone
thunderbird (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This happened during an upgrade from Mantic to Noble.

ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: thunderbird 2:1snap1-0ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
NonfreeKernelModules: nvidia_modeset wl nvidia zfs
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Apr 16 13:15:42 2024
ErrorMessage: new thunderbird package pre-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-08-10 (2076 days ago)
InstallationMedia: Ubuntu-Server 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.22.6ubuntu6
 apt 2.7.14build2
SnapChanges:
 ID Status Spawn Ready Summary
 3563 Error 2024-04-16T13:15:26-07:00 2024-04-16T13:15:42-07:00 Install "thunderbird" snap
 3564 Done 2024-04-16T13:22:00-07:00 2024-04-16T13:22:09-07:00 Install "thunderbird" snap
SourcePackage: thunderbird
Title: package thunderbird 2:1snap1-0ubuntu1 failed to install/upgrade: new thunderbird package pre-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to noble on 2024-04-16 (0 days ago)

Revision history for this message
Brian Murray (brian-murray) wrote :
tags: added: cuqa-manual-testing
Revision history for this message
Brian Murray (brian-murray) wrote :

This ended up causing my release upgrade to go burst into flames. That's documented in https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2061923 .

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue sounds like more a snapd problem

- Make snap "thunderbird" (460) available to the system (cannot cleanup failed attempt at making snap "thunderbird" available to the system: cannot update-desktop-database "update-desktop-database: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory\n": exit status 127)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in thunderbird (Ubuntu):
status: New → Confirmed
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I think release upgrader settings changed. To do deb2snap transitions first before upgrade happens.

Because during upgrade, packages are inconsistent, and snap hooks must be deffered until they are safe to execute on the system.

Note all other deb2snap transitions were always graceful and would attempt transition later if snap configuration fails during upgrade.

See old LXD deb2snap .deb logic.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

*should be changed.

Revision history for this message
Brian Murray (brian-murray) wrote :

Julian had an idea on how to fix this on IRC:

07:12 < juliank> Ah yes, to solve the specific instance of the thunderbird snap
                 and similar ones, one could also add Depends: libglib2.0-0t64
                 to their deb2snap packages

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

I managed to unbreak my system (in case anyone stumbles here looking for help) after reporting bug 2063219

Julian suggested installing libglib2.0-0t64_2.80.0-6ubuntu1_amd64.deb manually downloaded from the archive with dpkg, which I did.

Then checked the debs in /var/cache/apt/archives/*.deb were only from the release upgrade (not from previous updates) by correlating with my /var/log/dpkg.log package update timings.

sudo dpkg --install /var/cache/apt/archives/*.deb. # ran this twice
sudo apt --fix-broken install. # this now runs successfully
sudo apt update
sudo apt dist-upgrade # to continue the broken mantic to noble upgrade

liblxc-common 1:5.0.1-0ubuntu7 and liblxc1 1:5.0.1-0ubuntu7 have a colliding /usr/lib/x86_64-linux-gnu/lxc/rootfs/README

sudo apt --fix-broken install. # resolved above by removing liblxc1

sudo apt dist-upgrade
sudo apt install ubuntu-desktop^
sudo apt dist-upgrade

After all that, it's "fixed". Thanks Julian <3

tags: removed: need-duplicate-check
Revision history for this message
Sebastien Bacher (seb128) wrote :

The initial problem should have addressed at the archive level where we removed the transitional libglib2.0-0

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.