mysql-server
我使用以下命令意外地从我的 Kali Linux 2017.1 中删除了它:
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get auto remove
sudo apt-get autoclean
当我尝试使用命令重新安装它时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
请告诉我如何mysql-server
完全重新安装?
答案1
Kali Linux 在安装中使用最常用的 MariaDB,而不是 MySQL。您可以通过以下方式安装 MariaDB:
apt install mariadb-server
答案2
mysql-server
是一个元包。真正的包可能是mysql-server-5.7
(mysql-client 也一样)。