I'm raising this here as I'm not sure if this is a bug or if I'm just going crazy. But when I'm installing a new Ubuntu Desktop I like to use chunks of copy&paste-able lines to get useful stuff installed really quick... e.g...
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula boolean true | sudo debconf-set-selections
sudo apt-get -y install ttf-mscorefonts-installer
Which works fine.
But when it comes to libdvd-pkg, I just can't get it to shut up (I don't want to use 'DEBIAN_FRONTEND=noninteractive'). Here is what I've tried...
echo libdvd-pkg libdvd-pkg/first-install note | sudo debconf-set-selections
echo libdvd-pkg libdvd-pkg/post-invoke_hook-install boolean true | sudo debconf-set-selections
sudo apt-get -y install libdvd-pkg
You always get this screen...
I've seen this happen on 12+ machines now, so it's not just a one off.
This is on Ubuntu 16.04 by the way.
Any ideas what I might be doing wrong to try and silence this?
I've inspected the DEBIAN/templates file within the .deb package and can't find anything unusual.
Install manually the first time, then use
debconf-get-selections | grep "^libdvd-pkg"
to see what debian confirm uses. After that, put the result in a script and executedebconf-set-selections
before installing the package.1) Run deb-conf-get-selections on a installed machine:
2) Put these lines in a installer script, before installing:
Done!
You can do this in all packages who has dialogs and user interaction.