Python 2 può essere rimosso in modo sicuro da Ubuntu 14.04?


8

Ho aggiornato il mio PC da Ubuntu 13.10 a Ubuntu 14.04.

Ho sentito che Ubuntu 14.04 non include Python2, ma il mio sistema Ubuntu 14.04 ha ancora installato Python 2.

Posso rimuovere Python 2.7.6 dal mio PC? Certo, so che alcuni software potrebbero dipendere da Python2.


6
Hai sentito male, 14.04 include python2 e rimuoverlo è un problema invitante.
jobin

Risposte:


15
  • 14.04 ha python 2.
  • Non è possibile rimuovere python 2 senza rimuovere tutti i pacchetti che dipendono da python 2. Questo è probabilmente superiore al 50%.

Dai un'occhiata a questo elenco:

  The following packages were automatically installed and are no longer required:

  accountsservice-ubuntu-schemas accountsservice-ubuntu-touch-schemas
  gnome-control-center-data gnome-settings-daemon
  gsettings-ubuntu-touch-schemas indicator-network libappindicator1
  libbit-vector-perl libbonobo2-0 libbonobo2-common libbonoboui2-common
  libcarp-clan-perl libclass-data-inheritable-perl
  libclass-method-modifiers-perl libcommon-sense-perl
  libcrypt-openssl-bignum-perl libcrypt-openssl-rsa-perl libdata-random-perl
  libdate-calc-perl libdate-calc-xs-perl libextutils-depends-perl
  libextutils-pkgconfig-perl libfile-which-perl libgd-perl libglade2-0
  libgnome2-canvas-perl libgnome2-gconf-perl libgnome2-wnck-perl
  libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-common
  libgoa-backend-1.0-1 libgoo-canvas-perl libgoocanvas-common libgoocanvas3
  libgtk2-appindicator-perl libgtk2-imageview-perl libgtk2-unique-perl
  libgtkimageview0 libhttp-server-simple-perl libidl-common libidl0
  libindicator7 libjson-perl libjson-xs-perl libkeybinder0 libmouse-perl
  libnet-dbus-perl libnet-dropbox-api-perl libnet-oauth-perl libofono-qt1
  libonline-accounts-client1 liborbit-2-0 liborbit2 libpath-class-perl
  libproc-processtable-perl libproc-simple-perl libqgsttools-p1
  libqt5multimedia5-plugins libqt5multimediaquick-p5 libqt5multimediawidgets5
  libqt5systeminfo5 libsort-naturally-perl libsystemsettings1
  libtie-ixhash-perl libubuntu-download-manager-client0
  libubuntu-download-manager-common0 libubuntu-download-manager-priv0
  libubuntuoneauth-2.0-0 libunique-1.0-0 libwww-mechanize-perl
  libx11-protocol-perl libxml-twig-perl libxml-xpathengine-perl
  linux-headers-3.13.0-18 linux-headers-3.13.0-18-generic
  linux-image-3.13.0-18-generic linux-image-extra-3.13.0-18-generic
  packagekit-tools perlmagick python3-gnupg
  qtdeclarative5-folderlistmodel-plugin qtdeclarative5-qtmultimedia-plugin
  qtdeclarative5-systeminfo-plugin qtdeclarative5-ubuntuone1.0 suru-icon-theme
  system-image-common system-image-dbus ubuntu-download-manager
  ubuntu-keyboard-data ubuntu-mobile-icons ubuntu-purchase-service
  ubuntu-touch-sounds ubuntuone-credentials-common

  ...

  The following packages will be REMOVED:
  aisleriot apt-xapian-index apturl checkbox-gui compiz compiz-gnome
  compizconfig-settings-manager deja-dup deja-dup-backend-gvfs
  deja-dup-backend-ubuntuone duplicity flashplugin-installer gconf2 gedit
  gnome-terminal gnome-terminal-data gnome-user-share gvfs-backends hplip
  hplip-data ibus ibus-pinyin ibus-table indicator-bluetooth
  landscape-client-ui-install libbonoboui2-0 libgnome2-0 libgnome2-bin
  libgnome2-common libgnome2-perl libgnome2-vfs-perl libgnomeui-0
  libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libpurple-bin
  libreoffice-gnome libsmbclient nautilus-share oneconf oneconf-common
  plainbox-provider-checkbox printer-driver-postscript-hp
  printer-driver-sag-gdi pybootchartgui python python-apt python-aptdaemon
  python-aptdaemon.gtk3widgets python-cairo python-chardet python-colorama
  python-commandnotfound python-compizconfig python-configglue python-crypto
  python-cssselect python-cups python-cupshelpers python-dbus python-debian
  python-debtagshw python-defer python-dirspec python-distlib python-gconf
  python-gdbm python-gi python-gi-cairo python-glade2 python-gnomekeyring
  python-gobject python-gobject-2 python-gtk2 python-html5lib python-httplib2
  python-ibus python-imaging python-keybinder python-ldb python-libxml2
  python-lockfile python-lxml python-notify python-ntdb python-oauthlib
  python-oneconf python-openssl python-pam python-pexpect python-pil
  python-pip python-piston-mini-client python-pkg-resources python-protobuf
  python-pycurl python-pyinotify python-pyquery python-qt4 python-qt4-dbus
  python-renderpm python-reportlab python-reportlab-accel python-requests
  python-samba python-serial python-setuptools python-sip python-six
  python-smbc python-support python-talloc python-tdb python-twisted-bin
  python-twisted-core python-twisted-names python-twisted-web
  python-ubuntu-sso-client python-ubuntuone-client
  python-ubuntuone-control-panel python-ubuntuone-storageprotocol
  python-urllib3 python-webob python-xapian python-xdg python-zeitgeist
  python-zope.interface python3-oneconf rhythmbox rhythmbox-mozilla
  rhythmbox-plugin-cdrecorder rhythmbox-plugin-magnatune
  rhythmbox-plugin-zeitgeist rhythmbox-plugins rhythmbox-ubuntuone
  samba-common-bin samba-libs sessioninstaller shutter smbclient
  software-center software-center-aptdaemon-plugins streamtuner2
  system-config-printer-common system-config-printer-gnome
  system-config-printer-udev totem totem-mozilla totem-plugins
  transmission-gtk ubuntu-desktop ubuntu-release-upgrader-gtk
  ubuntu-sso-client ubuntu-sso-client-qt ubuntu-system-service
  ubuntuone-client ubuntuone-control-panel unity unity-control-center
  unity-control-center-signon unity-tweak-tool unity-webapps-common
  update-manager update-notifier update-notifier-common
  webaccounts-extension-common xdiagnose xul-ext-webaccounts zeitgeist

  ...

  0 upgraded, 71 newly installed, 169 to remove and 4 not upgraded.

Diciamo che rimuovi python2.7. Ciò ripristinerà il desktop:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop

1
Può rimuoverlo, semplicemente non dovrebbe.
Alex,

Ho una domanda interessante nella mia mente Se la rimozione di Python 2 dall'installazione di Base Ubuntu danneggerà il sistema stesso o rimuoverà solo alcuni software della GUI?
kuldeep.kamboj,

@ kuldeep.kamboj questa lista aiuta a spiegarlo? >: - D
Rinzwind

Sì, l'elenco mostra tutta la storia. Il sistema diventerà corrotto e inutilizzabile.
kuldeep.kamboj,
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.