Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] upgrading to bookworm usrmerge FATAL ERROR

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
robfantini
Posts: 9
Joined: 2005-05-31 02:59

[Solved] upgrading to bookworm usrmerge FATAL ERROR

#1 Post by robfantini »

hello

while upgrading a system to bookworm , the process stopped at this point:

Code: Select all

Preparing to unpack .../archives/usrmerge_35_all.deb ...
Unpacking usrmerge (35) ...
Setting up usrmerge (35) ...
cp: -r not specified; omitting directory '/lib/systemd/system'

FATAL ERROR:
cp --no-dereference --preserve=all --reflink=auto --sparse=always /lib/systemd/system /usr/lib/systemd/system~~tmp~usrmerge~~: rc=1

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.

E: usrmerge failed.
dpkg: error processing package usrmerge (--configure):
 installed usrmerge package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 usrmerge
E: Sub-process /usr/bin/dpkg returned an error code (1)

can anyone suggest something to try to fix the FATAL ERROR ?

Thanks


PS: this is a test system and I can restore a snapshot to start the upgrade over.
Last edited by robfantini on 2023-06-01 01:05, edited 2 times in total.

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: upgrading to bookworm usermerge FATAL ERROR

#2 Post by CwF »

What was the version state before the upgrade?

If the prior system not not usrmerge(d), start over and upgrade to /hold and pin
init_1.63_amd64(i686).deb
init-system-helpers_1.63_all.deb

surely not the official supported way!

Or, try again and try to determine how is your systems config screwing up usemerge.

robfantini
Posts: 9
Joined: 2005-05-31 02:59

Re: upgrading to bookworm usermerge FATAL ERROR

#3 Post by robfantini »

CWF:
1- the was a fully up to date bullseye system

2- could you tell me which commands to use to accomplish this:

If the prior system not not usrmerge(d), start over and upgrade to /hold and pin
init_1.63_amd64(i686).deb
init-system-helpers_1.63_all.deb

thanks

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: upgrading to bookworm usermerge FATAL ERROR

#4 Post by CwF »

I know not the cli foo!

I use synaptic. Open it up and mouse to Status>Installed to display your systems installed packaged. Scroll down to and highlight the file init, a metapackage, and its -system-helpers. In the main menu Package>Lock Version = click the box.

These two packages will then show in Status>Pinned. From there on out if you 'upgrade all' it WILL upgrade those files, so don't do that. Use the category Installed(upgradable) and highlight all, right click and mark upgrade. Those two files are excluded from that list.

Code: Select all

init-system-helpers:
  Installed: 1.63
  Candidate: 1.65.2
  Version table:
     1.65.2 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
 *** 1.63 100
        100 /var/lib/dpkg/status

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: upgrading to bookworm usermerge FATAL ERROR

#5 Post by CwF »

in addition, I think I remember upgrading into bookworm from earlier init 1.60 or so without issue. For a system that did not pass through version 1.63, use gdebi or any method to manually install before the upgrade. Then update the repositories, pin or Lock the version as described, and proceed.

https://snapshot.debian.org/package/ini ... #init_1.63

robfantini
Posts: 9
Joined: 2005-05-31 02:59

Re: upgrading to bookworm usermerge FATAL ERROR

#6 Post by robfantini »

so this command will work. I'll try the process later on and post results

Code: Select all

apt-mark hold  init-system-helpers 
apt-mark hold init
also our current version is 1.60

robfantini
Posts: 9
Joined: 2005-05-31 02:59

Re: upgrading to bookworm usermerge FATAL ERROR

#7 Post by robfantini »

I was able to solve the issue by installing usrmerge when the system was using bullseye. doing so the error issue was easier to spot then when doing an upgrade to bookworm


in our case this symlink [ which i needed to run special software designed for red hat installs ]

Code: Select all

lrwxrwxrwx  1 root root    19 Dec  8  2021 /usr/lib/systemd/system -> /lib/systemd/system/
removing the symlink fixed the issue with usrmerge and allowed upgrade to bookwork to succeed . n addition we ended up with a /usr/lib/systemd/system as /lib is a symlink to usr/lib/

so I did not need to use apt-mark hold.

CwF thank you for the help. your advice gave me the clue of installing usrmerge at bullseye.
Last edited by robfantini on 2023-06-01 00:42, edited 1 time in total.

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: upgrading to bookworm usermerge FATAL ERROR

#8 Post by CwF »

robfantini wrote: 2023-06-01 00:29 so I did not need to use apt-mark hold.
Good work, even better!
if you could mark the original post solved.

Post Reply