How To Install python3-ubuntu-image on Ubuntu 20.04

In this tutorial we learn how to install python3-ubuntu-image on Ubuntu 20.04. python3-ubuntu-image is toolkit for building Ubuntu images toolkit for building Ubuntu images

Introduction

In this tutorial we learn how to install python3-ubuntu-image on Ubuntu 20.04.

What is python3-ubuntu-image

python3-ubuntu-image is:

This package contains the ubuntu-image library for Python 3.

Package: python3-ubuntu-image Architecture: all Version: 1.9+20.04ubuntu1 Priority: optional Section: python Source: ubuntu-image Origin: Ubuntu Maintainer: Lukasz ‘sil2100’ Zemczak [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 493 Depends: ca-certificates, dosfstools, gdisk, grub-common, livecd-rootfs (>= 2.480), fakeroot, mtools (>= 4.0.18-2ubuntu0), python3-attr, python3-parted, python3-pkg-resources, python3-setuptools, python3-voluptuous, python3-yaml, snapd (>= 2.38~), python3:any Suggests: qemu-user-static Filename: pool/main/u/ubuntu-image/python3-ubuntu-image_1.9+20.04ubuntu1_all.deb Size: 60836 MD5sum: 11a842d529889a98737df90d76b375f1 SHA1: f56e7605380cfe6dae3a40eea2524199b20e15f6 SHA256: 44d314acec932c7333e60dc52cb6d3e722f8b1523d957917352c66a4ae502f4b Homepage: http://launchpad.net/ubuntu-image Description-en: toolkit for building Ubuntu images

This package contains the ubuntu-image library for Python 3.

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

sudo apt-get -y install python3-ubuntu-image

Install python3-ubuntu-image Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-ubuntu-image using apt by running the following command:

sudo apt -y install python3-ubuntu-image

Install python3-ubuntu-image 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-ubuntu-image using aptitude by running the following command:

sudo aptitude -y install python3-ubuntu-image

How To Uninstall python3-ubuntu-image on Ubuntu 20.04

To uninstall only the python3-ubuntu-image package we can use the following command:

sudo apt-get remove python3-ubuntu-image

Uninstall python3-ubuntu-image And Its Dependencies

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

sudo apt-get -y autoremove python3-ubuntu-image

Remove python3-ubuntu-image Configurations and Data

To remove python3-ubuntu-image configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python3-ubuntu-image

Remove python3-ubuntu-image configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-ubuntu-image

References

Summary

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