Checksum mismatch for e2fsprogs package

Mike Clarke jmc-freebsd2 at milibyte.co.uk
Wed Feb 24 11:45:16 UTC 2021


curlew:root# freebsd-version -ku 
12.2-RELEASE-p3 
12.2-RELEASE-p3

I recently used tar to move /usr/local to a new location. In the process tar 
reported that it was unable to copy hard links for some files in /usr/local/
sbin, all of which belonged to e2fsprogs.

To remedy the situation I uninstalled and reinstalled e2fsprogs and confirmed 
that the hard links had been created.

And I also checked e2fsck for checksum errors:

curlew:/root# pkg check -s e2fsprogs

Checking e2fsprogs:   0%
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/e2fsck
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/fsck.ext2
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/fsck.ext3
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/fsck.ext4
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/fsck_ext2fs
Checking e2fsprogs: 100%

So I then uninstalled e2fsprogs and and reinstalled it after updating the 
package database but still had the checksum errors:

curlew:/root# pkg delete e2fsprogs
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages 
in the universe):

Installed packages to be REMOVED:
        e2fsprogs: 1.46.1

Number of packages to be removed: 1

The operation will free 6 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling e2fsprogs-1.46.1...
[1/1] Deleting files for e2fsprogs-1.46.1: 100%

curlew:/root# pkg update -f
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01    
Fetching packagesite.txz: 100%    6 MiB   6.4MB/s    00:01    
Processing entries: 100%
FreeBSD repository update completed. 30233 packages processed.
All repositories are up to date.

curlew:/root# pkg install e2fsprogs
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        e2fsprogs: 1.46.1

Number of packages to be installed: 1

The process will require 6 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing e2fsprogs-1.46.1...
[1/1] Extracting e2fsprogs-1.46.1: 100%
=====
Message from e2fsprogs-1.46.1:

--
Note: this is a modified version of the e2fsprogs package, not the official
package. Report all building and run-time trouble that originates in the
package to the port maintainer, mandree at FreeBSD.org.

curlew:/root# pkg check -s e2fsprogs
Checking e2fsprogs:   0%
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/e2fsck
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/fsck.ext2
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/fsck.ext3
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/fsck.ext4
e2fsprogs-1.46.1: checksum mismatch for /usr/local/sbin/fsck_ext2fs
Checking e2fsprogs: 100%

curlew:/root# ls -li /usr/local/sbin/e2fsck /usr/local/sbin/fsck.ext[234] /
usr/local/sbin/fsck_ext2fs
1574606 -r-xr-xr-x  5 root  wheel  838304 13 Feb 01:20 /usr/local/sbin/
e2fsck*
1574607 -r-xr-xr-x  2 root  wheel    8168 13 Feb 01:20 /usr/local/sbin/
fsck_ext2fs*
1574606 -r-xr-xr-x  5 root  wheel  838304 13 Feb 01:20 /usr/local/sbin/
fsck.ext2*
1574606 -r-xr-xr-x  5 root  wheel  838304 13 Feb 01:20 /usr/local/sbin/
fsck.ext3*
1574606 -r-xr-xr-x  5 root  wheel  838304 13 Feb 01:20 /usr/local/sbin/
fsck.ext4*

These are all hard links to files in /sbin

curlew:/root# find /sbin -inum 1574606 -ls -or -inum 1574607 -ls
1574607       17 -r-xr-xr-x  2 root wheel 8168 13 Feb 01:20 /sbin/fsck_ext2fs
1574606     1113 -r-xr-xr-x  5 root wheel 838304 13 Feb 01:20 /sbin/e2fsck

curlew:/root# sum /sbin/fsck_ext2fs /sbin/e2fsck
57859 8 /sbin/fsck_ext2fs
10611 819 /sbin/e2fsck

One point which may or may not be relevant is that before moving /usr/local 
it had its own mountpoint so the links to /sbin/fsck_ext2fs and /sbin/e2fsck 
were soft links but they are now hard links due to /usr/local being part of
/usr.

I'm confident there were no checksum errors before I moved /usr/local so what 
have I overlooked while making the move?

-- 
Mike Clarke




More information about the freebsd-questions mailing list