Php mysql服务器未安装在ubuntu上

Php mysql服务器未安装在ubuntu上,php,mysql,ubuntu,Php,Mysql,Ubuntu,我在mysql登录时遇到问题,所以我尝试重新安装mysql服务器,但无法重新安装 *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 Buildi

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

*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?
当我尝试在此之后重新启动/status时,它会抛出以下错误

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.ubuntu.com/

下载从服务器更改为软件中的主服务r并更新设置。然后按照以下命令删除mysql服务器(如果存在)完全安装并重新安装

sudo apt-get remove --purge mysql-server mysql-client mysql-common mysql-server-5.5 mysql-client-5.5 mysql-server-core-5.5 mysql-client-core-5.5
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /var/lib/mysql /etc/mysql
sudo deluser mysql
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot
sudo apt-get install mysql-server-5.6

请稍等片刻。似乎下载服务器当前不可用。我从早上开始就这样做,但每次都会抛出相同的错误。@SunilKumar您应该使用
sudo apt get update
更新操作系统,然后再试一次。您告诉我为什么有人否决了它,因为我从早上开始就试图解决这个问题,但我无能为力,所以我来了这里。似乎否决它的人一定知道解决方案,所以你能分享它吗?因此,只有在将我的操作系统升级到最新版本后才有可能。请先尝试更新/etc/apt/sources.list。