How to Install and Uninstall python2 Package on Ubuntu 20.04 LTS (Focal Fossa)
Last updated: November 22,2024
1. Install "python2" package
Here is a brief guide to show you how to install python2 on Ubuntu 20.04 LTS (Focal Fossa)
$
sudo apt update
Copied
$
sudo apt install
python2
Copied
2. Uninstall "python2" package
This guide covers the steps necessary to uninstall python2 on Ubuntu 20.04 LTS (Focal Fossa):
$
sudo apt remove
python2
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the python2 package on Ubuntu 20.04 LTS (Focal Fossa)
Package: python2
Architecture: amd64
Version: 2.7.17-2ubuntu4
Multi-Arch: allowed
Priority: optional
Section: universe/python
Source: python-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Matthias Klose
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 136
Provides: python-ctypes, python-email, python-importlib, python-profiler, python-wsgiref
Pre-Depends: python2-minimal (= 2.7.17-2ubuntu4)
Depends: python2.7 (>= 2.7.17~rc1-1~), libpython2-stdlib (= 2.7.17-2ubuntu4)
Suggests: python2-doc (= 2.7.17-2ubuntu4), python-tk (>= 2.7.17~rc1-1~)
Conflicts: python-central (<< 0.5.5)
Breaks: python (<< 2.7.15-2), update-manager-core (<< 0.200.5-2)
Replaces: python (<< 2.7.15-2), python-dev (<< 2.6.5-2)
Filename: pool/universe/p/python-defaults/python2_2.7.17-2ubuntu4_amd64.deb
Size: 26512
MD5sum: 67643541ff02e74a8ef3f8fb17447482
SHA1: 6212e80e6936f2b1faee3e05ea7bd1124fb2a642
SHA256: bf1a9521bbe0bf5f8757145b8469986d6b2e55231997a4ba9e0db3a7439d9a6c
Homepage: https://www.python.org/
Description: interactive high-level object-oriented language (Python2 version)
Description-md5: 8a23c719c291789e6e4e8971b03680c5
Task: ubuntustudio-desktop-core, ubuntustudio-desktop
Architecture: amd64
Version: 2.7.17-2ubuntu4
Multi-Arch: allowed
Priority: optional
Section: universe/python
Source: python-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Matthias Klose
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 136
Provides: python-ctypes, python-email, python-importlib, python-profiler, python-wsgiref
Pre-Depends: python2-minimal (= 2.7.17-2ubuntu4)
Depends: python2.7 (>= 2.7.17~rc1-1~), libpython2-stdlib (= 2.7.17-2ubuntu4)
Suggests: python2-doc (= 2.7.17-2ubuntu4), python-tk (>= 2.7.17~rc1-1~)
Conflicts: python-central (<< 0.5.5)
Breaks: python (<< 2.7.15-2), update-manager-core (<< 0.200.5-2)
Replaces: python (<< 2.7.15-2), python-dev (<< 2.6.5-2)
Filename: pool/universe/p/python-defaults/python2_2.7.17-2ubuntu4_amd64.deb
Size: 26512
MD5sum: 67643541ff02e74a8ef3f8fb17447482
SHA1: 6212e80e6936f2b1faee3e05ea7bd1124fb2a642
SHA256: bf1a9521bbe0bf5f8757145b8469986d6b2e55231997a4ba9e0db3a7439d9a6c
Homepage: https://www.python.org/
Description: interactive high-level object-oriented language (Python2 version)
Description-md5: 8a23c719c291789e6e4e8971b03680c5
Task: ubuntustudio-desktop-core, ubuntustudio-desktop