How To Install libapt-pkg6.0 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libapt-pkg6.0
on Ubuntu 20.04.
What is libapt-pkg6.0
libapt-pkg6.0 is:
This library provides the common functionality for searching and managing packages as well as information about packages. Higher-level package managers can depend upon this library.
This includes:
- retrieval of information about packages from multiple sources
- retrieval of packages and all dependent packages needed to satisfy a request either through an internal solver or by interfacing with an external one
- authenticating the sources and validating the retrieved data
- installation and removal of packages in the system
- providing different transports to retrieve data over cdrom, ftp, http(s), rsh as well as an interface to add more transports like tor+http(s) (apt-transport-tor). Task: minimal Build-Essential: yes
Package: libapt-pkg6.0 Status: install ok installed Priority: important Section: libs Installed-Size: 3295 Maintainer: Ubuntu Developers [email protected] Architecture: amd64 Multi-Arch: same Source: apt Version: 2.0.4 Provides: libapt-pkg (= 2.0.4) Depends: libbz2-1.0, libc6 (>= 2.27), libgcc-s1 (>= 3.0), libgcrypt20 (>= 1.8.0), liblz4-1 (>= 0.0~r127), liblzma5 (>= 5.1.1alpha+20120614), libstdc++6 (>= 9), libsystemd0 (>= 221), libudev1 (>= 183), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.2.2.3) Recommends: apt (>= 2.0.4) Breaks: appstream (« 0.9.0-3~), apt (« 1.6~), aptitude (« 0.8.9), libapt-inst1.5 (« 0.9.9~) Description-en: package management runtime library This library provides the common functionality for searching and managing packages as well as information about packages. Higher-level package managers can depend upon this library.
This includes:
- retrieval of information about packages from multiple sources
- retrieval of packages and all dependent packages needed to satisfy a request either through an internal solver or by interfacing with an external one
- authenticating the sources and validating the retrieved data
- installation and removal of packages in the system
- providing different transports to retrieve data over cdrom, ftp, http(s), rsh as well as an interface to add more transports like tor+http(s) (apt-transport-tor). Original-Maintainer: APT Development Team [email protected]
Package: libapt-pkg6.0 Architecture: amd64 Version: 2.0.2ubuntu0.2 Multi-Arch: same Priority: important Section: libs Source: apt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: APT Development Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 3295 Provides: libapt-pkg (= 2.0.2ubuntu0.2) Depends: libbz2-1.0, libc6 (>= 2.27), libgcc-s1 (>= 3.0), libgcrypt20 (>= 1.8.0), liblz4-1 (>= 0.0~r127), liblzma5 (>= 5.1.1alpha+20120614), libstdc++6 (>= 9), libsystemd0 (>= 221), libudev1 (>= 183), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.2.2.3) Recommends: apt (>= 2.0.2ubuntu0.2) Breaks: appstream (« 0.9.0-3~), apt (« 1.6~), aptitude (« 0.8.9), libapt-inst1.5 (« 0.9.9~) Filename: pool/main/a/apt/libapt-pkg6.0_2.0.2ubuntu0.2_amd64.deb Size: 832488 MD5sum: 1927b7bc08d7ad1118ef2b52fbd69961 SHA1: 54c467868d80138524d76d1c86f77fa609337f9c SHA256: b5ec84d25eb9bfa6433324ff5bcde6e671ad5f15a23167cd0934e3ece4fd19d2 SHA512: 9eefc1d4c4739b893180ba4fe70eb64942f7d59c5a56293ccb31047efa24637464ba45f5bef3c6afd68fc2f28001176edb829a8b96d43499976b7d4c92caea79 Description-en: package management runtime library This library provides the common functionality for searching and managing packages as well as information about packages. Higher-level package managers can depend upon this library.
This includes:
- retrieval of information about packages from multiple sources
- retrieval of packages and all dependent packages needed to satisfy a request either through an internal solver or by interfacing with an external one
- authenticating the sources and validating the retrieved data
- installation and removal of packages in the system
- providing different transports to retrieve data over cdrom, ftp, http(s), rsh as well as an interface to add more transports like tor+http(s) (apt-transport-tor). Task: minimal Build-Essential: yes
Package: libapt-pkg6.0 Architecture: amd64 Version: 2.0.2 Multi-Arch: same Priority: important Section: libs Source: apt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: APT Development Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 3300 Provides: libapt-pkg (= 2.0.2) Depends: libbz2-1.0, libc6 (>= 2.27), libgcc-s1 (>= 3.0), libgcrypt20 (>= 1.8.0), liblz4-1 (>= 0.0~r127), liblzma5 (>= 5.1.1alpha+20120614), libstdc++6 (>= 9), libsystemd0 (>= 221), libudev1 (>= 183), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.2.2.3) Recommends: apt (>= 2.0.2) Breaks: appstream (« 0.9.0-3~), apt (« 1.6~), aptitude (« 0.8.9), libapt-inst1.5 (« 0.9.9~) Filename: pool/main/a/apt/libapt-pkg6.0_2.0.2_amd64.deb Size: 833812 MD5sum: ba632e24113f8a5c863ba4ae96c69b93 SHA1: 55c9abe282e99e343e4060ed7d0fd1649700626e SHA256: 56b4103245ae80b4b3e4a14242bdd99c54ab476da156e95f77816f1016b6f9bd Description-en: package management runtime library This library provides the common functionality for searching and managing packages as well as information about packages. Higher-level package managers can depend upon this library.
This includes:
- retrieval of information about packages from multiple sources
- retrieval of packages and all dependent packages needed to satisfy a request either through an internal solver or by interfacing with an external one
- authenticating the sources and validating the retrieved data
- installation and removal of packages in the system
- providing different transports to retrieve data over cdrom, ftp, http(s), rsh as well as an interface to add more transports like tor+http(s) (apt-transport-tor). Task: minimal Build-Essential: yes
There are three methods to install libapt-pkg6.0
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 libapt-pkg6.0 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libapt-pkg6.0
using apt-get
by running the following command:
sudo apt-get -y install libapt-pkg6.0
Install libapt-pkg6.0 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libapt-pkg6.0
using apt
by running the following command:
sudo apt -y install libapt-pkg6.0
Install libapt-pkg6.0 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 libapt-pkg6.0
using aptitude
by running the following command:
sudo aptitude -y install libapt-pkg6.0
How To Uninstall libapt-pkg6.0 on Ubuntu 20.04
To uninstall only the libapt-pkg6.0
package we can use the following command:
sudo apt-get remove libapt-pkg6.0
Uninstall libapt-pkg6.0 And Its Dependencies
To uninstall libapt-pkg6.0
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libapt-pkg6.0
Remove libapt-pkg6.0 Configurations and Data
To remove libapt-pkg6.0
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libapt-pkg6.0
Remove libapt-pkg6.0 configuration, data, and all of its dependencies
We can use the following command to remove libapt-pkg6.0
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libapt-pkg6.0
References
Summary
In this tutorial we learn how to install libapt-pkg6.0
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.