[Bug 1817988] [NEW] ImportError: No module named 'chardet'

aji 1817988 at bugs.launchpad.net
Thu Feb 28 02:38:09 UTC 2019


Public bug reported:

$ sudo /etc/init.d/networking restart ; sudo apt-get update ; sudo apt-
get upgrade ; sudo apt-get dist-upgrade; sudo apt autoremove ;

...
...

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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.168.9) ...
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
    import debian.deb822
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 38, in <module>
    import chardet
ImportError: No module named 'chardet'
dpkg: error processing package update-notifier-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 update-notifier-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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.168.9) ...
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
    import debian.deb822
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 38, in <module>
    import chardet
ImportError: No module named 'chardet'
dpkg: error processing package update-notifier-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 update-notifier-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up update-notifier-common (3.168.9) ...
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
    import debian.deb822
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 38, in <module>
    import chardet
ImportError: No module named 'chardet'
dpkg: error processing package update-notifier-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 update-notifier-common

** Affects: update-notifier (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1817988

Title:
  ImportError: No module named 'chardet'

Status in update-notifier package in Ubuntu:
  New

Bug description:
  $ sudo /etc/init.d/networking restart ; sudo apt-get update ; sudo
  apt-get upgrade ; sudo apt-get dist-upgrade; sudo apt autoremove ;

  ...
  ...

  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Calculating upgrade... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  1 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.168.9) ...
  Traceback (most recent call last):
    File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
      import debian.deb822
    File "/usr/lib/python3/dist-packages/debian/deb822.py", line 38, in <module>
      import chardet
  ImportError: No module named 'chardet'
  dpkg: error processing package update-notifier-common (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   update-notifier-common
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Calculating upgrade... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  1 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.168.9) ...
  Traceback (most recent call last):
    File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
      import debian.deb822
    File "/usr/lib/python3/dist-packages/debian/deb822.py", line 38, in <module>
      import chardet
  ImportError: No module named 'chardet'
  dpkg: error processing package update-notifier-common (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   update-notifier-common
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  1 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Setting up update-notifier-common (3.168.9) ...
  Traceback (most recent call last):
    File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
      import debian.deb822
    File "/usr/lib/python3/dist-packages/debian/deb822.py", line 38, in <module>
      import chardet
  ImportError: No module named 'chardet'
  dpkg: error processing package update-notifier-common (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   update-notifier-common

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



More information about the foundations-bugs mailing list