In Ubuntu 22.04 apt-get may stall

Bug #1980881 reported by Mickaël LAMBERT
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
needrestart (Ubuntu)
New
Undecided
Unassigned

Bug Description

Maybe due to new code in apt-get, maybe the one outputting this :

NEEDRESTART-VER: 3.5
                    NEEDRESTART-KCUR: 5.15.0-40-generic
                                                       NEEDRESTART-KEXP: 5.15.0-40-generic
                                                                                          NEEDRESTART-KSTA: 1

If a terminal is not available, maybe for read ? or maybe for write ? It just stall.

Ref : https://askubuntu.com/questions/1416286/troubleshooting-a-bash-script-using-chroot-are-there-differences-between-20-04

Tags: apt-get
Colin Watson (cjwatson)
affects: launchpad → apt (Ubuntu)
Revision history for this message
Mickaël LAMBERT (mkl1) wrote :

Does anyone has been able to reproduce ?
So we can get a resolution on this for 22.04.1 ?

Please build a 22.04.1 chroot, under a 22.04.1 Ubuntu.
Then use :

  sudo chroot $chroot su - root -c "\
set -o xtrace ; \
. $some_scripts_with_a_function_that_install_packages.sh ; \
FunctionThatInstallPackages $package_name; \
exit 0
"

This stall the chroot.
I have to use the "fg" command for the script to continue.

Thanks.

affects: apt (Ubuntu) → needrestart (Ubuntu)
Revision history for this message
Mickaël LAMBERT (mkl1) wrote :

How is that just possible that a bug stay undecided for more than eight months ?
Can someone else reproduce, please?
I can support to reproduce, easy.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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