I am trying to install mariadb-server on ubuntu 22.04 LTS but I am getting an dependency error message related to galera-4 & libssl. How to fix this issue ?
Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: galera-4 : Depends: libssl1.1 (>= 1.1.1) but it is not installable E: Unable to correct problems, you have held broken packages.
Answers 1:
Ubuntu 22.04 ships with libssl-3.0.2 which does not satisfy MariaDB's dependency requirements. That said, you can download the required library from the Ubuntu servers and install it manually.
Here's how:
Open Terminal (or SSH into the machine if it's a server)
Download the library:
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
Install the package:
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
Get on with your day
From this point, you will be able to install MariaDB without problems. Future updates to MariaDB will likely resolve this dependency issue by using the newer libssl3.x libraries.
文章末尾固定信息

我的微信
我的微信
一个码农、工程狮、集能量和智慧于一身的、DIY高手、小伙伴er很多的、80后奶爸。
评论