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

Last updated: December 27,2024

1. Install "python2-dev" package

Please follow the steps below to install python2-dev on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install python2-dev

2. Uninstall "python2-dev" package

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

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

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

Package: python2-dev
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: 15
Depends: python2 (= 2.7.17-2ubuntu4), libpython2-dev (= 2.7.17-2ubuntu4), python2.7-dev (>= 2.7.17~rc1-1~)
Breaks: python-dev (<< 2.7.15-2)
Replaces: python-dev (<< 2.7.15-2)
Filename: pool/universe/p/python-defaults/python2-dev_2.7.17-2ubuntu4_amd64.deb
Size: 1268
MD5sum: 3e0c20c9a9618e3191ab91f657641079
SHA1: ae4d3271343d475f949624c9519695f18265124b
SHA256: 1903edbfa600f10e6d82dcc174a9a733515b48b92b88d268dbec8ec6153a6ed7
Homepage: https://www.python.org/
Description: header files and a static library for Python2
Description-md5: 39e8987518a407d42638b3fc80fc84cd