我目前正在尝试在我的 Ubuntu 13.04 机器上安装 MySQL 服务器。问题是,当我尝试安装它时,我收到错误消息,指出并非所有软件包都可以下载。当我运行sudo apt-get install mysql-server
,并在读取标题处挂起一段时间后,控制台显示如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 libnet-daemon-perl libplrpc-perl mysql-client-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
libipc-sharedcache-perl tinyca mailx
The following NEW packages will be installed:
libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18 libnet-daemon-perl libplrpc-perl mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 12 newly installed, 0 to remove and 3 not upgraded.
Need to get 8,077 kB/24.5 MB of archives.
After this operation, 84.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://us.archive.ubuntu.com/ubuntu/ raring-updates/main mysql-client-5.5 i386 5.5.32-0ubuntu0.13.04.1
Connection failed [IP: 91.189.91.13 80]
Err http://security.ubuntu.com/ubuntu/ raring-security/main mysql-client-5.5 i386 5.5.32-0ubuntu0.13.04.1
Connection failed [IP: 91.189.92.190 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-5.5_5.5.32-0ubuntu0.13.04.1_i386.deb Connection failed [IP: 91.189.92.190 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我尝试了建议的修复方法或运行 apt-get update 等,确保没有连接被阻止,重启、卸载、重新安装等,但都无济于事。我整天都在网上搜索尚未尝试的解决方案,但大多数遇到此问题的人都在运行旧版本的 Ubuntu。(顺便说一句,我确实尝试过解决方案这里) 有什么建议吗?
答案1
尝试使用命令sudo apt-get autoclean && sudo apt-get update && sudo apt-get upgrade
然后尝试sudo apt-get install -f
看看是否可以安装mysql-server
。