Cannot install mysql-server on Ubuntu 16.04

I have been trying for 2 days to install mysql-server, following a linode guide:

https://www.linode.com/docs/websites/le … untu-16-04">https://www.linode.com/docs/websites/lemp/lemp-server-on-ubuntu-16-04

After running

sudo apt-get install mysql-server

The installation starts, but it blocks here:

Renaming removed key_buffer and myisam-recover options (if present)

I have a 10usd/month linode instance, on which I run ubuntu 16.04.

Everything is very standard, and I followed all guides from linode to configure my server.

I have tried many different solutions already, including:

  • purging every mysql* package, removing all configuration file, running apt-get update, apt-get upgrade and retrying the install

  • try to fix the my.cnf file after the failed installing and repair the installation with apt-get install -f

  • run dpkg –configure -a, apt-get install -f

None of these solutions worked

I am absolutely hopeless. If I cant install mysql on linode then its absolutely useless to me…

Help would be very appreciated, thanks.

1 Reply

Hello,

I'm sorry you're seeing these issues, but I can't replicate this. I've spun up a new Ubuntu 16.04 server and have successfully run sudo apt-get install mysql-server, installing the database with no issues. Can you confirm that you ran 'sudo apt-get update' and a 'sudo apt-get upgrade' first?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct