[Bug 2003411] Re: update-notifier-common: ModuleNotFoundError: No module named 'debian'

Swiss Knight 2003411 at bugs.launchpad.net
Thu Jan 26 11:51:46 UTC 2023


Hmm, interesting...

But I didn't remember changing Python3 itself:

```
$ ls -l /usr/local/bin/python*
ls: cannot access '/usr/local/bin/python*': No such file or directory
```

and:
```
$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root      10 aug 18 12:39 /usr/bin/python3 -> python3.10
-rwxr-xr-x 1 root root 5921160 nov 14 17:10 /usr/bin/python3.10
lrwxrwxrwx 1 root root      34 nov 14 17:10 /usr/bin/python3.10-config -> x86_64-linux-gnu-python3.10-config
lrwxrwxrwx 1 root root      17 aug 18 12:39 /usr/bin/python3-config -> python3.10-config
-rwxr-xr-x 1 root root     960 dec 23  2020 /usr/bin/python3-futurize
-rwxr-xr-x 1 root root     964 dec 23  2020 /usr/bin/python3-pasteurize
-rwxr-xr-x 1 root root     977 dec 24  2021 /usr/bin/python-dotenv
```

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

Title:
  update-notifier-common: ModuleNotFoundError: No module named 'debian'

Status in update-notifier package in Ubuntu:
  Invalid

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