Tried to install debian11 needrestart-3.5 package, no problem regarding
dependencies, but problem still the same.
├─sshd,13265
│ └─sh,14854 -c /usr/bin/python
/root/.ansible/tmp/ansible-tmp-1650508029.18-25277-93685447926498/AnsiballZ_apt.py
&& sleep 0
│ └─python,14855
/root/.ansible/tmp/ansible-tmp-1650508029.18-25277-93685447926498/AnsiballZ_apt.py
│ └─aptitude,15365 -y -o Dpkg::Options::=--force-confdef -o
Dpkg::Options::=--force-confold safe-upgrade
│ ├─aptitude,21577 -y -o
Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold
safe-upgrade
│ │ └─sh,21578 -c test -x
/usr/lib/needrestart/apt-pinvoke && /usr/lib/needrestart/apt-pinvoke || true
│ │ └─frontend,21579 -w
/usr/share/debconf/frontend /usr/sbin/needrestart
│ │ └─(needrestart,21583)
│ └─{aptitude},15381
needrestart,21583 gets zombie-fied
We can move on if we kill the parent process frontend,21579