ubuntu1404系统apt-get mysql-server报错-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

ubuntu1404系统apt-get mysql-server报错

steven_1 2016-11-28 17:03:19 4772
执行结果如下:
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)
  • didiao11300
    2017-01-17 17:02:43
    回 3楼小菜道长的帖子
    和楼主一样,楼主解决了吗

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

    Reubuntu1404系统apt-get mysql-server报错
    先注销 /etc/apt/apt.conf 文件中的Acquire::http::Proxy "http://mirrors.aliyun.com/"
    sources.list中添加楼上的源
    0 0
  • dongshan8
    2016-12-27 17:37:20
    回 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




    0 0
  • 小菜道长
    2016-12-27 16:40:38
    回 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
    0 0
  • xzphpsir
    2016-11-29 09:04:58
    Reubuntu1404系统apt-get mysql-server报错
    我可以帮你解决

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

    应该可以的

    0 0
添加回答
云计算
使用钉钉扫一扫加入圈子
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章