[Bug 1866844] Re: package libc6:amd64 2.31-0ubuntu3 failed to install/upgrade: installed libc6:amd64 package post-installation script subprocess returned error exit status 127

Jeffrey Bouter 1866844 at bugs.launchpad.net
Sat Mar 14 10:59:29 UTC 2020


I have resolved the issue by doing the following:

1) From grub, change the linux line; remove 'quiet' and 'splash', and
change 'ro' to 'rw init=/bin/bash' (see below if you need more
information)

This will allow you to boot into your system sort of"recovery mode".

2) When booted, run: mount -o remount,rw /

3) Copy a "bogus" library over the library that the upgrade is
expecting: cp /lib/x86_64-linux-gnu/libcrypt.so /lib/x86_64-linux-
gnu/libcrypt.so.1

4) run: apt --fix-broken install

5) Resume the original upgrade: apt full-upgrade

6) reboot (this might require forcefully rebooting using your power or
reset button)


Information regarding the grub bit:

It may take a few tries to get into grub. You need to press ESC at the
right time during the boot process (just after your bios/efi post has
shown), or forcefully rebooting during startup will most likely bring
you there as well

Select the "ubuntu" line, and hit the 'e' key on your keyboard.

Go to the line that looks like:

linux /boot/vmlinuz-5.4.0-14-generic root=UUID=<a lot of numbers> ro
quiet splash $vt_handoff

Change it into:

linux /boot/vmlinuz-5.4.0-14-generic root=UUID=<a lot of numbers> rw
init=/bin/bash $vt_handoff

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1866844

Title:
  package libc6:amd64 2.31-0ubuntu3 failed to install/upgrade: installed
  libc6:amd64 package post-installation script subprocess returned error
  exit status 127

Status in glibc package in Ubuntu:
  Confirmed

Bug description:
  
  cannot install this package

  ProblemType: Package
  DistroRelease: Ubuntu 20.04
  Package: libc6:amd64 2.31-0ubuntu3
  ProcVersionSignature: Ubuntu 5.4.0-14.17-generic 5.4.18
  Uname: Linux 5.4.0-14-generic x86_64
  ApportVersion: 2.20.11-0ubuntu19
  Architecture: amd64
  Date: Tue Mar 10 09:39:56 2020
  DuplicateSignature:
   package:libc6:amd64:2.31-0ubuntu3
   Setting up libc6:amd64 (2.31-0ubuntu3) ...
   /usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
   dpkg: error processing package libc6:amd64 (--configure):
    installed libc6:amd64 package post-installation script subprocess returned error exit status 127
  ErrorMessage: installed libc6:amd64 package post-installation script subprocess returned error exit status 127
  InstallationDate: Installed on 2020-03-07 (2 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200304)
  Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu1
  PythonDetails: N/A
  RelatedPackageVersions:
   dpkg 1.19.7ubuntu2
   apt  2.0.0
  SourcePackage: glibc
  Title: package libc6:amd64 2.31-0ubuntu3 failed to install/upgrade: installed libc6:amd64 package post-installation script subprocess returned error exit status 127
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1866844/+subscriptions



More information about the foundations-bugs mailing list