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

l-luk 1817988 at bugs.launchpad.net
Thu May 27 21:32:55 UTC 2021


The problem is that there are multiple versions of Python 3, you need to
fix the symbolic link /usr/bin/python3 to the latest installed version
of Python3

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

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