当前位置: 技术问答>linux和unix
ubuntu安装mysql有问题
来源: 互联网 发布时间:2017-05-24
本文导语: 我在ubuntu中安装mysql,使用的是apt-get。但是再输入sudo apt-get install mysql-server后,出现这种情况: Do you want to continue [Y/n]? y Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libaio1 i386 0.3.109-4 Could not resolve 'us.archi...
我在ubuntu中安装mysql,使用的是apt-get。但是再输入sudo apt-get install mysql-server后,出现这种情况:
Do you want to continue [Y/n]? y
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libaio1 i386 0.3.109-4
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libdbi-perl i386 1.627-1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libdbd-mysql-perl i386 4.023-1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main mysql-client-core-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libterm-readkey-perl i386 2.30-4build4
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libhtml-template-perl all 2.91-1
Could not resolve 'us.archive.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-client-core-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-client-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-server-core-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-server-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-server all 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.109-4_i386.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.627-1_i386.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libd/libdbd-mysql-perl/libdbd-mysql-perl_4.023-1_i386.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-core-5.5_5.5.37-0ubuntu0.13.10.1_i386.deb Could not resolve 'security.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libt/libterm-readkey-perl/libterm-readkey-perl_2.30-4build4_i386.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-5.5_5.5.37-0ubuntu0.13.10.1_i386.deb Could not resolve 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-core-5.5_5.5.37-0ubuntu0.13.10.1_i386.deb Could not resolve 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-5.5_5.5.37-0ubuntu0.13.10.1_i386.deb Could not resolve 'security.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libh/libhtml-template-perl/libhtml-template-perl_2.91-1_all.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server_5.5.37-0ubuntu0.13.10.1_all.deb Could not resolve 'security.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
请问这是什么原因啊?
Do you want to continue [Y/n]? y
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libaio1 i386 0.3.109-4
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libdbi-perl i386 1.627-1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libdbd-mysql-perl i386 4.023-1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main mysql-client-core-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libterm-readkey-perl i386 2.30-4build4
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libhtml-template-perl all 2.91-1
Could not resolve 'us.archive.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-client-core-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-client-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-server-core-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-server-5.5 i386 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ saucy-security/main mysql-server all 5.5.37-0ubuntu0.13.10.1
Could not resolve 'security.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.109-4_i386.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.627-1_i386.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libd/libdbd-mysql-perl/libdbd-mysql-perl_4.023-1_i386.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-core-5.5_5.5.37-0ubuntu0.13.10.1_i386.deb Could not resolve 'security.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libt/libterm-readkey-perl/libterm-readkey-perl_2.30-4build4_i386.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-5.5_5.5.37-0ubuntu0.13.10.1_i386.deb Could not resolve 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-core-5.5_5.5.37-0ubuntu0.13.10.1_i386.deb Could not resolve 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-5.5_5.5.37-0ubuntu0.13.10.1_i386.deb Could not resolve 'security.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libh/libhtml-template-perl/libhtml-template-perl_2.91-1_all.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server_5.5.37-0ubuntu0.13.10.1_all.deb Could not resolve 'security.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
请问这是什么原因啊?
|
很明显你的配置中的网址不能使用,提示是不用解析到,换个网址试试