apt-get install 的替换命令及mysql安装问题的解决

本文介绍了解决Ubuntu系统中MySQL安装时遇到的依赖问题的方法,包括使用aptitude进行安装及手动解决缺失的Perl包。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
 mysql-server : Depends: mysql-server-5.5 but it is not going to be installed

E: Unable to correct problems, you have held broken packages.


安装mysql时候出现上述错误,

使用:sudo aptitude install mysql-server  安装能够解决版本依赖的问题

The following actions will resolve these dependencies:


     Keep the following packages at their current version:
1)     libdbd-mysql-perl [Not Installed]                  
2)     libdbi-perl [Not Installed]                        
3)     libterm-readkey-perl [Not Installed]               
4)     mysql-client-5.5 [Not Installed]                   
5)     mysql-server [Not Installed]                       
6)     mysql-server-5.5 [Not Installed]


上述命令提示安装 perlapi-5.14.2

  • perlapi-5.14.2
    本虚包由这些包填实:  perl-base

    http://packages.ubuntu.com/precise/liblocale-gettext-perl

    用命令安装有问题,到上面网址下载对应的

    perl-base_5.14.2-6ubuntu2.4_amd64.deb (上面下载不到还可以到这里下载

    http://download.youkuaiyun.com/detail/maixia24/8417441)

    安装上之后,再执行最初的命令,第一遍会出错,再执行一遍,安装mysql成功。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值