quieter defaults for needrestart

Bug #1987449 reported by Seth Arnold
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
needrestart (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hello, I've been moderately annoyed to find my apt upgrade tasks hung waiting on input from me several times:

 ┌───────────────────────────────────────────────┤ Pending kernel upgrade ├───────────────────────────────────────────────┐
 │ │
 │ Newer kernel available │
 │ │
 │ The currently running kernel version is 5.15.0-43-generic which is not the expected kernel version 5.15.0-46-generic. │
 │ │
 │ Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting. │
 │ │
 │ <Ok> │
 │ │
 └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

The correct fix isn't the easiest thing to find, especially if you don't know what you're looking for: https://askubuntu.com/a/1424249/33812 (though there are many examples of simply uninstalling the package).

Can we turn down the annoyingness of this tool in our default configuration?

Thanks

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: needrestart 3.5-5ubuntu2.1
ProcVersionSignature: Ubuntu 5.15.0-43.46-generic 5.15.39
Uname: Linux 5.15.0-43-generic ppc64le
.sys.firmware.opal.msglog: Error: [Errno 13] Permission denied: '/sys/firmware/opal/msglog'
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: ppc64el
CasperMD5CheckResult: unknown
Date: Tue Aug 23 21:37:06 2022
InstallationDate: Installed on 2020-04-22 (853 days ago)
InstallationMedia: Ubuntu-Server 20.04 LTS "Focal Fossa" - Beta ppc64el (20200409)
PackageArchitecture: all
ProcLoadAvg: 0.07 0.02 0.00 1/416 68574
ProcSwaps:
 Filename Type Size Used Priority
 /swap.img file 4194240 0 -2
ProcVersion: Linux version 5.15.0-43-generic (buildd@bos02-ppc64el-027) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #46-Ubuntu SMP Tue Jul 12 10:28:27 UTC 2022
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: needrestart
UpgradeStatus: Upgraded to jammy on 2022-08-08 (15 days ago)
VarLogDump_list: total 0
cpu_cores: Number of cores present = 8
cpu_coreson: Number of cores online = 8
cpu_smt: SMT=4
mtime.conffile..etc.needrestart.needrestart.conf: 2022-08-23T21:36:57.040965

Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
Seth Arnold (seth-arnold) wrote (last edit ):

Ha, the linked askubuntu post doesn't have the full set of changes. So, for the next time I need this:

/etc/needrestart/needrestart.conf
$nrconf{verbosity} = 0;
$nrconf{kernelhints} = -1;
$nrconf{sendnotify} = 0;
$nrconf{restart} = 'l';
$nrconf{ui} = 'NeedRestart::UI::stdio';

(Granted, I might not have this exactly right, it's hard to tell, since I just installed all the available updates.)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in needrestart (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package needrestart - 3.6-7ubuntu3

---------------
needrestart (3.6-7ubuntu3) noble; urgency=medium

  * debian/tests:
    - prompt-reboot: mark the tests as needing a VM since needrestart doesn't
      do kernel detection when within a container
    - *.py: migrate off some deprecated libtmux APIs
    - *.py: make tests less sensible to performance issues on the runners

 -- Simon Chopin <email address hidden> Fri, 08 Mar 2024 16:01:08 +0100

Changed in needrestart (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.