You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Pop!_OS 22.04执行apt-get命令遇httplib2模块缺失错误求助

Pop!_OS 22.04 LTS升级后问题汇总
  • 系统无法检测到任何输入输出设备
  • 执行apt相关命令时触发模块错误,具体报错信息如下:
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 install httplib2,系统提示:
Command 'pip' not found, but can be installed with: sudo apt install python3-pip
  • 执行sudo apt install python3-pip,再次触发上述httplib2.error模块找不到的错误

当前系统Python版本:3.10.6

内容的提问来源于stack exchange,提问作者Gabriel Costa

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.12 13:26:00