首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sudo apt-get update在卸载python2.7后不起作用

sudo apt-get update在卸载python2.7后不起作用
EN

Stack Overflow用户
提问于 2018-01-24 13:31:12
回答 1查看 376关注 0票数 0

我使用sudo apt-get remove python2.7命令从我的Ubuntu16.04系统上卸载了python2.7,但是在这样做之后,sudo apt-get updatesudo apt-get install返回错误。而python2.7仍然被安装,因为执行python2.7会打开Python2.7解释器。我想我删除了重要的python包,但我不确定。

代码语言:javascript
复制
 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)
EN

回答 1

Stack Overflow用户

发布于 2018-01-24 13:40:44

卸载任何软件包后,执行以下操作

代码语言:javascript
复制
sudo apt-get autoremove

这将删除与您已卸载的软件包相关联的所有软件包。因此,如果您希望重新安装它,它将不会给出任何错误,并将重新安装所有内容。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48415403

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档