E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
asus
Level 1
Level 1
Posts: 21
Joined: Mon Feb 26, 2018 6:14 pm

E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by asus »

After upgrading to Linux Mint Mate 20.2 from 20.1 and running the Update Manager I get the following error when attempting to install software updates:

E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

After attempting to correct the issue by running: sudo dpkg --configure -a

I receive error:

asus@asus-UX391UA ~ $ sudo dpkg --configure -a
[sudo] password for asus:
Setting up usrmerge (23) ...
cp: cannot create regular file '/usr/opt/eset/esets/lib/libesets_pac.so': No such file or directory

FATAL ERROR:
cp --no-dereference --preserve=all --reflink=auto --sparse=always /opt/eset/esets/lib/libesets_pac.so /usr/opt/eset/esets/lib/libesets_pac.so: rc=1

You can try correcting the errors reported and running again
/usr/lib/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
asus@asus-UX391UA ~ $
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
asus
Level 1
Level 1
Posts: 21
Joined: Mon Feb 26, 2018 6:14 pm

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by asus »

When running apt install usrmerge it get:

asus@asus-UX391UA ~ $ apt install usrmerge
[sudo] password for asus:
Reading package lists... Done
Building dependency tree
Reading state information... Done
usrmerge is already the newest version (23).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up usrmerge (23) ...
cp: cannot create regular file '/usr/opt/eset/esets/lib/libesets_pac.so': No such file or directory

FATAL ERROR:
cp --no-dereference --preserve=all --reflink=auto --sparse=always /opt/eset/esets/lib/libesets_pac.so /usr/opt/eset/esets/lib/libesets_pac.so: rc=1

You can try correcting the errors reported and running again
/usr/lib/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 e
xit status 1
Errors were encountered while processing:
usrmerge
E: Sub-process /usr/bin/dpkg returned an error code (1)
asus@asus-UX391UA ~ $
sleeper12
Level 21
Level 21
Posts: 14395
Joined: Thu May 25, 2017 3:22 pm

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by sleeper12 »

Maybe the solution here:
viewtopic.php?t=339802
User avatar
asus
Level 1
Level 1
Posts: 21
Joined: Mon Feb 26, 2018 6:14 pm

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by asus »

asus@asus-UX391UA ~ $ sudo dpkg --configure -a
[sudo] password for asus:
Setting up usrmerge (23) ...
cp: cannot create regular file '/usr/opt/eset/esets/lib/libesets_pac.so': No such file or directory

FATAL ERROR:
cp --no-dereference --preserve=all --reflink=auto --sparse=always /opt/eset/esets/lib/libesets_pac.so /usr/opt/eset/esets/lib/libesets_pac.so: rc=1

You can try correcting the errors reported and running again
/usr/lib/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
asus@asus-UX391UA ~ $
User avatar
MikeNovember
Level 7
Level 7
Posts: 1839
Joined: Fri Feb 28, 2020 7:37 am
Location: Nice, Paris, France

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by MikeNovember »

Hi,

With Mint 20.2 fresh installation, usrmerge is there. When you go from Mint 20.1 to 20.2, there is an attempt to install usrmerge (attempt failed for you).

So, if you don't arrive to solve your problem, simply install Mint 20.2 from its ISO (on DVD / USB key) and update it.

Regards,

MN
_____________________________
Linux Mint 21.3 Mate host with Ubuntu Pro enabled, VMware Workstation Player with Windows 10 Pro guest, ASUS G74SX (i7-2670QM, 16 GB RAM, GTX560M with 3GB RAM, 1TB SSD).
sleeper12
Level 21
Level 21
Posts: 14395
Joined: Thu May 25, 2017 3:22 pm

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by sleeper12 »

I was thinking you might need to do the 3rd post down in the thread:

"Thanks for replying
I figured out the issue, muddling through it myself
I created the non-existent eset directory, and then installed usrmerge. Then rebooted. Voila. All of my updates since then today have gone through with no errors !
Make sure you do a sudo su first before you create the directory."

viewtopic.php?t=339802
User avatar
asus
Level 1
Level 1
Posts: 21
Joined: Mon Feb 26, 2018 6:14 pm

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by asus »

It would not let me create the directory.

asus@asus-UX391UA ~ $ sudo su
[sudo] password for asus:
root@asus-UX391UA:/home/asus# mkdir /usr/opt/eset/esets/lib/
mkdir: cannot create directory ‘/usr/opt/eset/esets/lib/’: No such file or directory
root@asus-UX391UA:/home/asus#
sleeper12
Level 21
Level 21
Posts: 14395
Joined: Thu May 25, 2017 3:22 pm

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by sleeper12 »

I can't help with that, never done it myself. Maybe someone else will know.
MAlfare

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by MAlfare »

asus wrote: Wed Dec 08, 2021 4:29 pm mkdir /usr/opt/eset/esets/lib/
mkdir: cannot create directory ‘/usr/opt/eset/esets/lib/’: No such file or directory
Does /usr/opt/eset/esets exist?
You cannot create a subdirectory of a directory that does not exist (unless you use the option -p :D :D :D).
legacypowers
Level 4
Level 4
Posts: 275
Joined: Sat Dec 19, 2020 8:53 am

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by legacypowers »

asus wrote: Wed Dec 08, 2021 4:29 pm It would not let me create the directory.

asus@asus-UX391UA ~ $ sudo su
[sudo] password for asus:
root@asus-UX391UA:/home/asus# mkdir /usr/opt/eset/esets/lib/
mkdir: cannot create directory ‘/usr/opt/eset/esets/lib/’: No such file or directory
root@asus-UX391UA:/home/asus#
try
mkdir --parents /usr/opt/eset/esets/lib/
Terminal - zsh wrote: ╭─legacy@forums.linuxmint.com
╰─➜ _
User avatar
asus
Level 1
Level 1
Posts: 21
Joined: Mon Feb 26, 2018 6:14 pm

Re: E: usrmerge: installed usrmerge package post-installation script subprocess returned error exit status 1

Post by asus »

MAlfare wrote: Wed Dec 08, 2021 7:26 pm
asus wrote: Wed Dec 08, 2021 4:29 pm mkdir /usr/opt/eset/esets/lib/
mkdir: cannot create directory ‘/usr/opt/eset/esets/lib/’: No such file or directory
Does /usr/opt/eset/esets exist?
You cannot create a subdirectory of a directory that does not exist (unless you use the option -p :D :D :D).
asus@asus-UX391UA ~ $ sudo su
[sudo] password for asus:
root@asus-UX391UA:/home/asus# mkdir -p /usr/opt/eset/esets/lib/
root@asus-UX391UA:/home/asus# apt install usrmerge
Reading package lists... Done
Building dependency tree
Reading state information... Done
usrmerge is already the newest version (23).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up usrmerge (23) ...
The system has been successfully converted.
root@asus-UX391UA:/home/asus#

[SOLVED]
Locked

Return to “Software & Applications”