【ubuntu】aptコマンドのinteractiveなtuiを抑止
なに?
ubuntu22.04の場合、aptコマンドを使用すると以下のようなtuiが表示される。
https://scrapbox.io/files/645cd737319cd1001bc08119.png
userdataなどでaptコマンドを実行するとこれにひっかかり、自動化が不可となるため、対策を考える
rootユーザの場合
頭にDEBIAN_FRONTEND=noninteractiveをつける
code:install nginx with no tui
# DEBIAN_FRONTEND=noninteractive apt install -y nginx
一般ユーザの場合
調査中(root以外に使うか...?)
参考