[英]I got error "packages have unmet dependencies" while Installing Mysql in EC2 Ubuntu:
I try to install mysql on ec2 ubuntu-xenial-16.04.我尝试在 ec2 ubuntu-xenial-16.04 上安装 mysql。 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?有什么建议吗?
try this:尝试这个:
Update the repo更新回购
sudo apt-get update
Install mysql-server with the missing dependencies安装缺少依赖项的 mysql-server
sudo apt-get install -f mysql-server
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.