我是debian的新手,我正在尝试安装mysql,但是当我执行以下命令时:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server 然后就会出现这样的错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mysql-server' has no installation candidate另外,当我使用sudo sudo-get更新命令时,会出现以下错误:
Ign:8 https://repo.mysql.com/apt/debian/dists/buster/mysql-8.0/binary-amd64/Packages buster InRelease
Ign:9 https://repo.mysql.com/apt/debian/dists/buster/mysql-tools/binary-i386/Packages buster InRelease
Err:10 https://repo.mysql.com/apt/debian/dists/buster/mysql-8.0/binary-amd64/Packages buster Release
Redirection from https to 'http://www.mysql.com/downloads/embargo.html' is forbidden [IP: 2.20.149.25 443]
Ign:11 http://ppa.launchpad.net/webupd8team/atom/ubuntu eoan InRelease
Err:12 https://repo.mysql.com/apt/debian/dists/buster/mysql-tools/binary-i386/Packages buster Release
Redirection from https to 'http://www.mysql.com/downloads/embargo.html' is forbidden [IP: 2.20.149.25 443]
Err:13 http://ppa.launchpad.net/noobslab/apps/ubuntu eoan Release
404 Not Found [IP: 91.189.95.83 80]发布于 2019-09-11 23:00:28
在Debian中,标准存储库中没有MySql。有一个等价的名称为MariaDB的包mariadb-server。至于错误,您一定遵循了(我猜)一些教程,并在存储库中引入了一些混乱,您很可能现在就应该清理它们。我试着找出存储库列表中到底添加了什么,已经安装了什么,现在应该删除什么。您可以从shell历史记录以及可能的包管理日志中获得此信息。
为了给出一个更全面的答案,您可能需要坚持使用MySql并从他们的安装程序中安装它,但是要确保您确实想要安装它。与Debian的默认MariaDB相比,这是一种更困难的方法。
https://unix.stackexchange.com/questions/541266
复制相似问题