【发布时间】:2022-11-17 13:52:36
【问题描述】:
我刚刚更新到 pop os 22.04 lts,现在它不仅无法检测到我计算机上的任何输出和输入设备,而且我也无法运行任何 apt-get 命令,每当我尝试运行它时,我都会收到错误消息:
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:
pop-default-settings
E: Sub-process /usr/bin/dpkg returned an error code (1)
/etc/apt/sources.list.d/pop-os-apps.sources:URIs: http://apt.pop-os.org/proprietary
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/__init__.py", line 24, in <module>
from .add import Add
File "/usr/lib/python3/dist-packages/repolib/command/add.py", line 23, in <module>
from httplib2.error import ServerNotFoundError
我试过跑步pip 安装 httplib2但后来我明白了
Command 'pip' not found, but can be installed with: sudo apt install python3-pip
如果我尝试运行 sudo apt install python3-pip 我会收到 httplib2 错误。
python3 --version 返回 Python 3.10.6
【问题讨论】:
标签: python linux pip apt-get httplib2