对于此命令:
sudo dpkg-reconfigure wine-stable-amd64 wine-stable wine-stable-i386
我想回答三次“是”,没有提示。例如?
答案1
谢谢@bac0n。我已经解决了:
测试文件
#!/bin/bash -e
chmod a+x ./WineHQ-enable-CAP_NET_RAW.exp
sudo ./WineHQ-enable-CAP_NET_RAW.exp
WineHQ-启用-CAP_NET_RAW.exp
#!/usr/bin/expect -f
set timeout -1
spawn dpkg-reconfigure --frontend=readline wine-stable-amd64 wine-stable wine-stable-i386
expect "Allow ordinary users to run applications in Wine that send/receive raw IP packets?"
send -- "yes\r"
expect "Allow ordinary users to run applications in Wine that send/receive raw IP packets?"
send -- "yes\r"
expect "Allow ordinary users to run applications in Wine that send/receive raw IP packets?"
send -- "yes\r"
expect eof