Unable to locate package mariadb

Solved
aymen_00 Posted messages 3 Status Member -  
mamiemando Posted messages 33173 Registration date   Status Moderator Last intervention   -
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. maxpfsense
     
    Hello, which version of Ubuntu are you on?
    1
    1. aymen_00 Posted messages 3 Status Member
       
      Ubuntu 22.04
      0
  2. jns55
     
    Hello,
    MariaDB is normally available in the repositories of Ubuntu 22.04.
    Try:
    sudo apt update
    sudo apt install mariadb
    1
  3. aymen_00 Posted messages 3 Status Member
     
    ok thank you M.jns55 it's working
    0
    1. mamiemando Posted messages 33173 Registration date   Status Moderator Last intervention   7 945
       
      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