【问题标题】:I got error "packages have unmet dependencies" while Installing Mysql in EC2 Ubuntu:在 EC2 Ubuntu 中安装 Mysql 时出现错误“软件包具有未满足的依赖项”:
【发布时间】:2022-10-30 15:12:40
【问题描述】:

我尝试在 ec2 ubuntu-xenial-16.04 上安装 mysql。当我尝试运行此命令时:

sudo apt-get install mysql-server

我收到如下错误:

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).

有什么建议吗?

【问题讨论】:

  • 这个命令sudo apt-get install -f 解决了我的问题。

标签: mysql ubuntu ubuntu-16.04


【解决方案1】:

尝试这个:

更新回购

sudo apt-get update

安装缺少依赖项的 mysql-server

sudo apt-get install -f mysql-server 

【讨论】:

  • 谢谢你的回答。试过但一样
【解决方案2】:

这个命令sudo apt-get install -f 解决了我的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-07-05
    • 1970-01-01
    • 2017-11-17
    • 1970-01-01
    • 2014-11-01
    • 2018-09-18
    • 2016-01-06
    • 1970-01-01
    相关资源
    最近更新 更多