php - mysql-server 没有安装在 ubuntu 上

标签 php mysql ubuntu

我在 mysql 登录时遇到问题,所以我尝试重新安装 mysql-server 但我无法重新安装

*Ubuntu 版本 13.04

我尝试了以下命令

   sudo apt-get update
   sudo apt-get install  mysql-server
   sudo service mysql restart

但它给出了以下错误

root@bts23:~# 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 libmysqlclient18 libnet-daemon-perl libplrpc-perl libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5
  mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
  tinyca mailx
The following NEW packages will be installed:
  libaio1 libdbd-mysql-perl libdbi-perl libmysqlclient18 libnet-daemon-perl libplrpc-perl libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5
  mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 13 newly installed, 0 to remove and 1 not upgraded.
Need to get 26.1 MB/26.2 MB of archives.
After this operation, 91.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? y


WARNING: The following packages cannot be authenticated!
  libaio1 mysql-common libmysqlclient18 libnet-daemon-perl libplrpc-perl libdbi-perl libdbd-mysql-perl mysql-client-core-5.5 libterm-readkey-perl
  mysql-client-5.5 mysql-server-core-5.5 mysql-server-5.5 mysql-server
Install these packages without verification [y/N]? y
Err http://in.archive.ubuntu.com/ubuntu/ raring/main libaio1 i386 0.3.109-3
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main mysql-common all 5.5.29-0ubuntu1
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main libmysqlclient18 i386 5.5.29-0ubuntu1
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main libdbi-perl i386 1.622-1
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main libdbd-mysql-perl i386 4.021-1
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main mysql-client-core-5.5 i386 5.5.29-0ubuntu1
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main mysql-client-5.5 i386 5.5.29-0ubuntu1
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main mysql-server-core-5.5 i386 5.5.29-0ubuntu1
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main mysql-server-5.5 i386 5.5.29-0ubuntu1
  404  Not Found [IP: 91.189.91.13 80]
Err http://in.archive.ubuntu.com/ubuntu/ raring/main mysql-server all 5.5.29-0ubuntu1
  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.109-3_i386.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-common_5.5.29-0ubuntu1_all.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.29-0ubuntu1_i386.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.622-1_i386.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/libd/libdbd-mysql-perl/libdbd-mysql-perl_4.021-1_i386.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-core-5.5_5.5.29-0ubuntu1_i386.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-5.5_5.5.29-0ubuntu1_i386.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-core-5.5_5.5.29-0ubuntu1_i386.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-5.5_5.5.29-0ubuntu1_i386.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server_5.5.29-0ubuntu1_all.deb  404  Not Found [IP: 91.189.91.13 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

当我在此之后尝试重新启动/状态时,它会抛出以下错误

root@bts23:~# service mysql restart
mysql: unrecognized service
root@bts23:~# mysql
The program 'mysql' is currently not installed. You can install it by typing:
apt-get install mysql-client-core-5.5
root@bts23:~# 

最佳答案

如果您在此处查看http://in.archive.ubuntu.com/ubuntu/dists/,您会发现没有raring 文件夹。这就是您收到 404 错误的原因。

对 Ubuntu 13.04 的支持于 2014 年 1 月 27 日正式结束。如果您仍想使用此版本,请尝试使用 http://old-releases 更新您的源文件 (/etc/apt/sources.list) .ubuntu.com/

关于php - mysql-server 没有安装在 ubuntu 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27544227/

相关文章:

mysql - PHP MYSQL - 返回不相同的值

mysql - 如果不满足查询中的条件,mysql 是否会移动到下一行?

Apache 正在运行但无法正常工作

python - 从服务运行时出现服务器内部服务器错误

php - 如何在拨号方案中获取 dtmf 值

mysql - 按另一个表中的时间戳对 MySQL 查询进行排序

php - 我的关联数组的顺序会从 PHP 到 Javascript 保持不变吗?

bash -/.profile与/.bashrc在ubuntu14.04上的hadoop变量

php - 获取购物车中产品的 SKU Wordpress

php - 写数据库时如何整合继承技术