麻烦更新源。很多文件地址是错的
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?
这是源的问题,安装MySQL之前,先更新一把 apt update 然后再search一把,说不定没有MySQL5.6呢
apt search mysql
根据搜索结果再安装MySQL,可能没有MySQL,有mariadb
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。