Skip to content

apt upgrade stuck at "Setting up libc6:amd64 (2.37-14) ..." #11097

Answered by cotste
liyafe1997 asked this question in General
Discussion options

You must be logged in to vote

I had the same issue, #11035 (comment) fixed it.

As far as I can tell if you don't have

[boot] systemd=true

The /run/systemd/system directory is not created and the tests in the postinst for libc fail:

    # Restart init.  Currently handles chroots, systemd and upstart, and
    # assumes anything else is going to not fail at behaving like
    # sysvinit:
    TELINIT=yes
    if ischroot 2>/dev/null; then
        # Don't bother trying to re-exec init from a chroot:
        TELINIT=no
    elif [ -n "${DPKG_ROOT:-}" ]; then
        # Do not re-exec init if we are operating on a chroot from outside:
        TELINIT=no
    elif [ -d /run/systemd/system ]; then
        # Restart systemd on upgra…

Replies: 3 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by liyafe1997
Comment options

You must be logged in to vote
18 replies
@Querynalhabsyi
Comment options

@echo1ng
Comment options

@myariffx
Comment options

@SlyDcooper
Comment options

@elrashedy1992
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #11092 on January 30, 2024 20:49.