package ubuntu-advantage-tools 27.8~22.04.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess was killed by signal (Broken pipe)

Bug #1972067 reported by odoncaoa
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Greetings,

~ 2022-05-07 13:59
odoncaoa@TUFfx705DU2204[7]$ lsb_release -rd
   Description: Ubuntu 22.04 LTS
   Release: 22.04

~ 2022-05-07 14:00
odoncaoa@TUFfx705DU2204[8]$ apt-cache policy 'ubuntu-advantage-tools'
   ubuntu-advantage-tools:
     Installed: 27.8~22.04.1
     Candidate: 27.8~22.04.1
     Version table:
    *** 27.8~22.04.1 500
           500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
           100 /var/lib/dpkg/status
        27.7~22.04.1 500
           500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

Last eve I tracked down, installed a different 'file mgr' to replace 'write'/nautilus. I then incorporated the 'Thunar' File mgr as the default. I also was making efforts to swap 'Caps_Lock' w/'Control_L' keys within Bash. The swap mostly went well, but the 'Caps_Lock' button, now assigned w/'Control_L' is a bit buggered. The swap was made, but it also inhereted 'Escape'.
~ 2022-05-07 13:35
odoncaoa@TUFfx705DU2204[9]$ xmodmap
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x9), Caps_Lock (0x25)
control Control_L (0x42), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)

This morning I booted from recovery mode in order to see if it would fix the broken 'snap' functionality, as well; which seems to have not happened. I proceeded to do: odoncaoa@TUFfx705DU2204[10]$ sudo apt update, and then:

   ~ 2022-05-07 13:21
   odoncaoa@TUFfx705DU2204[11]$ apt list --upgradable
   Listing... Done
   firmware-sof-signed/jammy-updates,jammy-updates 2.0-1ubuntu3 all [upgradable from: 2.0-1ubuntu2]
   libnss-systemd/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]
   libpam-systemd/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]
   libsnmp-base/jammy-updates,jammy-updates 5.9.1+dfsg-1ubuntu2.1 all [upgradable from: 5.9.1+dfsg-1ubuntu2]
   libsnmp40/jammy-updates 5.9.1+dfsg-1ubuntu2.1 amd64 [upgradable from: 5.9.1+dfsg-1ubuntu2]
   libssl3/jammy-updates,jammy-security 3.0.2-0ubuntu1.1 amd64 [upgradable from: 3.0.2-0ubuntu1]
   libsystemd0/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]
   libudev1/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]
   networkd-dispatcher/jammy-updates,jammy-updates,jammy-security,jammy-security 2.1-2ubuntu0.22.04.2 all [upgradable from: 2.1-2ubuntu0.22.04.1]
   openssl/jammy-updates,jammy-security 3.0.2-0ubuntu1.1 amd64 [upgradable from: 3.0.2-0ubuntu1]
   rsyslog/jammy-updates,jammy-security 8.2112.0-2ubuntu2.2 amd64 [upgradable from: 8.2112.0-2ubuntu2]
   shotwell-common/jammy-updates,jammy-updates 0.30.14-1ubuntu6 all [upgradable from: 0.30.14-1ubuntu5]
   shotwell/jammy-updates 0.30.14-1ubuntu6 amd64 [upgradable from: 0.30.14-1ubuntu5]
   systemd-oomd/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]
   systemd-sysv/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]
   systemd-timesyncd/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]
   systemd/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]
   thunderbird-gnome-support/jammy 1:91.9.0+build3-0ubuntu0.22.04.1 amd64 [upgradable from: 1:91.9.0+build2-0ubuntu0.22.04.1]
   thunderbird-locale-en-us/jammy,jammy 1:91.9.0+build3-0ubuntu0.22.04.1 all [upgradable from: 1:91.9.0+build2-0ubuntu0.22.04.1]
   thunderbird-locale-en/jammy 1:91.9.0+build3-0ubuntu0.22.04.1 amd64 [upgradable from: 1:91.9.0+build2-0ubuntu0.22.04.1]
   thunderbird/jammy 1:91.9.0+build3-0ubuntu0.22.04.1 amd64 [upgradable from: 1:91.9.0+build2-0ubuntu0.22.04.1]
   ubuntu-docs/jammy-updates,jammy-updates 22.04.5 all [upgradable from: 22.04.4]
   udev/jammy-updates 249.11-0ubuntu3.1 amd64 [upgradable from: 249.11-0ubuntu3]

and was in the process of:
   ~ 2022-05-07 13:21
   odoncaoa@TUFfx705DU2204[12]$ sudo apt upgrade
   Reading package lists... Done
   Building dependency tree... Done
   Reading state information... Done
   Calculating upgrade... Done
   The following packages will be upgraded:
     firmware-sof-signed libnss-systemd libpam-systemd libsnmp-base
     libsnmp40 libssl3 libsystemd0 libudev1 networkd-dispatcher openssl
     rsyslog shotwell shotwell-common systemd systemd-oomd systemd-sysv
     systemd-timesyncd thunderbird thunderbird-gnome-support
     thunderbird-locale-en thunderbird-locale-en-us ubuntu-docs udev
   23 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
   4 standard security updates
   Need to get 76.3 MB of archives.
   After this operation, 16.4 kB of additional disk space will be used.
   Do you want to continue? [Y/n] y
   Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 systemd-timesyncd amd64 249.11-0ubuntu3.1 [31.2 kB]

When the upgrade appears to have stumbled upon (and I was notified by GUI Install Windows):
   Setting up shotwell (0.30.14-1ubuntu6) ...
   Processing triggers for libc-bin (2.35-0ubuntu3) ...

~ 2022-05-07 13:48
odoncaoa@TUFfx705DU2204[3]$ sudo snap install firefox
   error: cannot perform the following tasks:
   - Run configure hook of "firefox" snap if present (run hook "configure": cannot perform operation: mount --make-rprivate /var/lib/snapd/hostfs/writable: No such file or directory)

~ 2022-05-07 13:50
odoncaoa@TUFfx705DU2204[6]$ ll /var/lib/snapd/hostfs
   total 12
   drwxr-xr-x 3 root root 4096 May 1 20:04 .
   drwxr-xr-x 22 root root 4096 May 7 13:49 ..
   drwxr-xr-x 2 root root 4096 May 1 20:04 writable

~ 2022-05-07 14:22
odoncaoa@TUFfx705DU2204[28]$ file /var/lib/snapd/hostfs/writable
   /var/lib/snapd/hostfs/writable: directory

So, scripts relying on bash 'Esc', or 'snap' functional utility could have been at the heart of this Boo-Boo, as neither are presently functional within this installed, instanciated runtime. Also, 'dpkg' seems to become inoperable on various operations, in cause by a bad 'snap'.

Slainte, odoncaoa

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: ubuntu-advantage-tools 27.8~22.04.1
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5json:
 {
   "result": "skip"
 }
Date: Sun May 1 15:31:32 2022
ErrorMessage: installed ubuntu-advantage-tools package post-installation script subprocess was killed by signal (Broken pipe)
InstallationDate: Installed on 2022-05-01 (5 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
SourcePackage: ubuntu-advantage-tools
Title: package ubuntu-advantage-tools 27.8~22.04.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess was killed by signal (Broken pipe)
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
odoncaoa (odoncaoa-yahoo) wrote :
Revision history for this message
odoncaoa (odoncaoa-yahoo) wrote :
Download full text (15.0 KiB)

Another example of this 'snap' problem relative to a try for 'chromium', ending in an "unwritable /var/lib/snapd/hostfs/writable"?

~/HD-GDU3/odoncaoa/Documents/Info/Notes/Systems/Ux/TUFfx705DU/Admin 2022-05-07 17:22
odoncaoa@TUFfx705DU2204[18]$ sudo snap install chromium
   [sudo] password for odoncaoa:
   error: cannot perform the following tasks:
   - Run configure hook of "chromium" snap if present (run hook "configure": cannot perform operation: mount --make-rprivate /var/lib/snapd/hostfs/writable: No such file or directory)

Here's the 'syslog' applicable of the activity involved.

/var/log 2022-05-07 17:33
odoncaoa@TUFfx705DU2204[16]$ cat syslog | tail -n 100
   May 7 16:34:37 TUFfx705DU2204 anacron[11721]: Anacron 2.3 started on 2022-05-07
   May 7 16:34:37 TUFfx705DU2204 anacron[11721]: Normal exit (0 jobs run)
   May 7 16:34:37 TUFfx705DU2204 systemd[1]: anacron.service: Deactivated successfully.
   May 7 16:40:37 TUFfx705DU2204 NetworkManager[597]: <info> [1651956037.5398] manager: NetworkManager state is now CONNECTED_SITE
   May 7 16:40:37 TUFfx705DU2204 dbus-daemon[595]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=597 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
   May 7 16:40:37 TUFfx705DU2204 systemd[1]: Starting Network Manager Script Dispatcher Service...
   May 7 16:40:37 TUFfx705DU2204 dbus-daemon[595]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
   May 7 16:40:37 TUFfx705DU2204 systemd[1]: Started Network Manager Script Dispatcher Service.
   May 7 16:40:44 TUFfx705DU2204 NetworkManager[597]: <info> [1651956044.7479] manager: NetworkManager state is now CONNECTED_GLOBAL
   May 7 16:40:54 TUFfx705DU2204 systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
   May 7 17:10:55 TUFfx705DU2204 systemd[1]: Starting Refresh fwupd metadata and update motd...
   May 7 17:10:55 TUFfx705DU2204 systemd[1]: fwupd-refresh.service: Main process exited, code=exited, status=1/FAILURE
   May 7 17:10:55 TUFfx705DU2204 systemd[1]: fwupd-refresh.service: Failed with result 'exit-code'.
   May 7 17:10:55 TUFfx705DU2204 systemd[1]: Failed to start Refresh fwupd metadata and update motd.
   May 7 17:16:04 TUFfx705DU2204 NetworkManager[597]: <info> [1651958164.5398] manager: NetworkManager state is now CONNECTED_SITE
   May 7 17:16:04 TUFfx705DU2204 dbus-daemon[595]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=597 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
   May 7 17:16:04 TUFfx705DU2204 systemd[1]: Starting Network Manager Script Dispatcher Service...
   May 7 17:16:04 TUFfx705DU2204 dbus-daemon[595]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
   May 7 17:16:04 TUFfx705DU2204 systemd[1]: Started Network Manager Script Dispatcher Service.
   May 7 17:16:04 TUFfx705DU2204 NetworkManager[597]: <info> [1651958164.7184] manager: NetworkManager state is now CONNECTED_GLOBAL
   May 7 1...

Revision history for this message
odoncaoa (odoncaoa-yahoo) wrote :

The libraries present in various 'snapd' directories seem to be mistakenly typed, as this runtime computer is amd64 based!?

/var/log 2022-05-07 17:55
odoncaoa@TUFfx705DU2204[26]$ l /snap/snapd/15534/lib/x86_64-linux-gnu
./ libcrypt-2.23.so libmemusage.so libnss_files.so.2@ libresolv.so.2@
../ libcrypt.so.1@ libm.so.6@ libnss_hesiod-2.23.so librt-2.23.so
ld-2.23.so* libc.so.6@ libmvec-2.23.so libnss_hesiod.so.2@ librt.so.1@
ld-linux-x86-64.so.2@ libdl-2.23.so libmvec.so.1@ libnss_nis-2.23.so libSegFault.so
libanl-2.23.so libdl.so.2@ libnsl-2.23.so libnss_nisplus-2.23.so libthread_db-1.0.so
libanl.so.1@ libgcc_s.so.1 libnsl.so.1@ libnss_nisplus.so.2@ libthread_db.so.1@
libBrokenLocale-2.23.so liblzma.so.5@ libnss_compat-2.23.so libnss_nis.so.2@ libutil-2.23.so
libBrokenLocale.so.1@ liblzma.so.5.0.0 libnss_compat.so.2@ libpcprofile.so libutil.so.1@
libc-2.23.so* liblzo2.so.2@ libnss_dns-2.23.so libpthread-2.23.so* libz.so.1@
libcidn-2.23.so liblzo2.so.2.0.0 libnss_dns.so.2@ libpthread.so.0@ libz.so.1.2.8
libcidn.so.1@ libm-2.23.so libnss_files-2.23.so libresolv-2.23.so

/var/log 2022-05-07 17:57
odoncaoa@TUFfx705DU2204[32]$ l /snap/snapd/15534/usr/lib
   /snap/snapd/15534/usr/lib:
      ./ ../ environment.d/ gcc/ locale/ snapd/ systemd/ x86_64-linux-gnu/

snap/snapd 2022-05-07 18:05
odoncaoa@TUFfx705DU2204[7]$ find . -type d -print | grep 'x86_64'
   ./15534/lib/x86_64-linux-gnu
   ./15534/usr/lib/gcc/x86_64-linux-gnu
   ./15534/usr/lib/gcc/x86_64-linux-gnu/6
   ./15534/usr/lib/x86_64-linux-gnu
   ./15534/usr/lib/x86_64-linux-gnu/audit
   ./15534/usr/lib/x86_64-linux-gnu/gconv

Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Hi odoncaoa,

Thanks for taking the time to report this bug and make Ubuntu better!

Before discussing the snap related issues you've brought here I want to clarify my understanding: Are you experiencing any problems related to the ubuntu-advantage-tools package (which provides the `ua` command line tool)? Looking at DpkgTerminalLog.gz, it appears an error occurred while installing it, but I don't think this should be related to the snap issues you've described.

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-advantage-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-advantage-tools (Ubuntu):
status: Incomplete → Expired
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.