Question

E: Unable to locate package mysql on Vagrant machine and how to install it

Posted August 22, 2018 1.2k views
MySQL Ubuntu 16.04

sudo apt-get update
sudo apt-get install mysql-server

I`“ have tried this but unable to install it.
its shows an error saying: the following packages cannot be authenticated.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Hello,

Indeed as X40C suggested try running sudo apt-key update and sudo apt-get update and then run the sudo apt-get install mysql-server command.

Or another approach would be to use the MySQL APT Repository:

wget https://repo.mysql.com//mysql-apt-config_0.8.9-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.1-1_all.deb
sudo apt update
sudo apt install mysql-server 
sudo systemctl start mysql 

Regards,
Bobby

Submit an Answer