How to Install and Uninstall libpython2-dev Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 18,2024

1. Install "libpython2-dev" package

This is a short guide on how to install libpython2-dev on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install libpython2-dev

2. Uninstall "libpython2-dev" package

Please follow the guidelines below to uninstall libpython2-dev on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove libpython2-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the libpython2-dev package on Ubuntu 20.04 LTS (Focal Fossa)

Package: libpython2-dev
Architecture: amd64
Version: 2.7.17-2ubuntu4
Multi-Arch: same
Priority: optional
Section: universe/libdevel
Source: python-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Matthias Klose
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 43
Depends: libpython2.7-dev (>= 2.7.17~rc1-1~)
Breaks: libpython-dev (<< 2.7.15-2)
Replaces: libpython-dev (<< 2.7.15-2)
Filename: pool/universe/p/python-defaults/libpython2-dev_2.7.17-2ubuntu4_amd64.deb
Size: 7140
MD5sum: cff2a0c6048451b39fbd63d8a726cbfd
SHA1: a99090e083ae2a735fb3e464b029ac0d396c76a1
SHA256: 6271da32cb9deecce492120a160c1bfc4bf17d6c050016552956bbec3c71f924
Homepage: https://www.python.org/
Description: header files and a static library for Python2
Description-md5: 39e8987518a407d42638b3fc80fc84cd