![]() Solution 2: Use noninteractive frontend in apt ![]() The variable is just set for this command now.Īlternatively, you can use the following way to become root user first via sudo and then export the variable in case you have to install multiple applications with apt or apt-get. ![]() If needrestart is set to the value " a", then apt will restart services automatically if required.Įxample: sudo NEEDRESTART_MODE=a apt dist-upgrade The first option that I will show you to solve the issue is to set a bash (terminal) variable named NEEDRESTART_MODE to the value " a" before running apt or apt-get commands. Solution 1: Set NEEDRESTART_MODE variable to automatic mode In this guide, I will show you how several solutions to tackle that problem and restart services automatically when needed. While there might be cases where you have a setup that requires a specific service not to be restarted automatically after an update, in most cases, it's just annoying having to manually select the services for restarting. You might have noticed that Ubuntu has since version Ubuntu 22.04 started to show the following message when you install or update software: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |