无法安装mysql5.5_无法安装mysql-server-5.5/以下软件包的依赖性不足

在Ubuntu 14.04上尝试安装mysql-server-5.5时遇到依赖性错误。通过执行一系列清理和安装命令,包括使用`sudo apt-get purge`,`sudo apt-get autoremove`,`sudo apt-get autoclean`,以及`sudo apt install`来安装mysql-client-core-5.5和mysql-server,解决了无法安装的问题。确保客户端和服务器版本匹配是关键。
摘要由CSDN通过智能技术生成

问题描述

我是这里的新手,请多多包涵。

我正在使用Ubuntu 14.04。

我尝试使用以下命令输入mysql:

mysql -u root -p

我收到以下消息:

The program mysql can be found on the following packages:

* mysql-client-core-5.5

* mariadb-client-core-5.5

* mysql-client-core-5.6

* percona-xtrabd-cluster-client-5.5

然后输入:

sudo apt-get install mysql-client-core-5.6

安装此程序后,我尝试使用以下方法再次连接到mysql:

mysql -u root -p

然后我得到了错误信息:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

在线搜索后,我发现我需要安装mysql服务器,因此我在以下命令中写道

sudo apt-get install mysql-server

然后我得到消息:

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值