I am trying to install mysql-server
on my Debian servers. I am following the documentation at dev.mysql.com
.
-
I start in /tmp/.
-
I get wget https://dev.mysql.com/get/mysql-apt-config_0.8.30-1_all.deb.
-
I dpkg -i the file i just downloaded.
-
I do the config setting.
-
sudo apt update. The error:
Err:1 http://repo.mysql.com/apt/debian buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
Reading package lists... Done
W: GPG error: http://repo.mysql.com/apt/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
E: The repository 'http://repo.mysql.com/apt/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
- pro forma sudo apt install mysql-server, the error: No installation candidate.
This must be the hundredth time I’ve done this in my life. Why is this suddenly not working?
0
You might have a version of apt-get that requires the –allow-unauthenticated option to install from a downloaded .deb package. See https://manpages.debian.org/bookworm/apt/apt-get.8.en.html
Personally I would add the MySQL repository to the repository list permanently, a la Appendix A: Adding and Configuring the MySQL APT Repository Manually in https://dev.mysql.com/doc/refman/8.4/en/linux-installation-apt-repo.html I’ve done the yum equivalent before.