卸载python2.7后sudo aptget更新不起作用

2024-06-25 22:46:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我用命令从我的ubuntu16.04系统上卸载了python2.7 sudo apt-get remove python2.7但执行此操作后,sudo apt-get update和{}返回错误。而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)

Tags: 命令get系统错误ipythonsudoaptupdate
1条回答
网友
1楼 · 发布于 2024-06-25 22:46:34

卸载任何软件包后,请执行

sudo apt-get autoremove

这将删除与已卸载的程序包关联的所有程序包。这样,如果你想再次安装它,它将不会给出任何错误,并将重新安装一切。在

相关问题 更多 >