每次运行 apt-get install 时都会发生此错误。我不确定是什么原因导致的,除非我安装了新版本的 python3。完整的跟踪如下:
Setting up apt-xapian-index (0.46ubuntu1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 36, in <module>
log = logging.getLogger(__name__)
AttributeError: 'module' object has no attribute 'getLogger'
dpkg: error processing package apt-xapian-index (--configure):