我无法配置或卸载 python3.8 minimal,因此我将其堆放在了这里。请尽快提供解决方案

我无法配置或卸载 python3.8 minimal,因此我将其堆放在了这里。请尽快提供解决方案
$ sudo apt-get install --reinstall python3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 45 not upgraded.
13 not fully installed or removed.
Need to get 0 B/47.6 kB of archives.
After this operation, 0 B of additional disk space will be used.
Setting up python3.8-minimal (3.8.10-0ubuntu1~20.04.9) ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/usr/bin/python3.8'
  isolated = 0
  environment = 0
  user site = 1
  import site = 0
  sys._base_executable = '/usr/bin/python3.8'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.executable = '/usr/bin/python3.8'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/lib/python38.zip',
    '/usr/lib/python3.8',
    '/usr/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f658b4c9740 (most recent call first):
<no Python frame>
dpkg: error processing package python3.8-minimal (--configure):
 installed python3.8-minimal package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
 python3-minimal depends on python3.8-minimal (>= 3.8.2-1~); however:
  Package python3.8-minimal is not configured yet.

dpkg: error processing package python3-minimal (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 python3.8-minimal
 python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
suraj@suraj:~/ti-processor-sdk-linux-am62xx-evm-09.02.01.09/bin/uart_uniflash$ sudo apt-get install --reinstall python3.8-minimal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 45 not upgraded.
13 not fully installed or removed.
Need to get 0 B/47.6 kB of archives.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for python3.8-minimal:amd64

相关内容