尝试安装 Cassandra 时出现故障

尝试安装 Cassandra 时出现故障

尝试在 Ubuntu 13.10 上安装 Cassandra 时,安装崩溃了,现在我被损坏的 (?) apt-get 困住了。

以下是 apt-get install -f 的输出:

    Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 414 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up cassandra (2.0.9) ...
vm.max_map_count = 1048575
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 12, in <module>
    from optparse import OptionParser
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 19, in <module>
    import functools
  File "/usr/local/lib/python2.7/dist-packages/functools.py", line 72, in <module>
    globals()['c_%s' % x] = globals()[x] = getattr(_functools, x)
AttributeError: 'module' object has no attribute 'compose'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 64, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 25, in <module>
    from urllib import urlopen
  File "/usr/lib/python2.7/urllib.py", line 26, in <module>
    import socket
  File "/usr/lib/python2.7/socket.py", line 49, in <module>
    from functools import partial
  File "/usr/local/lib/python2.7/dist-packages/functools.py", line 72, in <module>
    globals()['c_%s' % x] = globals()[x] = getattr(_functools, x)
AttributeError: 'module' object has no attribute 'compose'

Original exception was:
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 12, in <module>
    from optparse import OptionParser
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 19, in <module>
    import functools
  File "/usr/local/lib/python2.7/dist-packages/functools.py", line 72, in <module>
    globals()['c_%s' % x] = globals()[x] = getattr(_functools, x)
AttributeError: 'module' object has no attribute 'compose'
dpkg: error processing cassandra (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 cassandra
E: Sub-process /usr/bin/dpkg returned an error code (1)

我运行的任何 apt-get 命令都会输出几乎相同的结果......

相关内容