pkg remove reports missing file in a non-existent path

Hi there,

After pkg upgrade I have found some compatibility libraries saved during package upgrade:
Code:
root@epyc:~ # pkg info | grep backup
cpdup-1.22_1                   Comprehensive filesystem mirroring and backup program
libunibreak-backup-libunibreak.so.6-20260427091923 Compatibility libraries saved during package upgrade
openjph-backup-libopenjph.so.0.26-20260430094301 Compatibility libraries saved during package upgrade

I tried to remove them, and it finished without error, however, there is something strange:
Code:
root@epyc:~ # pkg remove *-backup-*
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        libunibreak-backup-libunibreak.so.6: 20260427091923
        openjph-backup-libopenjph.so.0.26: 20260430094301

Number of packages to be removed: 2

Proceed with deinstalling packages? [y/N]: y
[1/2] Deinstalling libunibreak-backup-libunibreak.so.6-20260427091923...
[1/2] Deleting files for libunibreak-backup-libunibreak.so.6-20260427091923:   0%
libunibreak-backup-libunibreak.so.6-20260427091923: missing file /root/usr/local/lib/compat/pkg/libunibreak.so.6
[1/2] Deleting files for libunibreak-backup-libunibreak.so.6-20260427091923: 100%
[2/2] Deinstalling openjph-backup-libopenjph.so.0.26-20260430094301...
[2/2] Deleting files for openjph-backup-libopenjph.so.0.26-20260430094301:   0%
openjph-backup-libopenjph.so.0.26-20260430094301: missing file /root/usr/local/lib/compat/pkg/libopenjph.so.0.26
[2/2] Deleting files for openjph-backup-libopenjph.so.0.26-20260430094301: 100%

The missing files are actually in /usr/local/lib/compat/pkg/, I don't know why /root is there.

Best,
Jinsong

P.S.:
Code:
root@epyc:~ # freebsd-version -kru
15.0-RELEASE-p7
15.0-RELEASE-p6
15.0-RELEASE-p7
root@epyc:~ # pkg -v
2.7.4
 
Code:
libunibreak-backup-libunibreak.so.6-20260427091923 Compatibility libraries saved during package upgrade 
openjph-backup-libopenjph.so.0.26-20260430094301 Compatibility libraries saved during package upgrade
No idea where these come from. It's not something pkg-upgrade(8) would do.

Code:
root@epyc:~ # freebsd-version -kru 
15.0-RELEASE-p7 
15.0-RELEASE-p6 
15.0-RELEASE-p7
You need to reboot, your active kernel is still p6.
 
No idea where these come from. It's not something pkg-upgrade(8) would do.
I think those *-backup-* packages are generated during pkg upgrade, because there is no *-backup-* package before pkg upgrade.

I am not so concerns of those packages. What I am confused about is the message that reports a nonexistent path /root/usr/, and pkg remove *-backup-* did not remove those files.
 
Back
Top