我想通过 dpkg-reconfigure 使用通过非交互模式(在脚本中)提供的所有值来配置 ubuntu 包。
事实上,我的情况是 firebird 配置(http://www.firebirdsql.org/manual/ubusetup.html),当使用命令时:
sudo dpkg-reconfigure firebird2.5-superclassic -freadline
Run Code Online (Sandbox Code Playgroud)
向我询问 2 个值,其中答案是 'Y' 和 'newpwd' 。
示例输出如下所示:
sudo dpkg-reconfigure firebird2.5-superclassic -freadline
* Firebird 2.5 superclassic server not running
Configuring firebird2.5-superclassic
------------------------------------
Accept if you want Firebird server to start automatically.
If you only need the Firebird client and there are no databases that will be served by this host, decline.
Enable Firebird server? Y
Password for firebird 2.5
-------------------------
Firebird has a special user named …
Run Code Online (Sandbox Code Playgroud) dpkg ×1