How to Install and Uninstall python2.7 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 15,2024

1. Install "python2.7" package

This guide covers the steps necessary to install python2.7 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python2.7

2. Uninstall "python2.7" package

Please follow the steps below to uninstall python2.7 on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python2.7 $ sudo apt autoclean && sudo apt autoremove

3. Information about the python2.7 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python2.7
Architecture: amd64
Version: 2.7.12-1ubuntu0~16.04.18
Multi-Arch: allowed
Priority: optional
Section: python
Origin: Ubuntu
Maintainer: Ubuntu Core Developers
Original-Maintainer: Matthias Klose
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 351
Depends: python2.7-minimal (= 2.7.12-1ubuntu0~16.04.18), libpython2.7-stdlib (= 2.7.12-1ubuntu0~16.04.18), mime-support
Suggests: python2.7-doc, binutils
Conflicts: python-profiler (<= 2.7.1-2)
Breaks: python-virtualenv (<< 1.7.1.2-2~), vim-athena (<< 2:7.3.547-4), vim-gnome (<< 2:7.3.547-4), vim-gtk (<< 2:7.3.547-4), vim-nox (<< 2:7.3.547-4)
Replaces: python-profiler (<= 2.7.1-2), python2.7-minimal (<< 2.7.3-7~)
Filename: pool/main/p/python2.7/python2.7_2.7.12-1ubuntu0~16.04.18_amd64.deb
Size: 223666
MD5sum: 305666289a3119c8090448d08f45844d
SHA1: f99d12679cb314702a2a2b555f467e9d67c57ce5
SHA256: e730827925fa62ef31aca481014dcf00465e25bccc61e0484e2e374d001132f5
SHA512: 6b6696f543fc32fa034995ae1517db2caf263b6fe2ebb35d1e823e0d0764b3f5ac9da956e465a25ce0ac40708bca16babb02f8fa0359804e344acae552685dd0
Description-en: Interactive high-level object-oriented language (version 2.7)
Python is a high-level, interactive, object-oriented language. Its 2.7 version
includes an extensive class library with lots of goodies for
network programming, system administration, sounds and graphics.
Description-md5: 28620f1beffd6b598125304a83bfcb87
Task: ubuntu-desktop, ubuntu-usb, dns-server, samba-server, kubuntu-desktop, kubuntu-full, edubuntu-desktop, edubuntu-usb, xubuntu-desktop, mythbuntu-frontend, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master, lubuntu-core, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntustudio-fonts, ubuntu-gnome-desktop, ubuntu-sdk-libs-dev, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-mate-cloudtop
Supported: 5y

Package: python2.7
Priority: optional
Section: python
Installed-Size: 336
Maintainer: Ubuntu Core Developers
Original-Maintainer: Matthias Klose
Architecture: amd64
Version: 2.7.11-7ubuntu1
Replaces: python-profiler (<= 2.7.1-2), python2.7-minimal (<< 2.7.3-7~)
Depends: python2.7-minimal (= 2.7.11-7ubuntu1), libpython2.7-stdlib (= 2.7.11-7ubuntu1), mime-support
Suggests: python2.7-doc, binutils
Conflicts: python-profiler (<= 2.7.1-2)
Breaks: python-virtualenv (<< 1.7.1.2-2~), vim-athena (<< 2:7.3.547-4), vim-gnome (<< 2:7.3.547-4), vim-gtk (<< 2:7.3.547-4), vim-nox (<< 2:7.3.547-4)
Filename: pool/main/p/python2.7/python2.7_2.7.11-7ubuntu1_amd64.deb
Size: 219542
MD5sum: 1ad7cab01f1107c63bd19d37bfc9d3d8
SHA1: c57d792517781bc7764bc188c9cbdc887f312324
SHA256: 5373fddf8abdabfc3842c81e0f936b5c1c935e071efe3286f25e6d7a1520944e
Description-en: Interactive high-level object-oriented language (version 2.7)
Python is a high-level, interactive, object-oriented language. Its 2.7 version
includes an extensive class library with lots of goodies for
network programming, system administration, sounds and graphics.
Description-md5: 28620f1beffd6b598125304a83bfcb87
Multi-Arch: allowed
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, dns-server, samba-server, kubuntu-desktop, kubuntu-full, edubuntu-desktop, edubuntu-usb, xubuntu-desktop, mythbuntu-frontend, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master, lubuntu-core, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntustudio-fonts, ubuntu-gnome-desktop, ubuntu-sdk-libs-dev, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-mate-cloudtop