[Bug 1993886] Re: package usrmerge 25ubuntu2 failed to install/upgrade: installed usrmerge package post-installation script subprocess returned error exit status 1 (on WSL1)

Rennex 1993886 at bugs.launchpad.net
Sun Jan 15 21:35:46 UTC 2023


*** This bug is a duplicate of bug 1985982 ***
    https://bugs.launchpad.net/bugs/1985982

I'm commenting here, because the other "duplicate" bug seems less
relevant. It may be a related issue in the same package, but googling
for my error message found this page.

I was upgrading Ubuntu 20.04 (in WSL2) to 22.04 and also got this error:

    Can't rename /lib: Permission denied at /usr/lib/usrmerge/convert-
usrmerge line 255.

I can confirm that manually trying "sudo mv /lib /lib2" at this point
also gave me a "permission denied" error.

And for me, too, the problem was resolved after I did a "wsl --shutdown"
and then started WSL again and ran "sudo apt upgrade". Perhaps the issue
was caused by Windows holding some sort of lock on the directory until
WSL was shut down?

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

Title:
  package usrmerge 25ubuntu2 failed to install/upgrade: installed
  usrmerge package post-installation script subprocess returned error
  exit status 1 (on WSL1)

Status in Ubuntu WSL:
  New
Status in usrmerge package in Ubuntu:
  Confirmed

Bug description:
  FATAL ERROR:
  Can't rename /lib: Permission denied at /usr/lib/usrmerge/convert-usrmerge line 255.

  You can try correcting the errors reported and running again
  /usr/lib/usrmerge/convert-usrmerge until it will complete without errors.
  Do not install or update other Debian packages until the program
  has been run successfully.

  dpkg: error processing package usrmerge (--configure):
   installed usrmerge package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   usrmerge

  Upgrade complete

  The upgrade has completed but there were errors during the upgrade
  process.

  To continue please press [ENTER]
  === Command detached from window (Sat Oct 22 14:36:05 2022) ===
  === Command terminated with exit status 1 (Sat Oct 22 14:36:15 2022) ===

  Reading cache
  pcilib: Cannot open /proc/bus/pci
  lspci: Cannot find any working access method.

  ProblemType: Package
  DistroRelease: Ubuntu 22.04
  Package: usrmerge 25ubuntu2
  ProcVersionSignature: Microsoft 4.4.0-19041.1237-Microsoft 4.4.35
  Uname: Linux 4.4.0-19041-Microsoft x86_64
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Sat Oct 22 13:20:53 2022
  Dmesg:
   [    3.918996]  Microsoft 4.4.0-19041.1237-Microsoft 4.4.35
   [    6.382258] <3>init: (1) ERROR: ConfigInitializeCommon:665: Failed to mount /usr/lib/wsl/drive
   [    6.382268] : 19
   [    6.383094] <3>init: (1) ERROR: ConfigInitializeCommon:665: Failed to mount /usr/lib/wsl/lib
   [    6.383107] 19
  ErrorMessage: installed usrmerge package post-installation script subprocess returned error exit status 1
  PackageArchitecture: all
  Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
  PythonDetails: N/A
  RebootRequiredPkgs: Error: path contained symlinks.
  RelatedPackageVersions:
   dpkg 1.21.1ubuntu2.1
   apt  2.4.8
  SourcePackage: usrmerge
  Title: package usrmerge 25ubuntu2 failed to install/upgrade: installed usrmerge package post-installation script subprocess returned error exit status 1
  UpgradeStatus: Upgraded to jammy on 2022-10-22 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuwsl/+bug/1993886/+subscriptions




More information about the foundations-bugs mailing list