-y, --yes, --assume-yes
Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively. If an undesirable situation,
such as changing a held package, trying to install an unauthenticated package or removing an essential package occurs
then apt-get will abort. Configuration Item: APT::Get::Assume-Yes.
试着
man apt-get
看看有什么可用的。man
将向您显示其后命令的手册参考页,以及该命令在您的版本中可用的选项。它会告诉你
(因为这是在 19.10 中完成的;您的页面可能有所不同,但会与您的 Ubuntu 版本完美匹配)