My sql installation error in Ubuntu - 12.04

11,031

That error means that the package name is not correct, try

apt-cache search mysql-server

write down the package name you want to install and retry

sudo apt-get install correct-package-name

Another answer might be that you don't have the correct repository where the package is stored. From here you can see that you should enable the security repository. Here you can see how to do that.

Edit:

As Tuim stated, it can also be the '.' in the name, but that's only the case when the exact expression is not found (apt-get manual):

If no package matches the given expression and the expression contains one of ".", "?" or "*" then it is assumed to be a POSIX regular expression, and it is applied to all package names in the database. Any matches are then installed (or removed).

So I still think that you have an issue with the repository.

Share:
11,031
tusharmakkar08
Author by

tusharmakkar08

Want to be a good programmer. #SOreadytohelp

Updated on July 13, 2022

Comments

  • tusharmakkar08
    tusharmakkar08 almost 2 years

    When i write the command

        sudo apt-get install mysql-server-5.5 
    

    I get the following error message

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package mysql-server-5.5
    E: Couldn't find any package by regex 'mysql-server-5.5'
    

    Please tell me how to remove it ?