我使用sudo apt-get remove python2.7命令从我的Ubuntu16.04系统上卸载了python2.7,但是在这样做之后,sudo apt-get update和sudo apt-get install返回错误。而python2.7仍然被安装,因为执行python2.7会打开Python2.7解释器。我想我删除了重要的python包,但我不确定。
Errors were encountered while processing:
python-pymysql
python-xdg
deluge-common
deluge-gtk
gimp
gnome-tweak-tool
gyp
inkscape
python-simplegeneric
ipython
python-pycurl
python-tornado
python-zmq
ipython-notebook
python-antlr
python-appindicator
python-bs4
python-cvxopt
python-six
python-html5lib
python-imaging
python-lxml
python-pyparsing
python-tz
python-matplotlib
python-nose
python-openpyxl
python-pandas
python-pil.imagetk:amd64
python-pip
python-ptyprocess
python-py
python-pyasn1
python-pyasn1-modules
python-pygame
python-pyglet
python-pytest
python-serial
python-setuptools
python-simplejson
python-sklearn
python-sympy
python-tables
python-urwid
python-wheel
python-xlrd
python-xlwt
python-statsmodels
python-zope.interface
trash-cli
xia
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)发布于 2018-01-24 13:40:44
卸载任何软件包后,执行以下操作
sudo apt-get autoremove这将删除与您已卸载的软件包相关联的所有软件包。因此,如果您希望重新安装它,它将不会给出任何错误,并将重新安装所有内容。
https://stackoverflow.com/questions/48415403
复制相似问题