How to Install and Uninstall 2to3 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 30,2024

1. Install "2to3" package

Please follow the step by step instructions below to install 2to3 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install 2to3

2. Uninstall "2to3" package

This guide let you learn how to uninstall 2to3 on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove 2to3 $ sudo apt autoclean && sudo apt autoremove

3. Information about the 2to3 package on Ubuntu 21.04 (Hirsute Hippo)

Package: 2to3
Architecture: all
Version: 3.9.4-1
Multi-Arch: foreign
Priority: optional
Section: universe/python
Source: python3-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Matthias Klose
Installed-Size: 43
Depends: python3-lib2to3 (>= 3.9.4-0~), python3 (>= 3.9.4-1)
Breaks: python (<< 2.7.14-4)
Replaces: python (<< 2.7.14-4)
Filename: pool/universe/p/python3-defaults/2to3_3.9.4-1_all.deb
Size: 7960
MD5sum: 6de43586b6a13702c7f26bc7ea07d389
SHA1: 620d29b040c64b0c6a83fe2aac4f6b2aa9b95ff6
SHA256: c95ee0e49e44d849f652bb53abe85c4de5b45ecba81e16fc45e266dd0b0810fc
SHA512: 89eaa11975bab874ad2cb6b9c1aff195e58a40a735c6c85727fc06bec2b5a48850daf49719c5f4aa93880ef05c2dda7873e20824223b3fd273326bb611125e31
Description-en: 2to3 binary using python3
2to3 is a Python program that reads Python 2.x source code and applies a
series of fixers to transform it into valid Python 3.x code. The standard
library contains a rich set of fixers that will handle almost all code. 2to3
supporting library lib2to3 is, however, a flexible and generic library, so it
is possible to write your own fixers for 2to3. lib2to3 could also be adapted
to custom applications in which Python code needs to be edited automatically.
This package is a dependency package, which depends on Debian's default
Python 3 2to3 version (currently v3.9).
Description-md5: a9529fe93619a838678e18a77f46ab71