Technology Reviews

sudo apt update broken


sudo apt update
Hit:1 jammy InRelease
Get:2 jammy-updates InRelease [114 kB]
Get:3 jammy-backports InRelease [99.8 kB]
Get:4 jammy-security InRelease [110 kB]
Get:5 jammy-updates/main arm64 Packages [675 kB]
Get:6 jammy-updates/restricted arm64 Packages [175 kB]
Get:7 jammy-updates/universe arm64 Packages [649 kB]
Fetched 1823 kB in 4s (468 kB/s) 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' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/usr/bin/python3' sys.base_prefix = '/usr' sys.base_exec_prefix = '/usr' sys.platlibdir = 'lib' sys.executable = '/usr/bin/python3' sys.prefix = '/usr' sys.exec_prefix = '/usr' sys.path = [ '/usr/lib/', '/usr/lib/python3.10', '/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 0x0000ffff8cc0a420 (most recent call first): <no Python frame>
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code