Resolving Error: Unable to Install MariaDB Packages on Ubuntu
When trying to install the easy-rsa package on Ubuntu, you might encounter an error related to MariaDB packages. This article will help you understand the issue and provide solutions to resolve it.
Understanding the Error
The error occurs when the system tries to install the easy-rsa package, which depends on the libssl-dev package. However, the installation of libssl-dev fails due to unmet dependencies related to MariaDB packages. The exact error message might look like this:
The following packages have unmet dependencies:
libssl-dev : Depends: libssl1.1 (= 1.1.1n-0ubuntu1.3) but 1.1.1n-0ubuntu1.5 is to be installed
E: Unable to correct problems, you have held broken packages.Analyzing the Problem
The issue arises from a conflict between the versions of the libssl1.1 package required by the system and the one required by the libssl-dev package. In this case, the system has version 1.1.1n-0ubuntu1.5 installed, while the libssl-dev package requires version 1.1.1n-0ubuntu1.3.
Resolving the Error
To resolve this issue, you need to manually install the correct version of the libssl1.1 package and then proceed with the installation of the libssl-dev package. Follow these steps:
- Add the deadsnakes PPA to your sources list:
sudo add-apt-repository ppa:deadsnakes/ppa- Update the package list:
sudo apt update- Install the correct version of the
libssl1.1package:
sudo apt install libssl1.1=1.1.1n-0ubuntu1.3- Proceed with the installation of the
libssl-devpackage:
sudo apt install libssl-dev- Finally, install the
easy-rsapackage:
sudo apt install easy-rsaIn this article, we discussed the error that occurs when installing the easy-rsa package on Ubuntu, which is caused by a conflict between the versions of the libssl-dev and libssl1.1 packages. We provided a step-by-step solution to resolve the issue by manually installing the correct version of the libssl1.1 package and then proceeding with the installation of the libssl-dev and easy-rsa packages.
References
-
Type: Online Resource
Title: Deadsnakes PPA