[Bug 2003411] Re: package update-notifier-common 3.192.54.3 failed to install/upgrade: installed update-notifier-common package post-installation script subprocess returned error exit status 1

Swiss Knight 2003411 at bugs.launchpad.net
Fri Jan 20 08:49:40 UTC 2023


I had to manually move those following files into a temporary folder
before updating and upgrading the system again with apt in order for
this error to disappear (it's blocking for apt):

```
$ sudo ls -l /var/lib/dpkg/info | grep -i update-notifier
-rw-r--r-- 1 root  root        279 déc 13 20:43 update-notifier-common.conffiles
-rw-r--r-- 1 root  root      16498 jan 20 09:29 update-notifier-common.list
-rw-r--r-- 1 root  root      13304 déc 13 20:43 update-notifier-common.md5sums
-rwxr-xr-x 1 root  root       3597 déc 13 20:43 update-notifier-common.postinst
-rwxr-xr-x 1 root  root       1166 déc 13 20:43 update-notifier-common.postrm
-rwxr-xr-x 1 root  root        384 déc 13 20:43 update-notifier-common.preinst
-rwxr-xr-x 1 root  root        733 déc 13 20:43 update-notifier-common.prerm
-rw-r--r-- 1 root  root         51 déc 13 20:43 update-notifier-common.triggers
-rw-r--r-- 1 root  root        100 déc 13 20:43 update-notifier.conffiles
-rw-r--r-- 1 root  root       3467 jan 20 09:29 update-notifier.list
-rw-r--r-- 1 root  root       3778 déc 13 20:43 update-notifier.md5sums
-rwxr-xr-x 1 root  root        110 déc 13 20:43 update-notifier.postinst
-rwxr-xr-x 1 root  root        121 déc 13 20:43 update-notifier.postrm
-rwxr-xr-x 1 root  root        318 déc 13 20:43 update-notifier.preinst

$ sudo mv /var/lib/dpkg/info/update-notifier.* /tmp/update-notifier/

$ sudo apt update
(...)

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up update-notifier-common (3.192.54.3) ...
Setting up update-notifier (3.192.54.3) ...
Installing new version of config file /etc/xdg/autostart/ubuntu-advantage-notification.desktop ...
Installing new version of config file /etc/xdg/autostart/update-notifier.desktop ...

```

** Description changed:

  ```
  $ sudo apt install ca-certificates-java update-notifier update-notifier-common
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  The following packages will be upgraded:
-   ca-certificates-java update-notifier update-notifier-common
+   ca-certificates-java update-notifier update-notifier-common
  3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  Need to get 260 kB of archives.
  After this operation, 342 kB of additional disk space will be used.
  Get:1 http://ch.archive.ubuntu.com/ubuntu jammy-updates/main amd64 update-notifier amd64 3.192.54.3 [62.5 kB]
  Get:2 http://ch.archive.ubuntu.com/ubuntu jammy-updates/main amd64 update-notifier-common all 3.192.54.3 [185 kB]
  Get:3 http://ch.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates-java all 20190909ubuntu1.1 [12.0 kB]
  Fetched 260 kB in 0s (2’170 kB/s)
  (Reading database ... 466189 files and directories currently installed.)
  Preparing to unpack .../update-notifier_3.192.54.3_amd64.deb ...
  Unpacking update-notifier (3.192.54.3) over (3.192.54) ...
  Preparing to unpack .../update-notifier-common_3.192.54.3_all.deb ...
  Unpacking update-notifier-common (3.192.54.3) over (3.192.54) ...
  Preparing to unpack .../ca-certificates-java_20190909ubuntu1.1_all.deb ...
  Unpacking ca-certificates-java (20190909ubuntu1.1) over (20190909) ...
  Setting up update-notifier-common (3.192.54.3) ...
  Traceback (most recent call last):
-   File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
-     import debian.deb822
+   File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
+     import debian.deb822
  ModuleNotFoundError: No module named 'debian'
  dpkg: error processing package update-notifier-common (--configure):
-  installed update-notifier-common package post-installation script subprocess returned error exit status 1
+  installed update-notifier-common package post-installation script subprocess returned error exit status 1
  dpkg: dependency problems prevent configuration of update-notifier:
-  update-notifier depends on update-notifier-common (= 3.192.54.3); however:
-   Package update-notifier-common is not configured yet.
+  update-notifier depends on update-notifier-common (= 3.192.54.3); however:
+   Package update-notifier-common is not configured yet.
  
  dpkg: error processing package update-notifier (--configure):
-  dependency problems - leaving unconfigured
+  dependency problems - leaving unconfigured
  Setting up ca-certificates-java (20190909ubuntu1.1) ...
  Installing new version of config file /etc/ca-certificates/update.d/jks-keystore ...
  No apport report written because the error message indicates its a followup error from a previous failure.
-                                                                                                           Processing triggers for libglib2.0-0:amd64 (2.72.4-0ubuntu1) ...
+                                                                                                           Processing triggers for libglib2.0-0:amd64 (2.72.4-0ubuntu1) ...
  Processing triggers for libglib2.0-0:i386 (2.72.4-0ubuntu1) ...
  Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ...
  Updating certificates in /etc/ssl/certs...
  0 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...
  
  done.
  done.
  Processing triggers for hicolor-icon-theme (0.17-2) ...
  Errors were encountered while processing:
-  update-notifier-common
-  update-notifier
+  update-notifier-common
+  update-notifier
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  ```
  
- 
- On Ubuntu 22.04.1 LTS
+ On Ubuntu 22.04.1 LTS (5.15.0-56-generic x86_64 GNU/Linux)
  
  ProblemType: Package
  DistroRelease: Ubuntu 22.04
  Package: update-notifier-common 3.192.54.3
  ProcVersionSignature: Ubuntu 5.15.0-56.62-generic 5.15.64
  Uname: Linux 5.15.0-56-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.3
  AptOrdering:
-  update-notifier:amd64: Install
-  update-notifier-common:amd64: Install
-  ca-certificates-java:amd64: Install
-  NULL: ConfigurePending
+  update-notifier:amd64: Install
+  update-notifier-common:amd64: Install
+  ca-certificates-java:amd64: Install
+  NULL: ConfigurePending
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Fri Jan 20 09:29:22 2023
  ErrorMessage: installed update-notifier-common package post-installation script subprocess returned error exit status 1
  InstallationDate: Installed on 2022-01-01 (383 days ago)
  InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20211230)
  PackageArchitecture: all
  Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
  PythonDetails: N/A
  RebootRequiredPkgs: Error: path contained symlinks.
  RelatedPackageVersions:
-  dpkg 1.21.1ubuntu2.1
-  apt  2.4.8
+  dpkg 1.21.1ubuntu2.1
+  apt  2.4.8
  SourcePackage: update-notifier
  Title: package update-notifier-common 3.192.54.3 failed to install/upgrade: installed update-notifier-common package post-installation script subprocess returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Title:
  package update-notifier-common 3.192.54.3 failed to install/upgrade:
  installed update-notifier-common package post-installation script
  subprocess returned error exit status 1

Status in update-notifier package in Ubuntu:
  New

Bug description:
  ```
  $ sudo apt install ca-certificates-java update-notifier update-notifier-common
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  The following packages will be upgraded:
    ca-certificates-java update-notifier update-notifier-common
  3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  Need to get 260 kB of archives.
  After this operation, 342 kB of additional disk space will be used.
  Get:1 http://ch.archive.ubuntu.com/ubuntu jammy-updates/main amd64 update-notifier amd64 3.192.54.3 [62.5 kB]
  Get:2 http://ch.archive.ubuntu.com/ubuntu jammy-updates/main amd64 update-notifier-common all 3.192.54.3 [185 kB]
  Get:3 http://ch.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates-java all 20190909ubuntu1.1 [12.0 kB]
  Fetched 260 kB in 0s (2’170 kB/s)
  (Reading database ... 466189 files and directories currently installed.)
  Preparing to unpack .../update-notifier_3.192.54.3_amd64.deb ...
  Unpacking update-notifier (3.192.54.3) over (3.192.54) ...
  Preparing to unpack .../update-notifier-common_3.192.54.3_all.deb ...
  Unpacking update-notifier-common (3.192.54.3) over (3.192.54) ...
  Preparing to unpack .../ca-certificates-java_20190909ubuntu1.1_all.deb ...
  Unpacking ca-certificates-java (20190909ubuntu1.1) over (20190909) ...
  Setting up update-notifier-common (3.192.54.3) ...
  Traceback (most recent call last):
    File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
      import debian.deb822
  ModuleNotFoundError: No module named 'debian'
  dpkg: error processing package update-notifier-common (--configure):
   installed update-notifier-common package post-installation script subprocess returned error exit status 1
  dpkg: dependency problems prevent configuration of update-notifier:
   update-notifier depends on update-notifier-common (= 3.192.54.3); however:
    Package update-notifier-common is not configured yet.

  dpkg: error processing package update-notifier (--configure):
   dependency problems - leaving unconfigured
  Setting up ca-certificates-java (20190909ubuntu1.1) ...
  Installing new version of config file /etc/ca-certificates/update.d/jks-keystore ...
  No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                            Processing triggers for libglib2.0-0:amd64 (2.72.4-0ubuntu1) ...
  Processing triggers for libglib2.0-0:i386 (2.72.4-0ubuntu1) ...
  Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ...
  Updating certificates in /etc/ssl/certs...
  0 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...

  done.
  done.
  Processing triggers for hicolor-icon-theme (0.17-2) ...
  Errors were encountered while processing:
   update-notifier-common
   update-notifier
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  ```

  On Ubuntu 22.04.1 LTS (5.15.0-56-generic x86_64 GNU/Linux)

  ProblemType: Package
  DistroRelease: Ubuntu 22.04
  Package: update-notifier-common 3.192.54.3
  ProcVersionSignature: Ubuntu 5.15.0-56.62-generic 5.15.64
  Uname: Linux 5.15.0-56-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.3
  AptOrdering:
   update-notifier:amd64: Install
   update-notifier-common:amd64: Install
   ca-certificates-java:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Fri Jan 20 09:29:22 2023
  ErrorMessage: installed update-notifier-common package post-installation script subprocess returned error exit status 1
  InstallationDate: Installed on 2022-01-01 (383 days ago)
  InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20211230)
  PackageArchitecture: all
  Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
  PythonDetails: N/A
  RebootRequiredPkgs: Error: path contained symlinks.
  RelatedPackageVersions:
   dpkg 1.21.1ubuntu2.1
   apt  2.4.8
  SourcePackage: update-notifier
  Title: package update-notifier-common 3.192.54.3 failed to install/upgrade: installed update-notifier-common package post-installation script subprocess returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/2003411/+subscriptions




More information about the foundations-bugs mailing list