首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未在ubuntu上安装mysql-server

未在ubuntu上安装mysql-server
EN

Stack Overflow用户
提问于 2014-12-18 18:19:23
回答 2查看 1.7K关注 0票数 1

我的mysql登录有问题,所以我尝试重新安装mysql-server,但我无法重新安装

*Ubuntu版本13.04

我试着遵循命令

代码语言:javascript
复制
   sudo apt-get update
   sudo apt-get install  mysql-server
   sudo service mysql restart

但它会给出以下错误

代码语言:javascript
复制
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时,它抛出以下错误

代码语言:javascript
复制
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:~# 
EN

回答 2

Stack Overflow用户

发布于 2014-12-18 20:03:21

如果你看一下这里的http://in.archive.ubuntu.com/ubuntu/dists/,你会发现这里没有raring文件夹。这就是为什么你会得到一个404错误。

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

票数 2
EN

Stack Overflow用户

发布于 2018-08-23 02:12:39

下载从服务器更改为软件中的mysql Main Server,并更新 Settings.Then。按照以下命令完全删除服务器(如果存在),然后重新安装。

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27544227

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档