0
$ sudo apt-get install mysql-server
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mysql-server

I am using Ubuntu 14.04.

Zanna
  • 72,312
Rahul
  • 3
  • 1
  • 3

2 Answers2

1

mysql-server is a metapackage depending on the latest version of mysql-server, so it doesn't need to be installed. Open the terminal and type:

sudo apt-get update
sudo apt-get install aptitude
sudo aptitude install mysql-server-5.5 mysql-server-core-5.5
karel
  • 122,292
  • 133
  • 301
  • 332
0

You should first check whether the package you are searching for exists by opening the terminal and typing:

apt search <your package name>

Select the package you want to install by typing

sudo apt-get install <the package name you found after searching>

You can do this also in the synaptic package manager app.

Zanna
  • 72,312