简体   繁体   English

Ubuntu “E:无法定位 package mysql”

[英]Ubuntu "E: Unable to locate package mysql"

Can't solve the problem because nothing helps.无法解决问题,因为没有任何帮助。 Try to install mysql but package is not found.尝试安装 mysql 但未找到 package。 gedit and some other packages looks the same. gedit 和其他一些包看起来一样。

Firstly repositories were with subdomain 'by.'首先存储库带有子域“by”。 (because of regional settings). (由于区域设置)。 But I changed them to main server without subdomain.但是我将它们更改为没有子域的主服务器。 Maybe this caused problems?也许这引起了问题?

I use xubuntu 16.04 xenial xerus.我使用 xubuntu 16.04 xenial xerus。

source.list is source.list 是

# 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 doesn't help apt-get updateapt-get upgrade没有帮助

There is no package with the name of 'mysql' in the repositories.存储库中没有名为“mysql”的包。

If you would like to to connect other mysql servers, you need the mysql-client package: sudo apt-get install mysql-client .如果您想连接其他 mysql 服务器,则需要 mysql-client 包: sudo apt-get install mysql-client

If you want to host a database you need the mysql-server package: sudo apt-get install mysql-server .如果要托管数据库,则需要 mysql-server 包: sudo apt-get install mysql-server

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

sudo apt-get update && sudo apt-get dist-upgrade sudo apt-get update && sudo apt-get dist-upgrade

then然后

sudo apt-get install mysql-server须藤 apt-get 安装 mysql-server

Try using deb http://kali.download/kali/ kali-rolling main contrib non-free in your sources.list file.尝试在您的 sources.list 文件中使用 deb http://kali.download/ kali/ kali-rolling main contrib non-free。

Then run apt update & upgrade然后运行 apt update & upgrade

then run apt install mysql-server然后运行 apt install mysql-server

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM