How To Install python3.9-dbg on Ubuntu 20.04

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

Introduction

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

What is python3.9-dbg

python3.9-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: 00e6cc236dd0e3107072f45b03325ebc736013fa 03fccbd2b597cbdebad4aa7d39e8de0f19143d45 07cc62a4f521fc4ac5031ac61b788a4aa0e64218 0aef20882cb64e1240c8f082477e0c8258f9af0e 1e112f7b88ae45d1c5ee34704f4b0595314ff018 24f3bd4254a87aa9387c6262e7da3ba848fdf629 29a21fa57b6a5edc48cde4d821c3ac8b09fdbb21 4a456bfff0035793235f8fbb4f10a68b00c42320 4e750a005d82059503974341606c5e6deddd059c 5a8963ae943e0b00bc15cd0e6c748999994d75e3 5c614e48c17ad7dab62b103c8c9a66cf32801658 5f337c89cac4fc0d670a97a86440fa8b1124295d 604a9c4a24968c058a9a9006d0fb444eabdaf05a 60dda6c8fd008583629d60cafe45fe7dfa43c920 63b156140cceaaa8803529e1596cda92faee44c8 67ba68573346349d9eac537ce71413089c25ac14 6b70d7ee1fefef11fa01764166d35831347d6213 6c6cf2b437dc3f3bdb0dd0f173a4905dc492a931 8036f6ad590eb213b4d9464e25e56ceb546e6c74 841959f0d6a3342dad9d2042167082ff188a880c 86491423c1c17b6712f0ee30334696a31e47b734 8b23d62f45977b2ce914fe65014b44f14e576d95 95755fc45a80225560e68ec440b7ff38fd3767c1 975aa6d8f12905af88cadb847436c4c3f15c6de7 97f3c0f463251bff65339a0dfa2eade70c2a2509 9aa1b642935b9d2727631bc950651be5f0c567c5 a4a76dbcb0331ca27d47dd3beec92a9f89f1f964 a9da1520fa74e8ce5137ab35e72b9e4eb3df5b4c afd829ffcbb14a8053b3f1ce85e1d6fb32fa9106 b2e682cf1af4fb03daf8d21721464ae99e25be32 b368ecb21c5824f597c72feec6f8497b335ea99b b54e7b65fb4db12b1f41db51f0086f3569d37e04 bd6ee8ebd887474988144d67e3ca24e11cf3d326 c04633ba20e6641d33ccdbda6f0a77995649c52b c4976a8b6a1ba5e6c0142355e0d2f2574271758e c769e8b5fd51c7081f96be1d7593b74608bf9101 c7ca015eb651514a3e2154540bbe4f5feb07f160 d12d30b5c00ac55051b23a8057854071b3b45984 d994ddacf5f2628abd2df9972900f451000eb305 e6b3998e428a160072338496ec863ae2336f6351 e726c9a29bf7054c539e4ce3172063b2010f0bd4 ea0cdfbb4acca181215020b77c76019c58490284 f1be5c8f745207c0c5fd7656df42619a66cbfc64 f551b2e7cc46171ddbf65433119b148d307e4de4 fa51ace6c3870382836cc3a8686a008ef572e589 fc38cbec4badb423752bfcc28334fd2fc6c585b9 fe9d46203b3bfa5b8df8df194e64fa8937adc846

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

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

Install python3.9-dbg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3.9-dbg

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

sudo aptitude -y install python3.9-dbg

How To Uninstall python3.9-dbg on Ubuntu 20.04

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

sudo apt-get remove python3.9-dbg

Uninstall python3.9-dbg And Its Dependencies

To uninstall python3.9-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.9-dbg

Remove python3.9-dbg Configurations and Data

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

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

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

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

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

References

Summary

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