python – Getting httplib2 error when running apt-get commands on Pop!_OS 22.04 – Stack Overflow

I just updated to pop os 22.04 lts and now not only it can’t detect any output and input devices on my computer but I also can’t run any apt-get commands, whenever I try to run it I receive the error:

from httplib2.error import ServerNotFoundError
ModuleNotFoundError: No module named 'httplib2.error'
dpkg: error processing package pop-default-settings (--configure):
 installed pop-default-settings package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Traceback (most recent call last):
  File "/usr/bin/apt-manage", line 32, in <module>
    from repolib import command
  File "/usr/lib/python3/dist-packages/repolib/command/", line 24, in <module>
    from .add import Add
  File "/usr/lib/python3/dist-packages/repolib/command/", line 23, in <module>
    from httplib2.error import ServerNotFoundError

I tried running pip install httplib2 but then I get

Command 'pip' not found, but can be installed with: sudo apt install python3-pip

If I try to run sudo apt install python3-pip I get the httplib2 error.

python3 –version returns Python 3.10.6

Read more here: Source link