![意外从 kali linux 2017.1 中删除了 mysql-server。如何重新安装它?](https://linux22.com/image/1538501/%E6%84%8F%E5%A4%96%E4%BB%8E%20kali%20linux%202017.1%20%E4%B8%AD%E5%88%A0%E9%99%A4%E4%BA%86%20mysql-server%E3%80%82%E5%A6%82%E4%BD%95%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85%E5%AE%83%EF%BC%9F.png)
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 也一样)。