How To Install python2.7-dbg on Ubuntu 20.04

In this tutorial we learn how to install python2.7-dbg on Ubuntu 20.04. python2.7-dbg is Debug Build of the Python Interpreter (version 2.7) Debug Build of the Python Interpreter (version 2.7)

Introduction

In this tutorial we learn how to install python2.7-dbg on Ubuntu 20.04.

What is python2.7-dbg

python2.7-dbg is:

The package holds two things:

  • A Python interpreter configured with –pydebug. Dynamically loaded modules are searched as _d.so first. Third party extensions need a separate build to be used by this interpreter.
  • Debug information for standard python interpreter and extensions.

See the README.debug for more information. Build-Ids: 038a45eda5d1f13030b395a63d5fb7721a28af8b 0755685f3fac5627098b4a4b0dde16e27f0e3b1f 10e37eec1ccc37fa8c6e0a36c85fb135b31f4ff6 12298a0580237599d3b08009e8c8c6ee65ccea05 149e2359d47034877f0533c391f70a48bbd3557c 20332f9396d66cf7c71d408c97183d9229062c5c 2c6cc8758bd53629963fae44b3df8ebe2028ff03 2ca4b9e3634ddc35cecc295b76531ec77996e226 33001a1fe6eae82b5f05fd88a87f5ce6b3b77bc5 39c6e371c0624cc403e512f77b1aa0c55c826842 42985eeeebea31a8517f759df85a28b554f8bb99 5a93f12957dec03358578caf4f8e6cfc3bb7d729 5f8104525a3b90f089a800fdae1ea8aa43550ed8 61bc9e35d3f4aeb8b9200cf97b62cf8e843a5393 62a20894dd94fd9766f1d407c96abbfa296f0c96 62e6780bd3f547aff635ee37a6ad17f113bc79d0 67484f584a8e9cc616ced793b7c5128c35ceaff5 68a2897c2e117b91b2a2823a5210c964845f4888 6bcf1ca0642a25f8c2596c956990167fc65c784d 70e6ff0a73061661a5bdce489345c1ad90a86f32 73d8cf8587f3d1485bda4e76cd7a0647d1996a3c 77577aac0dc4711a62f43915f37f8ef7162054c7 7a275ed4e6deeed87592211616be724dc427376b 7b897cc426e1dd561d31579a4c9f61c7a18e7da6 83a2c479bf232990a55008555521195110c82288 895fc5d1f3abf2f198bc0b82f21217f1632d372f 97da4f21ce4a4daa38bb1fc9bf6d0117a335dede b0ad4abf49cc5558b1c3d6b2b56a36f9abebfbde b614dbdbf4c8fcf3cea0af7e49b764aa93ede8bf b8c50e7eccd3eb0d6be5d8d7d8a90b20bcb28e4b c0748f8ca5b88bd75cfc07453d0ec3fed1367ea0 cb69c1dd2ff8bd99579403a281979eee0b15d58a df727276ffa30f0dd5d2ec239b1ea064370c98fe e0b7789ad5e91bfa8b5781009e3bfc47c5e806f1 ecb31dc432325ed7cadd18c88a4fbfb7bba406df f34916aaaafde41ba0f1305644e1ccfceb17d3c1 f7759da636d70d6cb8a02a2617a09dae41436056 fdd268dad3dc7c2e92212558baff73a538ea4eaa

Package: python2.7-dbg Architecture: amd64 Version: 2.7.18~rc1-2 Multi-Arch: allowed Priority: extra Section: universe/debug Source: python2.7 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Matthias Klose [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 17918 Depends: python2.7 (= 2.7.18~rc1-2), libpython2.7-dbg (= 2.7.18~rc1-2), libc6 (>= 2.29), zlib1g (>= 1:1.2.0) Suggests: python-gdbm-dbg, python-tk-dbg Filename: pool/universe/p/python2.7/python2.7-dbg_2.7.18~rc1-2_amd64.deb Size: 9610932 MD5sum: fa36d3ed68c7bdf02e2fbfead11386b7 SHA1: eee15962edf3ffa813aaafa37f0fc405851b7b49 SHA256: 4c76f860f079427e40c48665e0ceddce89c7b728decf3d6c25ad6c66ae39a600 Description-en: Debug Build of the Python Interpreter (version 2.7) The package holds two things:

  • A Python interpreter configured with –pydebug. Dynamically loaded modules are searched as _d.so first. Third party extensions need a separate build to be used by this interpreter.
  • Debug information for standard python interpreter and extensions.

See the README.debug for more information. Build-Ids: 0393ff4d39a12c0ac235c105fbf28c64b3261ba4 0f8ba4163588e5c548468091436a0c2141bf1be4 1187c81043e708cb635d1b343d5906171b6e1a5b 12595516e1c4acaf13baf1d96361123afc9c14ca 26076ea9fd1959fda6f06a46b5a1a0de845ee8d6 2c94f65a4891bc48bf21db5a89e88e704109d39e 3047a4f51e34bdce5531ec0db1fb737086be5c72 33c6bdec78e1583e8db146d85186253b4b8d6ce7 3efd155cf4e812d903faaf33819a7edef3b51210 42f3ea75d373f3b9ed1b2ac690e5b270efe7064d 49f974e8674d2c44edb4619670c7e8eb8e1b9576 4c05fb913e3db146f815f3ace0538ada70b80461 4d47ba0adf0e998e06724e5948df9c7a4c9f2beb 4d61e6d10b771ff9501a167ce4e7e5c886d42b0c 4ff4e8fd1e67ebfd55d77712c05613d2ac6b1818 5905342074a47764c82f01809ada5d3ed037c4f5 6641ea3360daf9898566982682ac275f4cb933ea 6e1e517e57887ddea1a3e6eb7a4854857cd7cc47 6fa6dceb41bb3fe9f4754f40c8b0918d71e1ce2b 7023e362e210325b2f2912279c913776ce0b6516 7211acc958bf8627aae8dee9dede09694882f4b1 7bacdd0e09e19982d64958ef51575bd37e57e62b 7e7d79251eb79671892be8ebe4dcfc4a123624b0 8d815550b8cd7350fbf3c166c77fa80c023b6b6f 9219054367eb5457e363c3d94bbd24e65d3e6cc5 a23a23f9b02504d90e76ddc0f53d3502aa34ccf3 a3179fdf67d32663ef521e09350382d0636d3054 a432ccf8c15feba5105cc4f7f54a08aeb7af27d5 a87604d8f01c437ef6e68b95f7dd73fde0034dee b060b896d7544f817b3c7796d045f62e9fe49bdd b6c1783a7afbe8b7224f6a5231215ddd4a1235af c141a3b57842e474a1eeb4d2781dcc2fbfae0918 c24e2da8d09cfca183e97ad6f6767931ed0062f3 c8c17decc28923f0e98181350a7225357d726288 c9c4658b20232a56315480a3e8d11eaf6c72b50a cb2ae5ace8121b5bf9515dc09b62ea63e058c2f9 d9304337c432dadb7015033abbcf9115ad628283 ed5f2d1dbe205138eef49af95557c066e5c0d849

There are three methods to install python2.7-dbg on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python2.7-dbg Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python2.7-dbg using apt-get by running the following command:

sudo apt-get -y install python2.7-dbg

Install python2.7-dbg Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python2.7-dbg using apt by running the following command:

sudo apt -y install python2.7-dbg

Install python2.7-dbg Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python2.7-dbg using aptitude by running the following command:

sudo aptitude -y install python2.7-dbg

How To Uninstall python2.7-dbg on Ubuntu 20.04

To uninstall only the python2.7-dbg package we can use the following command:

sudo apt-get remove python2.7-dbg

Uninstall python2.7-dbg And Its Dependencies

To uninstall python2.7-dbg and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove python2.7-dbg

Remove python2.7-dbg Configurations and Data

To remove python2.7-dbg configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python2.7-dbg

Remove python2.7-dbg configuration, data, and all of its dependencies

We can use the following command to remove python2.7-dbg configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python2.7-dbg

References

Summary

In this tutorial we learn how to install python2.7-dbg package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.