Missing mysql package

Solved
mp -  
 Bilbat -
Hello,

I need to install my LAMP server, and I'm having trouble installing
mysql-server
: : E: the package is not installable *

I've done everything, updated, upgraded
/etc/apt/source.list
, purged, reinstalled, still the same message.

Thank you for your help
Dnr

1 réponse

mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 
Hello,

Thank you for not using abbreviations, for reporting the exact error messages as well as your file
/etc/apt/sources.list
.

Short answer

The package you are looking for does not currently bear this name. You probably need to run (as root) instead this:

apt update
apt install default-mysql-server


Detailed answer

When you find yourself in this kind of situation, you should start by doing two things:

1) A search in the packages, with
apt search ...
(or
apt-cache search ...
) and packages.debian.org. You would have then seen this:

(mando@silk) (~) $ apt search mysql-server
Sorting... Done
Searching in text... Done
default-mysql-server/testing,testing 1.0.5 all
MySQL database server binaries and system database setup (metapackage)

default-mysql-server-core/testing,testing 1.0.5 all
MySQL database server binaries (metapackage)


2) If the package is found on packages.debian.org but not with
apt search ...
,
apt-cache search ...
, then the question of the repositories configured in
/etc/apt/sources.list
arises. The page packages.debian.org allows you to see which versions of Debian provide this package.

As shown on this page, it is available in Debian stretch, buster, and bullseye (which correspond to the current oldstable, stable, and testing versions).

Good luck.
10
mp
 
Thank you very much mamiemando for your response.

I couldn't copy/paste the commands and messages displayed on my terminal to post them, I have a sound problem as well as the copy paste issue after an update.
I executed "default -mysql-install" and I received the message

"errors were encountered during the execution of inetsim"
E: sub-process /usr/bin/dpkg returned an error code (1)
0
mamiemando Posted messages 33540 Registration date   Status Modérateur Last intervention   7 927
 
Hello,

Copying and pasting is easy, just like on Windows: you select, right-click, copy, and to paste, right-click and paste in the appropriate window. This works particularly well in a graphical terminal (e.g. xterm, gnome-terminal, konsole...).

If you are unable to copy and paste, type the commands exactly. Here, given your error message, you didn't type the commands I indicated. The command is not
default -mysql-install
but, as root,
apt install default-mysql-server
.

Good luck.
0
Bilbat
 
Thank you. Your post was very helpful to me. I was using the command apt-get install mysql-server instead of apt-get install default-mysql-server, and it wasn't working.
0