apt-get ERROR

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
windanchaos
帖子: 3
注册时间: 2009-10-31 18:22

apt-get ERROR

#1

帖子 windanchaos » 2016-11-06 21:35

代码: 全选

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-libxml2 is already the newest version (2.9.3+dfsg1-1ubuntu0.1).
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python-libxml2 (2.9.3+dfsg1-1ubuntu0.1) ...
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 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-libxml2 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-lzma (0.5.3-3) ...
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 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-lzma (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-sqlite (1.0.1-12) ...
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 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-sqlite (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-pycurl (7.43.0-1ubuntu1) ...
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 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-pycurl (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of python-urlgrabber:
 python-urlgrabber depends on python-pycurl; however:
  Package python-pycurl is not configured yet.

dpkg: error processing package python-urlgrabber (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Setting up python-rpm (4.12.0.1+dfsg1-3build3) ...
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 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-rpm (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up python-sqlitecachec (1.1.4-1) ...
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 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-sqlitecachec (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 python-libxml2
 python-lzma
 python-sqlite
 python-pycurl
 python-urlgrabber
 python-rpm
 python-sqlitecachec
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get autoremove
apt-get install

ERROR the same like ,who can help?
windanchaos
帖子: 3
注册时间: 2009-10-31 18:22

Re: apt-get ERROR

#2

帖子 windanchaos » 2016-11-06 22:13

because I changed ln-s /usr/bin/python to python3.5
I guess the "apt-get" is based on python2.7,so there is somethin wrong with it

ln -s /usr/bin/python to python2.7 will get normal back :Haha
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: apt-get ERROR

#3

帖子 poloshiao » 2016-11-07 12:30

提問問題
最好先說明 Ubuntu 版本 如果能同時註明登入桌面更好
因為 同一個問題 不同 Ubuntu 版本 建議可能不同
回复