我在安装时也遇到了问题灶神星使用 DigitalOcean 服务器上的 Ubuntu 18.04.3。我确实在不同的 ubuntu 实例中安装了 gnupg 和 gnupg2 包,并尝试安装 VestaCP。但在这两种情况下,我都遇到了错误。
我的VestaCP安装命令:
bash vst-install.sh --nginx 是 --apache 是 --phpfpm 否 --named 否 --remi 否 --vsftpd 是 --proftpd 否 --iptables 是 --fail2ban 是 --quota 否 --exim 否 --dovecot 否 --spamassassin 否 --clamav 否 --softaculous 否 --mysql 是 --postgresql 否
列出安装 gnupg2 后我遇到的错误:
1. 错误 A:vesta.service 失败
[....] Restarting vesta (via systemctl): vesta.serviceJob for vesta.service failed because the control process exited with error code.
See "systemctl status vesta.service" and "journalctl -xe" for details.
failed!
2.错误B:无法连接到本地MySQL服务器
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dbconfig-common: roundcube configure: noninteractive fail.
dbconfig-common: roundcube configure: ignoring errors from here forwards
3. 错误 C:无法将 /home/gg/.rnd 加载到 RNG
Processing triggers for libapache2-mod-php7.2 (7.2.19-0ubuntu0.18.04.2) ...
Can't load /home/gg/.rnd into RNG
140617335595456:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/gg/.rnd
4. 错误 D: 无法创建目录‘/var/lib/mysql’: 文件存在
2019-10-10 18:09:30 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
2019-10-10 18:09:30 [ERROR] The data directory needs to be specified.
mkdir: cannot create directory ‘/var/lib/mysql’: File exists
2019-10-10T18:09:30.532012Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-10-10T18:09:30.538254Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2019-10-10T18:09:30.538722Z 0 [ERROR] Aborting
更新 1:
VestaCP 论坛中针对同一问题的讨论:
https://forum.vestacp.com/viewtopic.php?f=41&t=16849&start=70