skip to Main Content

I try to install mysql on ec2 ubuntu-xenial-16.04. When I try to run this command:

sudo apt-get install mysql-server

I got an error like:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-headers-5.13.0-1028-aws : Depends: linux-aws-5.13-headers-5.13.0-1028 but it is not going to be installed
 mysql-server : Depends: mysql-server-8.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Is there any suggestion?

2

Answers


  1. Chosen as BEST ANSWER

    This command sudo apt-get install -f solved my problem.


  2. try this:

    Update the repo

    sudo apt-get update
    

    Install mysql-server with the missing dependencies

    sudo apt-get install -f mysql-server 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search