我需要在没有密码提示的情况下在 Ubuntu 中安装 MariaDB 服务器。为此,我执行了以下命令,但它没有给我任何进展。它再次显示密码提示。
我使用了以下命令:
export DEBIAN_FRONTEND=noninteractive
echo mariadb-server-5.5 mariadb-server/root_password password mypass | debconf-set-selections
echo mariadb-server-5.5 mariadb-server/root_password_again password mypass | debconf-set-selections
sudo apt-get -y install mariadb-server
Run Code Online (Sandbox Code Playgroud)
我还检查了堆栈溢出中的一些链接,但它不起作用:
请在这方面帮助我。我的代码有问题吗?