root@1:~# sudo apt-get install mysql-server -y
sudo: unable to resolve host iZm5ej8y1b74lo14r36fvlZ
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server
决办法:
第一种方法输入命令sudo apt-get update:
软件源没有更新导致,或者是修改了软件源,
sudo apt-get update
第二种方法:需要换一个软件源
更换软件源方法参考:
https://blog.csdn.net/weixin_41374755/article/details/105883557