thin-edge / thin-edge.io

The open edge framework for lightweight IoT devices
https://thin-edge.io
Apache License 2.0
222 stars 55 forks source link

Software installation fails due to prompt of restarting service #3096

Closed mbay-ODW closed 2 months ago

mbay-ODW commented 2 months ago

Describe the bug When I want to install e.g. nano on my system I do get the info that I need to restart services due to outdated libraries.

Expected behavior Prompt will be handled accordingly

Screenshots Find attached the prompt that appears while installing manually on site.

Environment (please complete the following information):

Not sure maybe its not a bug but a feature request on how those or other prompts should be handled.

image

reubenmiller commented 2 months ago

@mbay-ODW What OS are you using? Debian?

reubenmiller commented 2 months ago

Just a quick google search showed some direction, https://stackoverflow.com/questions/73397110/how-to-stop-ubuntu-pop-up-daemons-using-outdated-libraries-when-using-apt-to-i.

The pop-up seems to come from the needrestart command where you should be able to configure your OS to take the desired action (e.g. automatically restart or not etc.)

reubenmiller commented 2 months ago

(taken from the above link), the needrestart command can be configured using the following one-liner, however it would still be advised reading the manual for needrestart to make sure it behaves as you want.

sed "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf
reubenmiller commented 2 months ago

@mbay-ODW Have you had a chance to try it out?

mbay-ODW commented 2 months ago

Yes in deed, that worked. Thanks for the pointing. Can be closed.