On Tue, 16 Aug 2022, G?khan Bag wrote:
I found that the installation of the package debian-goodies always prompts the
popularity contest configuration, and that way, I can't install debian-goodies
in a script.
I also tried: echo "" | apt install debian-goodies -y
And: yes | apt install debian-goodies -y
I tried both apt and apt-get.
How can I install debian-goodies in a script without manual user interaction?
Don't know if this will work for debian-goodies but this is the best
I've found for silencing any questions:
DEBIAN_FRONTEND=noninteractive apt-get -o APT::Install-Recommends=false
-o Dpkg::Options::="--force-confdef" -o
Dpkg::Options::="--force-confold" -y install $source_deps </dev/null
You may possibly want to tweak or remove some of those options...