I just updated a Debian server that uses needrestart, and now the following happens every time it is run:
$ sudo needrestart -v
[Core] Using UI 'NeedRestart::UI::stdio'...
[main] detected systemd
[Core] #2667 is a NeedRestart::Interp::Python
Unknown option: q
[Python] #2667: could not get a source file, skipping
[Core] #5599 is a NeedRestart::Interp::Python
[Core] #5600 is a NeedRestart::Interp::Python
[Core] #28379 is a NeedRestart::Interp::Python
[Core] #28380 is a NeedRestart::Interp::Python
[Kernel] Linux: kernel release 3.16.0-4-amd64, kernel version #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
[Kernel/Linux] /boot/vmlinuz-3.16.0-4-amd64 => 3.16.0-4-amd64 (debian-kernel@lists.debian.org) #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) [3.16.0-4-amd64]*
[Kernel/Linux] /boot/vmlinuz-3.2.0-4-amd64 => 3.2.0-4-amd64 (debian-kernel@lists.debian.org) #1 SMP Debian 3.2.65-1+deb7u1 [3.2.0-4-amd64]
[Kernel/Linux] Expected kernel version: 3.16.0-4-amd64
Running kernel seems to be up-to-date.
No services need to be restarted.
The issue seems to be that needrestart calls python, which is Python 2 on Debian, which doesn't have the -q option.
I just updated a Debian server that uses needrestart, and now the following happens every time it is run:
The issue seems to be that needrestart calls
python
, which is Python 2 on Debian, which doesn't have the-q
option.