Ubuntu“E:无法找到包 mysql" [英] Ubuntu "E: Unable to locate package mysql"

查看:50
本文介绍了Ubuntu“E:无法找到包 mysql"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法解决问题,因为没有任何帮助.尝试安装 mysql 但未找到包.gedit 和其他一些包看起来一样.

Can't solve the problem because nothing helps. Try to install mysql but package is not found. gedit and some other packages looks the same.

首先,存储库具有子域by".(因为区域设置).但是我将它们更改为没有子域的主服务器.也许这引起了问题?

Firstly repositories were with subdomain 'by.' (because of regional settings). But I changed them to main server without subdomain. Maybe this caused problems?

我使用 xubuntu 16.04 xenial xerus.

I use xubuntu 16.04 xenial xerus.

source.list 是

source.list is

# deb cdrom:[Xubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main multiverse restricted universe

deb http://archive.ubuntu.com/ubuntu xenial main restricted    
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted    
deb http://archive.ubuntu.com/ubuntu xenial universe    
deb http://archive.ubuntu.com/ubuntu xenial-updates universe    
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse   
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse    
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner    
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted    
deb http://archive.ubuntu.com/ubuntu xenial-security universe    
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse

apt-get update, apt-get upgrade 没有帮助

推荐答案

存储库中没有名为mysql"的包.

There is no package with the name of 'mysql' in the repositories.

如果你想连接其他mysql服务器,你需要mysql-client包:sudo apt-get install mysql-client.

If you would like to to connect other mysql servers, you need the mysql-client package: sudo apt-get install mysql-client.

如果你想托管一个数据库,你需要 mysql-server 包:sudo apt-get install mysql-server.

If you want to host a database you need the mysql-server package: sudo apt-get install mysql-server.

安装指南:https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04

这篇关于Ubuntu“E:无法找到包 mysql"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆