liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
427 stars 68 forks source link

Unknown option: q #50

Closed fenhl closed 7 years ago

fenhl commented 7 years ago

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.

liske commented 7 years ago

This issue was fixed by 892e03d624676fc7c7ce14b41de2133c332417bf in needrestart 2.8. Did you give a recent version of needrestart a try?