Linux apt-get upgrade 出现缺 cPickle,debconf 错误

phpnew · 2013年07月26日 · 3191 次阅读

cat /etc/issue Debian GNU/Linux 6.0 \n \l

apt-get update 正常

apt-get upgrade 出现问题 ```bash File "/usr/bin/pycompile", line 38, in from debpython.pydist import PUBLIC_DIR_RE File "/usr/share/python/debpython/pydist.py", line 29, in from debpython.tools import memoize File "/usr/share/python/debpython/tools.py", line 25, in from cPickle import dumps ImportError: No module named 'cPickle' dpkg: error processing debconf (--configure): subprocess installed post-installation script returned error exit status 1 configured to not write apport reports Errors were encountered while processing: debconf E: Sub-process /usr/bin/dpkg returned an error code (1)


python -v发现默认是3版本的
python下载2.7.5源码编译
然后 python -v 
```bash
Python 2.7.5 (default, Jul 26 2013, 04:26:24) 

但是问题依然同上

apt-get -f install 同上上

ls -l /usr/bin/python
lrwxrwxrwx 1 root root 30 Apr 29 14:01 /usr/bin/python -> /usr/local/python3/bin/python3
dpkg -l | grep python
rc  python                              2.6.6-3+squeeze7             interactive high-level object-oriented language (default version)
ii  python-apt                          0.7.100.1+squeeze1           Python interface to libapt-pkg
ii  python-apt-common                   0.7.100.1+squeeze1           Python interface to libapt-pkg (locales)
ii  python-central                      0.6.16+nmu1                  register and build utility for Python packages
ii  python-minimal                      2.6.6-3+squeeze7             minimal subset of the Python language (default version)
ii  python-reportbug                    4.12.6                       Python modules for interacting with bug tracking systems
ii  python-support                      1.0.10                       automated rebuilding support for Python modules
ii  python2.6                           2.6.6-8+b1                   An interactive high-level object-oriented language (version 2.6)
ii  python2.6-minimal                   2.6.6-8+b1                   A minimal subset of the Python language (version 2.6)

google 半天,没能解决,特来请教 该什么办

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号