dpkg:错误处理包mysql-server(依赖问题)? [英] dpkg: error processing package mysql-server (dependency problems)?

查看:61
本文介绍了dpkg:错误处理包mysql-server(依赖问题)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装 mysql-server 时,出现如下错误:

When I try to install mysql-server, an error comes like:

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

什么意思.有什么想法吗?

What does it mean. Any ideas?

推荐答案

dpkg 返回错误代码 1 并不意味着任何特定的事情,但它通常与依赖问题有关.在您的情况下,您尝试安装同一包的两个版本/实例,即 mysql-servermysql-server-5.7.因此,请执行以下操作以消除任何冗余的依赖问题并安装一个正常运行的 mysql 包

dpkg returning an error code 1 doesn't mean anything specific but it usually has to do with dependency issues. In your case, you tried to install two versions/instances of the same package i.e. mysql-server and mysql-server-5.7. So do the following to remove any redundant dependency issues and install a functioning mysql package

sudo apt-get clean
sudo apt-get purge mysql*
sudo apt-get update
sudo apt-get install -f
sudo apt-get install mysql-server-5.7
sudo apt-get dist-upgrade

这应该可以解决手头的问题.但是将来,请注意在 sudo apt-get install 之后添加的软件包名称,因为错误的软件包名称列表(例如列表中的冗余条目)会导致安装失败包裹或更糟 - 你甚至可能会发现自己在#DEPENDENCY-HELL

this should fix the problem at hand. But in the future, have care about the package names you add after sudo apt-get install since the wrong list of package names - for example redundant entries in the list - results in failure to install either of the packages or worse - you might even find yourself wading through the hellish depths of #DEPENDENCY-HELL

这篇关于dpkg:错误处理包mysql-server(依赖问题)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆