简体   繁体   English

在 EC2 Ubuntu 中安装 Mysql 时出现错误“包具有未满足的依赖项”:

[英]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.

相关问题 错误! 以下软件包具有未满足的依赖性:mysql-server - Error ! The following packages have unmet dependencies: mysql-server 如何在安装mysql-server时解决ubuntu 14.04中未满足的依赖关系 - How to solve unmet dependencies in ubuntu 14.04 while installing mysql-server 尝试在 Ubuntu 20.04 中安装 mysql 时未满足的依赖关系 - Unmet dependencies while trying to install mysql in Ubuntu 20.04 为什么在 AWS(Lightsail 和 EC2)上运行的 Ubuntu 18.04 服务器上安装 MYSQL 服务器后出现 ssh 连接错误? - Why do I get ssh connection error after installing MYSQL server on Ubuntu 18.04 running on AWS (Lightsail and EC2)? 在ubuntu EC2实例上安装tomcat 6和mysql服务器 - Installing tomcat 6 and mysql server on ubuntu ec2 instance 将R连接到在Amazon EC2 Ubuntu计算机上运行的MySQL时出错 - Error in connecting R to MySQL running on Amazon ec2 Ubuntu machine 在Ubuntu中安装mysql时获取错误 - fetching Error while installing mysql in ubuntu 通过CloudFormation在EC2上安装mysql客户端 - Installing mysql client on EC2 via CloudFormation 我在ubuntu中安装短信laravel软件包时出错 - I got an error in installing the sms a laravel package in ubuntu 在 AWS EC2 用户 (Amazon Linux) 上安装 MySQL 5.7 时获取损坏的软件包 - Getting broken package while installing MySQL 5.7 on AWS EC2 user (Amazon Linux)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM