0

I followed this article to install mariadb on Ubuntu 20.04.4 LTS. However, I was shown these messages

Reading package lists... Done
Building dependency tree     
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:
 mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.34-0ubuntu0.20.04.1) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

Thus, I couldn't start the server or check its status. I've tried to remove repos of mariadb as this post suggested, but no repos available. What should I do?

UPDATED: When I use sudo apt update, the following appear

Hit:1 http://vn.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://vn.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://vn.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
Building dependency tree     
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
5
  • Hello. Please do not show pictures of text. Always cut and paste the text into the body of the question.
    – David
    Apr 3 at 14:55
  • I see. Thanks for the feedback
    – Phuc Dong
    Apr 3 at 14:56
  • Please edit your Question above to include the complete output of sudo apt update
    – user535733
    Apr 3 at 18:29
  • @user535733 Hi there. I added the output of that command line.
    – Phuc Dong
    Apr 5 at 7:37
  • 10 packages can be upgraded. Run sudo apt upgrade. If there are any errors, post the entire output. If there are no errors, then try installing mariadb-server again.
    – user535733
    Apr 5 at 11:53

1 Answer 1

0

https://mariadb.org/download/?t=repo-config&d=21.04+%22hirsute%22&v=10.5&r_m=23Media Please note - MariaDB 10.3 is not for Ubuntu 20.04 and above. Please try to install MariaDB 10.6 - it works smoothly.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.