下载 mysql 时遇到问题

下载 mysql 时遇到问题

因此,我正在为 DVWA 下载 mysql (https://medium.com/@sinxloud/setup-install-dvwa-into-your-linux-distribution-d76dc3b80357)我得到:

root@kali:~# *sudo apt 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
root@kali:~# *mysql -u root -p*
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
root@kali:~# 

有人知道该如何解决吗?

答案1

尝试运行apt updateapt upgrade,然后尝试再次下载 MySQL-server。也许您的计算机上的软件包列表未更新。

顺便问一下,你为什么要使用 Ubuntu 10?它很多年前就过时了,这意味着它不会再收到安全更新,这使其容易受到攻击。你应该升级到较新的版本。

相关内容