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

Sebastien Bacher seb128 at ubuntu.com
Thu Feb 28 10:45:17 UTC 2019


Thank you for your bug report, what's the output of
 $ dpkg -l | grep chardet:
and
$ python3 -c 'import chardet'


** Changed in: update-notifier (Ubuntu)
   Importance: Undecided => Low

** Changed in: update-notifier (Ubuntu)
       Status: New => Incomplete

-- 
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:
  Incomplete

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