安装:apt install debconf-utils
你如何看待类型,在这种情况下我需要设置一个数字?
我看过密码类型,有些信息可能存储在:
ls /var/cache/debconf/
试过:
echo "openjdk-16-jdk 8" | debconf-set-selections
echo "openjdk-16-jdk integer 8" | debconf-set-selections
echo "openjdk-16-jdk int 8" | debconf-set-selections
以及在 apt install 期间要求输入的文本:
echo "openjdk-16-jdk Geographic area 8" | debconf-set-selections
并使用<<<
:
debconf-set-selections <<< "openjdk-16-jdk integer 8" | debconf-set-selections
错误:
echo "openjdk-16-jdk int 8" | debconf-set-selections
warning: Unknown type 8, skipping line 1