How To Install python3.8-dbg on Ubuntu 20.04

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

Introduction

In this tutorial we learn how to install python3.8-dbg on Ubuntu 20.04.

What is python3.8-dbg

python3.8-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: 001fea24a66ecfd3a5585d508a80758da787f5eb 0301d0f4c598acf39cb367feb2d919b440f1b615 07b353ce4d17cb923a4c2df71e95783a65befdec 09b48df8dcb9d5052cce8add40a00ed719ad289e 0ab034e7eacdce58a9335704e646b1f1f7596c67 0d10fa02b24c79f263769a4b577559f3547c5905 10b952a39e0cc85e04cb1f5abd1ac093798e6cae 12fd0819b263f31c0a7cc44b64194ee16adce19a 1f6b95f2c7c578a9bd4ead70dd9fee6714ced116 2008477064eaa9aec184287bf3d1c6992abdff94 2264cfaff428dc47d9ce79351e50318270b0376e 252131494ad591f5c81e8ae91f4564892db3bcc6 29f5b5dc21b49b3fe520cb51bccbf2b043c764d8 2c424d924ac8a1f7669740b16d67b297cf39126c 2db240784fad86a7bd7802962b15340b6fb3904e 34ff99b1ce4cdfb8ef1e2c39534257758c47d4b9 358eeea930b18765cdb53692fa8770d83eefd70c 45fb5d7e5d83c40fe85140ee2707e29980120f63 47c015ba64fbe29e209de3837a3d52edc6d81cf4 5cdca40c7703830109c3994b079083fce6c53965 634486ff273957c77995aef79f29146d95529725 6d00c6d40241aa8beb037873036964ecfbe753c1 6d19636a14961180efe908175b73099a32426833 7ab389fae5cab72968001a6bdd7c0f8e74c92b2a 7e60a0ba8856ba42cf7b1248c649e7dcdfaf1e9c 811377ec8c8470349592546e454dc5c06b4fafd6 8743ee7c15d71da76cb1582cd997f5c9bcf87cc3 89c29465b652ff394d44ab2868a1776398a5c6f8 8aa446e5eba190fdb20b1e0c1d0c942e4afb8a4c 8fb7a78f6135f84d31933cfeccb8d40d3bfdab6d 90285e68f41b19d3c73814ba4f938e2deb9bcd54 91e657c3c4f1302736cc41aa6d19d61a39709075 9c096cdc8214a805dca8d174fe072684b0f21645 b70f2892e75df5ff7fb6a5d8463810a444bd116b b758a59ebb441ee713fcdf7034493ca178ba4cc0 bc4f5a6b3ad47797242432e1165b224da299347c be19823154e117e746969ed2e05efcf6fad6a44a c4a91c51c4d90446640764628ecfc80ee783a3a2 c6e8167bcd8403ea1399ad508fdebea9dabe05c8 d35408d9a0bada4786e852f13d6d6df64ada8efc d8414a010d071656b23316dd0c7dc2299aaa25e4 e93c54df4eaa0b81f1274b1fbb973078e5f7e761 ea3656bdfa348849855ec10eacda3f03f1edc52e edc2bf73b87e2d3754a58358a23fec321c0b07be f26df112e509b574a25aa680ba06b40c4b8c5c5f f7a98421c7e2e0595d3a8e8b40001e2cc717bf6b

Package: python3.8-dbg Architecture: amd64 Version: 3.8.2-1ubuntu1 Multi-Arch: allowed Priority: optional Section: debug Source: python3.8 Origin: Ubuntu Maintainer: Ubuntu Core Developers [email protected] Original-Maintainer: Matthias Klose [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 39212 Depends: python3.8 (= 3.8.2-1ubuntu1), libpython3.8-dbg (= 3.8.2-1ubuntu1), libc6 (>= 2.29), libexpat1 (>= 2.1~beta3), zlib1g (>= 1:1.2.0) Recommends: gdb Suggests: python3-gdbm-dbg, python3-tk-dbg Filename: pool/main/p/python3.8/python3.8-dbg_3.8.2-1ubuntu1_amd64.deb Size: 19350576 MD5sum: 527f73ee9f9b7a263a551231413bd24d SHA1: 05cea55ce8f9e4be76b4efb393b8e3f97c3ebdf6 SHA256: ecfd33324ed96a29980bd4538e67f9912442c5b276a5eae2213798e6bcc40681 Description-en: Debug Build of the Python Interpreter (version 3.8) 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: 000215987cf9f633c6dfc1c07475b504092552c4 176615c9b0008a125d33c34c96ed1f1883280bc8 1a0f8dba4d45bbceb927357f2e68ebae7ab3341f 1ba63b5cfaba6597e4018c79f581937801e23d06 1ff26a1092c389b33fa25a1a7e57ad2a54d13416 23e481b4b5b7ee2d52fbcbfc5b57342dc01235b4 264af4b38eeb1c5acd8f951b5dcc2249e5199808 2fa39993448b3de0cab42b8bdeb1b9b8f2dbfab1 3c98221415d2cf05a092f16329e18d1a5aaad018 3ea6fa1d57ca7e0af5d0ca8b6eafe6b0587aaede 3f057d49b0f69f3696274efe22a4379471d228f1 41547d13cd87255332b3d85b4ffb94baa95167da 4a416dde76b5f0e8ac349c712d5befa857717b49 5bdac84f7209aee0447f66588034746b4c8af4d8 5cdce4dc8b96e724b698c1b904144b8384d8e4f4 5f73f43a4e49e78acd508d8dabe2b619a21c533c 64c74ef51dac031e173aee9b6a8c176377baa04f 6d4633f3d6727365dac3e50bb53e9b21a3730c21 7109de82b3d1e88d21ac013cb4be58a2c5754679 85bbe5d000009293ef4fe5ecaad05080d765c996 85c59c0c2b50bc63017f591fae88c8f6e7672715 92d2ac8f3bb84d1bb9e9af6ea66be753537f0bdc 9405d3db5e7fa31e0ff1ce3b499639a10a36eca7 941a5bd6f22ea530a8f9193b5b5f91154e1bbc02 9443990f16c0919250b1e2d8c4f192f482882170 9451ea847daeae96cfbe9aa0049e45c3776d9933 9a930483561fe4628761fae5ea567e7aaf94ad05 a03c1c637138c05449d54b03ebaacdc9af725002 a1082fece5b17374ea2458fcf4d524eda0ccc751 a397e59164e281f9ba81f7d6ea977b4d34744546 b3d630b2362c8fe76ccdc3eff52e141626abb165 bb9b288943fe4145ec1ecf722f2f94a8ee3b4217 c076c7320ccafc8a5482580ef523bfa36e323a5a c1f27c9d7db8da3484c4642538a2f54b233dcfb3 c3ea42f572d93e80db94475404faf4fa80e7df8d c594656539de2c5845fcce89d31f0069224efe4d c61ec449f0440dc47d9d8805511f6a88bd127877 c910eeedb3ca9af5af2e561e2008e2046575c59d cc9939f26d01554e89c9d40ba758479b155a9c82 d63c096d7c376530821f646011697ac6126df887 daaba31898746a898f09a6aaf5fa9e42b7500ed4 e7286bacffef2fb97b021305bcc5835aabe2dc69 ebaaf84b085926c861a9b8deacff73f8c8db7792 ef87b181b045d4bbcf508d545ba16f8de833b6fb f10c07a994b12a49833f88a9b7f674390f0a2563 f4688a1cecf3e11db38faa5b619593287aee6c8d

There are three methods to install python3.8-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 python3.8-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 python3.8-dbg using apt-get by running the following command:

sudo apt-get -y install python3.8-dbg

Install python3.8-dbg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3.8-dbg

Install python3.8-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 python3.8-dbg using aptitude by running the following command:

sudo aptitude -y install python3.8-dbg

How To Uninstall python3.8-dbg on Ubuntu 20.04

To uninstall only the python3.8-dbg package we can use the following command:

sudo apt-get remove python3.8-dbg

Uninstall python3.8-dbg And Its Dependencies

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

sudo apt-get -y autoremove python3.8-dbg

Remove python3.8-dbg Configurations and Data

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

sudo apt-get -y purge python3.8-dbg

Remove python3.8-dbg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3.8-dbg

References

Summary

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