Unable to locate package mariadb

Solved
aymen_00 Posted messages 3 Status Membre -  
mamiemando Posted messages 33541 Registration date   Status Modérateur 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 réponses

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