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

Posted August 22, 2018 6.8k views
MySQLUbuntu 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.

Submit an Answer
1 answer


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:

sudo dpkg -i mysql-apt-config_0.8.1-1_all.deb
sudo apt update
sudo apt install mysql-server 
sudo systemctl start mysql