Unable to locate package mariadb

Solved
Hello,

I can't install
mariadb
on Ubuntu.

When I type the command
sudo apt-get install mariadb-server mariadb-client 
, I get this message:

No version of the mariadb-server package is available, but it exists in the database.
This generally means that the package is missing, has become obsolete,
or is only available from another source.

<bold>No version of the mariadb-client package is available, but it exists in the database.
This generally means that the package is missing, has become obsolete,
or is only available from another source.

E: The package "mariadb-server" has no version available for installation.
E: The package "mariadb-client" has no version available for installation.

3 answers

  1. Hello, which version of Ubuntu are you on?
    1
    1. Ubuntu 22.04
      0
  2. Hello,
    MariaDB is normally available in the repositories of Ubuntu 22.04.
    Try:
    sudo apt update
    sudo apt install mariadb
    1
    1. ok thank you M.jns55 it's working
      0
      1. Moderator
        Hello,

        In the future, you can find the exact name of the package using
        apt search mariadb
        (provided that one of the repositories referenced in
        /etc/apt/sources.list*
        provides such a package).

        Best of luck
        0