开发者社区> 问答> 正文

ubuntu apt-get安装mysql失败

麻烦更新源。很多文件地址是错的

root@xZ:~# apt-get install mysql-server-5.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-common-5.6
mysql-server-core-5.6
Suggested packages:
libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perl
libsql-statement-perl libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-common-5.6
mysql-server-5.6 mysql-server-core-5.6
0 upgraded, 10 newly installed, 0 to remove and 150 not upgraded.
Need to get 21.6 MB/22.7 MB of archives.
After this operation, 166 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main mysql-common all 5.5.47-0ubuntu0.14.04.1
404 Not Found [IP: 115.28.122.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libmysqlclient18 amd64 5.5.47-0ubuntu0.14.04.1
404 Not Found [IP: 115.28.122.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/universe mysql-client-core-5.6 amd64 5.6.28-0ubuntu0.14.04.1
404 Not Found [IP: 115.28.122.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/universe mysql-client-5.6 amd64 5.6.28-0ubuntu0.14.04.1
404 Not Found [IP: 115.28.122.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/universe mysql-server-core-5.6 amd64 5.6.28-0ubuntu0.14.04.1
404 Not Found [IP: 115.28.122.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/universe mysql-server-5.6 amd64 5.6.28-0ubuntu0.14.04.1
404 Not Found [IP: 115.28.122.210 80]
Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/universe mysql-common-5.6 all 5.6.28-0ubuntu0.14.04.1
404 Not Found [IP: 115.28.122.210 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/mysql-common_5.5.47-0ubuntu0.14.04.1_all.deb 404 Not Found [IP: 115.28.122.210 80]

E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.47-0ubuntu0.14.04.1_amd64.deb 404 Not Found [IP: 115.28.122.210 80]

E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/universe/m/mysql-5.6/mysql-client-core-5.6_5.6.28-0ubuntu0.14.04.1_amd64.deb 404 Not Found [IP: 115.28.122.210 80]

E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/universe/m/mysql-5.6/mysql-client-5.6_5.6.28-0ubuntu0.14.04.1_amd64.deb 404 Not Found [IP: 115.28.122.210 80]

E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/universe/m/mysql-5.6/mysql-server-core-5.6_5.6.28-0ubuntu0.14.04.1_amd64.deb 404 Not Found [IP: 115.28.122.210 80]

E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/universe/m/mysql-5.6/mysql-server-5.6_5.6.28-0ubuntu0.14.04.1_amd64.deb 404 Not Found [IP: 115.28.122.210 80]

E: Failed to fetch http://mirrors.aliyun.com/ubuntu/pool/universe/m/mysql-5.6/mysql-common-5.6_5.6.28-0ubuntu0.14.04.1_all.deb 404 Not Found [IP: 115.28.122.210 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

展开
收起
zqfzz 2016-05-23 14:52:12 8529 0
3 条回答
写回答
取消 提交回答
  • 这是源的问题,安装MySQL之前,先更新一把 apt update 然后再search一把,说不定没有MySQL5.6呢

    apt search mysql
    

    根据搜索结果再安装MySQL,可能没有MySQL,有mariadb

    2021-10-11 17:48:44
    赞同 展开评论 打赏
  • 题主是新的云主机吗,可以先sudo apt-get update; sudo apt-get upgrade下

    2019-07-17 19:11:08
    赞同 2 展开评论 打赏
  • 旺旺:nectar2。

    您好,

    请问您使用的是阿里云公共镜像里的ubuntu 14 64位系统吗?

    2019-07-17 19:11:08
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

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