Read man apt-get
man, unlike Google, will show the help it is for the current version of apt-get because there are nuances
somewhere --yes, somewhere --force-yes where-the -y, depending on distribution and version.
nicklaus.OKeefe answered on June 10th 19 at 14:33
So I have not asked:
apt-get --yes --force-yes install ...