- 工信部备案号 滇ICP备05000110号-1
- 滇公安备案 滇53010302000111
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
Ubuntu 安装 MySQL Server 提示 mysql-server : Depends: mysql-server-5.5
使用 Ubuntu 14.04 系统在安装 mysql-server 时出现如下报错信息:
eading 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 instaed E: Unable to correct problems, you have held broken packages.
可以看到报错是无法解决 mysql-server 安装时的依赖关系导致的。
因为用户是使用 apt-get 的方式安装的,那么这种安装方式通常是能够自动解决依赖关系。
问题原因
因为系统自带的安装源无法解决安装包依赖问题,更换为新的安装源,解决包依赖问题,安装软件。
解决方案
方案一:修改系统 apt-get 更新配置文件
方案二:下载阿里云官方 apt-get 源更新脚本
方案一
cp -a /etc/apt/source.list /etc/apt/source.list.bak //备份/etc/apt/source.list文件 vim /etc/apt/source.list
在最前面添加一下内容
deb http://www.landui.com/ubuntu/ precise main restricted universe multiverse deb http://www.landui.com/ubuntu/ precise-security main restricted universe multiverse deb http://www.landui.com/ubuntu/ precise-updates main restricted universe multiverse deb http://www.landui.com/ubuntu/ precise-proposed main restricted universe multiverse deb http://www.landui.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://www.landui.com/ubuntu/ precise main restricted universe multiverse deb-src http://www.landui.com/ubuntu/ precise-security main restricted universe multiverse deb-src http://www.landui.com/ubuntu/ precise-updates main restricted universe multiverse deb-src http://www.landui.com/ubuntu/ precise-proposed main restricted universe multiverse deb-src http://www.landui.com/ubuntu/ precise-backports main restricted universe multiverse
执行 apt-get update 更新一下列表
方案二
1.下载 apt-get 更新源脚本
wget http://www.landui.com/aliyunecs/update_source.tgz
2.解压并赋权脚本
tar xvf update_source.tgz chmod 777 update_source.sh
3.执行该脚本
./update_source.sh
售前咨询
售后咨询
备案咨询
二维码
TOP