如何安全地删除 Ubuntu 18.04 上的“额外”python?

如何安全地删除 Ubuntu 18.04 上的“额外”python?

所以我安装了一些额外的 python 版本,我想知道是否有一种安全的方法可以只保留 python2.7 和 python3.8 以保持清洁而不会对系统造成任何损坏。

在此处输入图片描述

例如,根据版本,apt-get remove列出了很多我认为实际上不应该删除的额外内容。我通过包管理器安装了除 python3.8(已完成源文件构建)之外的所有版本。

删除 python3.6

The following packages will be REMOVED:
  apparmor apport apport-gtk aptdaemon apturl apturl-common firefox foomatic-db-compressed-ppds gdm3 gedit gedit-common gir1.2-ibus-1.0
  gnome-control-center gnome-menus gnome-online-accounts gnome-shell gnome-software gnome-software-plugin-snap gnome-terminal hplip hplip-data ibus
  ibus-table language-selector-common language-selector-gnome lsb-release nautilus-extension-gnome-terminal nautilus-share nvidia-prime
  nvidia-settings openprinting-ppds orca printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-postscript-hp
  printer-driver-ptouch printer-driver-pxljr python3 python3-apport python3-apt python3-aptdaemon python3-aptdaemon.gtk3widgets python3-asn1crypto
  python3-brlapi python3-cairo python3-certifi python3-cffi-backend python3-chardet python3-crypto python3-cryptography python3-cups
  python3-cupshelpers python3-dateutil python3-dbus python3-debconf python3-debian python3-defer python3-distro-info python3-distupgrade python3-gi
  python3-gi-cairo python3-httplib2 python3-idna python3-keyring python3-keyrings.alt python3-launchpadlib python3-lazr.restfulclient
  python3-lazr.uri python3-louis python3-macaroonbakery python3-mako python3-markupsafe python3-nacl python3-oauth python3-olefile python3-pexpect
  python3-pil python3-pkg-resources python3-problem-report python3-protobuf python3-ptyprocess python3-pyatspi python3-pymacaroons python3-renderpm
  python3-reportlab python3-reportlab-accel python3-requests python3-requests-unixsocket python3-rfc3339 python3-secretstorage python3-simplejson
  python3-six python3-software-properties python3-speechd python3-systemd python3-tz python3-update-manager python3-urllib3 python3-wadllib
  python3-xdg python3-xkit python3-yaml python3-zope.interface python3.6 rhythmbox-plugin-alternative-toolbar rhythmbox-plugins
  screen-resolution-extra snapd software-properties-common software-properties-gtk system-config-printer system-config-printer-common
  system-config-printer-udev totem-plugins ubuntu-desktop ubuntu-drivers-common ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
  ubuntu-session ubuntu-software ubuntu-system-service unattended-upgrades update-manager update-manager-core update-notifier update-notifier-common
  usb-creator-common usb-creator-gtk xorg xserver-xorg
The following packages will be REMOVED:
  python python-all python-all-dev python-asn1crypto python-cffi-backend python-crypto python-cryptography python-dbus python-dev python-enum34
  python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-pip python-pkg-resources python-secretstorage python-setuptools
  python-six python-wheel python-xdg python2.7 python2.7-dev

我之前已经删除了其中两个,这对系统非常有害,因为我不得不重新安装许多核心功能。提前谢谢你。

相关内容