How to Install and Uninstall python2.7 Package on Debian 11 (Bullseye)

Last updated: April 29,2024

1. Install "python2.7" package

This tutorial shows how to install python2.7 on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install python2.7

2. Uninstall "python2.7" package

Please follow the steps below to uninstall python2.7 on Debian 11 (Bullseye):

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

3. Information about the python2.7 package on Debian 11 (Bullseye)

Package: python2.7
Version: 2.7.18-8
Installed-Size: 382
Maintainer: Matthias Klose
Architecture: amd64
Replaces: python-profiler (<= 2.7.1-2), python2.7-minimal (<< 2.7.3-7~)
Depends: python2.7-minimal (= 2.7.18-8), libpython2.7-stdlib (= 2.7.18-8), mime-support
Suggests: python2.7-doc, binutils
Conflicts: python-profiler (<= 2.7.1-2)
Breaks: libgcj-common (<< 1:7), libpython-dbg (<< 2.7.18), libpython-dev (<< 2.7.18), libpython-stdlib (<< 2.7.18), libvolk1-bin (<< 2), pysycache (<< 3.1-4~), python (<< 2.7.18), python-catkin-pkg (<< 0.4.14-2~), python-chardet (<< 3.0.4-6~), python-dbg (<< 2.7.18), python-dev (<< 2.7.18), python-extras (<< 1.0.0-4~), python-fixtures (<< 3.0.0-3~), python-genpy (<< 0.6.9-2~), python-iso8601 (<< 0.1.12-2~), python-linecache2 (<< 1.0.0-4~), python-minimal (<< 2.7.18), python-pbr (<< 5.4.5), python-pyasn1 (<< 0.4.2-4~), python-pygame (<< 1.9.6+dfsg-3~), python-pyicu (<< 2.2-3~), python-rospkg (<< 1.1.10-2~), python-std-msgs (<< 0.5.12-2~), python-testtools (<< 2.3.0-7~), python-traceback2 (<< 1.4.0-6~), python-traitlets (<< 4.3.3-3~), python-urllib3 (<< 1.25.8-2~), python-virtualenv (<< 1.7.1.2-2~), python-yaml (<< 5.3.1-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)
Description: Interactive high-level object-oriented language (version 2.7)
Description-md5: 28620f1beffd6b598125304a83bfcb87
Multi-Arch: allowed
Tag: devel::interpreter, devel::lang:python, devel::runtime,
implemented-in::c, interface::commandline, role::program,
works-with::software:running, works-with::software:source
Section: python
Priority: optional
Filename: pool/main/p/python2.7/python2.7_2.7.18-8_amd64.deb
Size: 310652
MD5sum: c9817bd4411eb44f58313b2d423d79e7
SHA256: 35d200dfd75c24fb109cc16306b8daa341e27110f0a17d156c16a076c9471101