How to Install and Uninstall libpython2-dev Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 18,2024

1. Install "libpython2-dev" package

In this section, we are going to explain the necessary steps to install libpython2-dev on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install libpython2-dev

2. Uninstall "libpython2-dev" package

Please follow the guidance below to uninstall libpython2-dev on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the libpython2-dev package on Ubuntu 21.04 (Hirsute Hippo)

Package: libpython2-dev
Architecture: amd64
Version: 2.7.18-2
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.18~)
Breaks: libpython-dev (<< 2.7.15-2)
Replaces: libpython-dev (<< 2.7.15-2)
Filename: pool/universe/p/python-defaults/libpython2-dev_2.7.18-2_amd64.deb
Size: 7388
MD5sum: 7c261978c7ef530d9d10e2fab847ef7f
SHA1: e51a123064432c73d00d5335a1a7d75d9722395a
SHA256: 62c7275519fa7696852c38ca1de083a6cb002ba31cee6bed4f64be5214ad1b13
SHA512: b91e829f3946382bdfd9d03d80ab4c7b77dc6d6213195d7ada608771eeb1f1c8cdc29c216a691f3dac1aab8eb2e86957f6cf77419ebc887abffcb4780bcb61b9
Homepage: https://www.python.org/
Description-en: header files and a static library for Python2
Header files, a static library and development tools for building
Python2 modules, extending the Python2 interpreter or embedding Python2
in applications.
.
This package is a dependency package, which depends on Debian's Python2
version (currently v2.7).
Description-md5: 39e8987518a407d42638b3fc80fc84cd