Unable to install mariadb-server on ubuntu 22.04

Igor 数据库评论891字数 1178阅读3分55秒阅读模式

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.

文章末尾固定信息

weinxin
我的微信
我的微信
一个码农、工程狮、集能量和智慧于一身的、DIY高手、小伙伴er很多的、80后奶爸。
 
Igor
  • 本文由 Igor 发表于 2024-05-0709:30:28
c# - 异步使用MySQL DB C/C++/C#

c# – 异步使用MySQL DB

C#异步读取MySQL数据库的问题解决。 我试图了解异步使用数据库。为此,我用一个表创建了简单的MySQL数据库,然后可以通过以下方式从中获取信息: public static void SyncRe...
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证