Package checksum errors.

I am attempting to fix the checksum warnings for mime mess:
Code:
# pkg check
Checking all packages:   2%
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/XMLnamespaces
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/aliases
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/generic-icons
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/globs
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/globs2
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/magic
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/mime.cache
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/subclasses
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/treemagic
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/types
Checking all packages:  55%
mate-control-center-1.28.1_3: checksum mismatch for /usr/local/share/applications/mimeinfo.cache
Checking all packages: 100%
Since pkg check -r <package> no longer works, what is the suggestion to "fix" those, please?
 
Maybe reinstall the problem packages?


Reinstall does not solve the problem:
Code:
# pkg update -f
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01   
Fetching data.pkg: 100%   10 MiB   1.5MB/s    00:07   
Processing entries: 100%
The provides database is up-to-date.
FreeBSD repository update completed. 35336 packages processed.
All repositories are up to date.
Code:
# pkg install -f caja mate-control-center
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        caja-1.28.0_2
        mate-control-center-1.28.1_3

Number of packages to be reinstalled: 2

5 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/2] Fetching mate-control-center-1.28.1_3.pkg: 100%    2 MiB   1.6MB/s    00:01   
[2/2] Fetching caja-1.28.0_2.pkg: 100%    3 MiB   1.6MB/s    00:02   
Checking integrity... done (0 conflicting)
[1/2] Reinstalling caja-1.28.0_2...
[1/2] Extracting caja-1.28.0_2: 100%
[2/2] Reinstalling mate-control-center-1.28.1_3...
[2/2] Extracting mate-control-center-1.28.1_3: 100%
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types
==> Running trigger: glib-schemas.ucl
Compiling glib schemas
Warning: Schema “org.gnome.system.locale” has path “/system/locale/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy” has path “/system/proxy/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.http” has path “/system/proxy/http/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.https” has path “/system/proxy/https/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.ftp” has path “/system/proxy/ftp/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.socks” has path “/system/proxy/socks/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
==> Running trigger: shared-mime-info.ucl
Building the Shared MIME-Info database cache
==> Running trigger: gtk-update-icon-cache.ucl
Generating GTK icon cache for /usr/local/share/icons/hicolor
Code:
# pkg check -s -a
Checking all packages:   2%
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/XMLnamespaces
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/aliases
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/generic-icons
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/globs
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/globs2
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/magic
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/mime.cache
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/subclasses
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/treemagic
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/types
Checking all packages:  55%
mate-control-center-1.28.1_3: checksum mismatch for /usr/local/share/applications/mimeinfo.cache
Checking all packages: 100%

Running pkg check -r does not solve the problem since the -r switch is disabled / gone / ignored in 13.5-RELEASE-p3 as was stated in my original post:
Code:
# pkg check -r
Checking all packages:   2%
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/XMLnamespaces
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/aliases
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/generic-icons
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/globs
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/globs2
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/magic
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/mime.cache
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/subclasses
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/treemagic
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/types
Checking all packages:  55%
mate-control-center-1.28.1_3: checksum mismatch for /usr/local/share/applications/mimeinfo.cache
Checking all packages: 100%
Code:
# pkg check -s -a
Checking all packages:   2%
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/XMLnamespaces
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/aliases
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/generic-icons
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/globs
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/globs2
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/magic
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/mime.cache
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/subclasses
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/treemagic
caja-1.28.0_2: checksum mismatch for /usr/local/share/mime/types
Checking all packages:  55%
mate-control-center-1.28.1_3: checksum mismatch for /usr/local/share/applications/mimeinfo.cache
Checking all packages: 100%

I did not see a working solution in the provided URLs to other forum posts. Does anyone have a known working solution to stop these bogus checksum errors with mime mess? TIA!
 
The bug is already reported, adding your own experience over there might help a bit to accelerate things:

If a package has a checksum mismatch, I would first uninstall it, then to prevent pkg from reinstalling the same corrupted version, I would delete all cached packages using pkg clean -a.
I don't say that will fix this issue here(because the problem sounds to be something else) but I think it's the right way to deal with checksum mismatch, in case one day it happens again.
 
For completeness: Uninstalling caja and mate-control-center, which uninstalls the mate desktop, then cleaning the pkg cache, and reinstalling it all ... does not fix the misreported mime checksums.

For the record, this has happened with mime files for a few years now in my experience. I could always rely on a tool in my FreeBSD administrator's toolbox ( pkg check -r <package>) to clean that up. Then someone sneaked into my FreeBSD workshop and stole the -r from my FreeBSD administrator's toolbox command without asking me if I needed it. All I want is a replacement tool for what was taken from me, or my original tool returned.
 
What would be excellent is if official pkg just had recompute as a compile time option. That way, administrators like me who want it could compile from official ports collection.
 
This is exactly the reason why pkg check -r has been removed, the issue here is a package which is buggy: caja is packaging files which do not belong to the package but are supposed to be generated by the trigger provided by the shared-mime-info, so the right fix is to fix the caja package (and/or report the bug) and not to run pkg check -r (note I am working on fixing the package).
 
Back
Top