iRedMail MySQL 安装提示输入密码,挂起

iRedMail MySQL 安装提示输入密码,挂起

我正在一个相对较新的 Ubuntu VPS 上安装 iRedMail,运行 16.04.1 LTS。iRedMail 安装程序会安装 MySQL,它会在下面的此处停止,提示输入密码,然后以纯文本形式回显字符,此时我必须终止安装程序并强制删除损坏mysql-server-5.7软件包的残余内容。

root@calesius:~# apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl
  liblwp-mediatypes-perl libtimedate-perl liburi-perl mysql-client-5.7 mysql-server-5.7
Suggested packages:
  libdata-dump-perl libipc-sharedcache-perl libwww-perl mailx tinyca
The following NEW packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl
  liblwp-mediatypes-perl libtimedate-perl liburi-perl mysql-client-5.7 mysql-server mysql-server-5.7
0 upgraded, 16 newly installed, 0 to remove and 74 not upgraded.
Need to get 0 B/5264 kB of archives.
After this operation, 84.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package mysql-client-5.7.
(Reading database ... 87430 files and directories currently installed.)
Preparing to unpack .../mysql-client-5.7_5.7.17-0ubuntu0.16.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.17-0ubuntu0.16.04.1) ...
Selecting previously unselected package mysql-server-5.7.
Preparing to unpack .../mysql-server-5.7_5.7.17-0ubuntu0.16.04.1_amd64.deb ...
Password:

我尝试过许多不同的方法来删除和清除所有配置和文件,但都无济于事。似乎没有其他人在此时遇到此错误,并且这是对最新支持的 MySQL 和 Ubuntu 版本的全新安装。

任何帮助都将受到赞赏。

答案1

我能够通过从 MySQL 网站下载软件包来获得有效的密码提示。 apt-get仍然冻结。然而,根本问题实际上是聚丙烯酰胺配置问题。我随意地在配置中包含了该use_authtok选项,这阻止了任何检查密码的操作。我仍然不确定为什么安装需要它,但至少它起作用了。password/etc/pam.d/

相关内容