解决方案
要修复此错误,将 /usr/bin/apt-listchanges
中的默认解释器”更改为Python 2。
查看可用的python版本:
# ls /usr/bin/python* /usr/bin/python /usr/bin/python2 /usr/bin/python2.7 /usr/bin/python3 /usr/bin/python3.4 /usr/bin/python3.4m /usr/bin/python3m
修改/usr/bin/apt-listchanges
脚本
将 #!/usr/bin/python 改成 #!/usr/bin/python2.7
问题
在Debian Linux上使用apt-get
套件工具时,报错:
Traceback (most recent call last): File "/usr/bin/apt-listchanges", line 29, in import anydbm ImportError: No module named 'anydbm'
上述错误可能是因为python版本引起的:
# python -V Python 3.4.2
日期:2020-07-07 20:56:40 来源:oir作者:oir