开发者社区> 问答> 正文

ubuntu1404系统apt-get mysql-server报错

执行结果如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.


按照帮助与文档解决方案,结果是一样

展开
收起
steven_1 2016-11-28 17:03:19 5740 0
4 条回答
写回答
取消 提交回答
  • 回 3楼小菜道长的帖子
    和楼主一样,楼主解决了吗

    -------------------------

    Reubuntu1404系统apt-get mysql-server报错
    先注销 /etc/apt/apt.conf 文件中的Acquire::http::Proxy "http://mirrors.aliyun.com/"
    sources.list中添加楼上的源
    2017-01-17 17:02:43
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    回 3楼(小菜道长) 的帖子
    您好,

    欢迎来到阿里云论坛。

    请问您使用的系统镜像是阿里云提供的公共镜像吗?

    -------------------------

    回 5楼(小菜道长) 的帖子
    您好,

    如果您觉得可能是 /etc/apt/sources.list 引起的,或许可以用ubuntu官方的sources.list内容替换试一下。

    -------------------------

    回 7楼(小菜道长) 的帖子
    您好,

    感谢您的更新回复喔,

    您指的是以下的添加内容吗?

    deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
    deb  http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
    deb  http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse




    2016-12-27 17:37:20
    赞同 展开评论 打赏
  • 回 2楼dongshan8的帖子
    先更新 apt-get update 再执行 apt-get install mysql-server  
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    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.
    还是这样

    -------------------------

    回 4楼dongshan8的帖子
    是的,ubuntu 14.4  我在安装freeradius 时候也出现类似情情况 在/etc/apt/sources.list.d/sources-aliyun-0.list增加两条信息后安装完成

    deb XXX mirrors.aliyun.com/ubuntu/ trusty-security main
    deb-src XXX mirrors.aliyun.com/ubuntu/ trusty-security main //不能发带http://的回复删除

    -------------------------

    回 6楼dongshan8的帖子
    sources.list 中加入以下内链接,先apt-get update 再apt-get install mysql-server 问题解决
    deb XXXX://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
    deb  XXXX://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
    deb  XXXX://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb XXXX://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb XXXX://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src  XXXX://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
    deb-src  XXXX://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src  XXXX://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src  XXXX://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src  XXXX://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    2016-12-27 16:40:38
    赞同 展开评论 打赏
  • Reubuntu1404系统apt-get mysql-server报错
    我可以帮你解决

    -------------------------

    应该可以的

    2016-11-29 09:04:58
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载