update-notifier-common: ModuleNotFoundError: No module named 'debian'
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| update-notifier (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Bug Description
```
$ sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
ca-certificat
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://
Get:2 http://
Get:3 http://
Fetched 260 kB in 0s (2’170 kB/s)
(Reading database ... 466189 files and directories currently installed.)
Preparing to unpack .../update-
Unpacking update-notifier (3.192.54.3) over (3.192.54) ...
Preparing to unpack .../update-
Unpacking update-
Preparing to unpack .../ca-
Unpacking ca-certificates
Setting up update-
Traceback (most recent call last):
File "/usr/lib/
import debian.deb822
ModuleNotFoundE
dpkg: error processing package update-
installed update-
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on update-
Package update-
dpkg: error processing package update-notifier (--configure):
dependency problems - leaving unconfigured
Setting up ca-certificates
Installing new version of config file /etc/ca-
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libglib2.0-0:i386 (2.72.4-0ubuntu1) ...
Processing triggers for ca-certificates (20211016ubuntu
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-
done.
done.
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
update-
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-
ProcVersionSign
Uname: Linux 5.15.0-56-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
AptOrdering:
update-
update-
ca-certificate
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Fri Jan 20 09:29:22 2023
ErrorMessage: installed update-
InstallationDate: Installed on 2022-01-01 (383 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20211230)
PackageArchitec
Python3Details: /usr/bin/
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.21.1ubuntu2.1
apt 2.4.8
SourcePackage: update-notifier
Title: package update-
UpgradeStatus: No upgrade log present (probably fresh install)

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):
``` notifier- common. conffiles notifier- common. list notifier- common. md5sums notifier- common. postinst notifier- common. postrm notifier- common. preinst notifier- common. prerm notifier- common. triggers notifier. conffiles notifier. list notifier. md5sums notifier. postinst notifier. postrm notifier. preinst
$ sudo ls -l /var/lib/dpkg/info | grep -i update-notifier
-rw-r--r-- 1 root root 279 déc 13 20:43 update-
-rw-r--r-- 1 root root 16498 jan 20 09:29 update-
-rw-r--r-- 1 root root 13304 déc 13 20:43 update-
-rwxr-xr-x 1 root root 3597 déc 13 20:43 update-
-rwxr-xr-x 1 root root 1166 déc 13 20:43 update-
-rwxr-xr-x 1 root root 384 déc 13 20:43 update-
-rwxr-xr-x 1 root root 733 déc 13 20:43 update-
-rw-r--r-- 1 root root 51 déc 13 20:43 update-
-rw-r--r-- 1 root root 100 déc 13 20:43 update-
-rw-r--r-- 1 root root 3467 jan 20 09:29 update-
-rw-r--r-- 1 root root 3778 déc 13 20:43 update-
-rwxr-xr-x 1 root root 110 déc 13 20:43 update-
-rwxr-xr-x 1 root root 121 déc 13 20:43 update-
-rwxr-xr-x 1 root root 318 déc 13 20:43 update-
$ sudo mv /var/lib/ dpkg/info/ update- notifier. * /tmp/update- notifier/
$ sudo apt update
(...)
$ sudo apt upgrade notifier- common (3.192.54.3) ... autostart/ ubuntu- advantage- notification. desktop ... autostart/ update- notifier. desktop ...
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-
Setting up update-notifier (3.192.54.3) ...
Installing new version of config file /etc/xdg/
Installing new version of config file /etc/xdg/
```