mardi 20 février 2024

Force running update in Ubuntu in noninteractive mode

 Or do 

sudo dpkg-reconfigure debconf --frontend=noninteractive

or

export DEBIAN_FRONTEND=noninteractive

or 

sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q update

-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 or removing an essential package, occurs then apt-get will abort.

-q, --quiet

Quiet. Produces output suitable for logging, omitting progress indicators.

Another solution

sudo vi /etc/needrestart/needrestart.conf

And change #$nrconf{restart} = 'i';

to 

$nrconf{restart} = 'a';


Aucun commentaire: