我使用命令从我的Ubuntu 16.04系统中卸载了python2.7
sudo apt-get remove python2.7
但在执行此操作后sudo apt-get update
和sudo apt-get install
会返回错误。虽然仍然安装python 2.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)
答案 0 :(得分:0)
卸载任何软件包之后,执行一次
sudo apt-get autoremove
将删除与您卸载的软件包关联的所有软件包。因此,如果您希望再次安装它,它不会给出任何错误,并会重新安装所有内容。