how to restore files indicated freebsd-update IDS ?

After an upgrade from 11.4 to 13.1 freebsd-update IDS shows a lot of files that are with wrong checksums. That's fine but how to restore all those like 200+ files other than reinstalling the files ( I meant overwriting it with the contents of base.txz and not really reinstalling - I misspoke) ? Is there a way to do that automatically or the only way is by hand ?
 
After upgrading the kernel and base you have to upgrade all installed pkg/ports. Read again the handbook.
Who's talking about the ports ? I'm using FreeBSD since 3.4 - please be constructive and don't tell me what to read.
/usr/include/asn1_err.h has SHA256 hash 359620b51641afe4700bfd2690b2870ca70fb656c9f5ead4787cb9ea7f28d8fd, but should have SHA256 hash 5ea9ff7d8a8ab161b247ed73dce000901ca23b4d230b17dc899930a49f70fcde.
/usr/include/cms_asn1.h has SHA256 hash 4cb806dd40594a5c96aeb4d6677cd9460e53746eb7a399a3705e755b99632afd, but should have SHA256 hash 1e20c086447a972c37ddd213aa87a370a3fe6eabc1801bfb6de0113d064df86e.
/usr/include/crmf_asn1.h has SHA256 hash 1d4d7f68dc30a90a330f2514a3c0420cfe8c9002953ff8c0a52c04734ab2c4bb, but should have SHA256 hash 4a41cb13bfeb155cd9d5fec817e8179f19ff3c2b021161c55079c965158879a1.
/usr/include/digest_asn1.h has SHA256 hash b5f57658230cca67ad4fdef80a2d32333f2d006ea72799351482e2943a2ddf1e, but should have SHA256 hash 24c7b72d3cefd80af19de4bf3cc8fcd2d268cec1ccf84809d22864ec75d9c250.
/usr/include/hdb_asn1.h has SHA256 hash 29c4303f1f41f9729d1e63fa756892d4d6245fbda9c498c29d267596617ea253, but should have SHA256 hash 8e41ff91e38d001cc19aab2c09b8f888905a7b5fa9ca57a2adba1846d0e13a48.
/usr/include/hdb_err.h has SHA256 hash 7e2e4d9af98b0707be5ddbeac8e53da522889547902e17b0cdbd0f7c844a4d90, but should have SHA256 hash e742c218b277cec6e9bc90c025bb5996fc3d393d00e881a50073c6e529caad97.
/usr/include/heim_err.h has SHA256 hash ead451bd235b88216a494fea0082fcfc542ee8922a1b5cdbf67ab4e24d03d0e2, but should have SHA256 hash 4ae050a2cb99ea0c006dcd620f177c665618a16659554ca49d0702a36d5023f3.
/usr/include/hx509_err.h has SHA256 hash 228c56d9b4f27e9c06aa22e582547f16927142855131ef86d5053011b0feb32f, but should have SHA256 hash 891cd1679c2bdb3abc97aaf03c5f1ac591926b6336add8df7fe35587c8aaa410.
/usr/include/k524_err.h has SHA256 hash 8d5d2186e3c7e34e7052c5261c1e648561a31d2b071fbc7ed44f31840a16c920, but should have SHA256 hash 5d7c2063624f76446b0c881dfb23b090f4c719d8e376acf34a46b7c47a7c3cdb.
Do those look like they have anything to do with the ports ?
 
I don't have a direct answer for your question, but is it possible that the files are from an outdated source tree, source tree didn't get updated, old upgrade from source perhaps?
 
A typical Balkan fellow citizen response :)
Who's talking about the ports ?
I'm talking about the userland applications which may be installed via pkg/ports. Those files are under /usr/local . In your first post you didn't specify for which files you have mismatched checksums.
Expected mismatch checksum are only for some kernel modules and password databases or groups like /etc/group /etc/passwrd /etc/pwd.db as those files are usually modified after the installation.
When you have mismatched checksums in /usr/include then most likely you didn't finish the upgrade process from 11.4 to 13.1. Run again freebsd-upgrade install then reboot and run it again. After that reinstall all userland applications via pkg or ports depending of your env.

In short:

freebsd-update install
shutdown -r now
freebsd-update install
shutdown -r now
pkg bootstrap -f
freebsd-update -af
shutdown -r now
freebsd-update IDS


All this is well explained in chapter 24 in handbook that you can find here:
 
A typical Balkan fellow citizen response :)

I'm talking about the userland applications which may be installed via pkg/ports. Those files are under /usr/local . In your first post you didn't specify for which files you have mismatched checksums.
Expected mismatch checksum are only for some kernel modules and password databases or groups like /etc/group /etc/passwrd /etc/pwd.db as those files are usually modified after the installation.
When you have mismatched checksums in /usr/include then most likely you didn't finish the upgrade process from 11.4 to 13.1. Run again freebsd-upgrade install then reboot and run it again. After that reinstall all userland applications via pkg or ports depending of your env.

In short:

freebsd-update install
shutdown -r now
freebsd-update install
shutdown -r now
pkg bootstrap -f
freebsd-update -af
shutdown -r now
freebsd-update IDS


All this is well explained in chapter 24 in handbook that you can find here:
First of all it seems you didn't even understand the question so in your typical Balkan response you wrote a ton of stuff that have nothing to do with the specific question.
Second this is just one of like 1000 FreeBSD systems of mine. But go ahead quote me more from the holy Handbook ;)
Third freebsd-update IDS have NOTHING to do with the ports/pkgs only with the base system. It seems that you lack a basic understanding of the how FreeBSD operates.
Fourth - I appreciate it but please stop trying to help me. I'm sure there are other people who will appreciate it even more!

I don't have a direct answer for your question, but is it possible that the files are from an outdated source tree, source tree didn't get updated, old upgrade from source perhaps?
It was -STABLE system before that. But I don't need help top fix that system :). It's a 2 min thing to fix it. What I'm asking is if there is an automatic (easier) way to do what I did by hand?
PS: I wonder how dangerous will be something like for example command like freebsd-update restore /bin /usr/bin /usr/include to restore whole directories ? Of course it will be very dangerous to do it on /etc for example unless there is some N/y question for every overwrite.
 
It was -STABLE system before that
freebsd-update support only binary updates between releases. If you want to switch to 13.1-RELEASE from 11.4-STABLE you will need to build from source. After that you can use freebsd-update.
 
That's why you have incorrectly updated base and mismatched checksums. You need to update via source to 13.1-RELEASE.

freebsd-update(8)
The freebsd-update tool is used to fetch, install, and rollback binary
updates to the FreeBSD base system. Note that updates are only available
if they are being built for the FreeBSD release and architecture being
used; in particular, the FreeBSD Security Team only builds updates for
releases shipped in binary form by the FreeBSD Release Engineering Team,
e.g., FreeBSD 11.2-RELEASE and FreeBSD 12.0-RELEASE, but not FreeBSD
11.2-STABLE or FreeBSD 13.0-CURRENT.
 
That's why you have incorrectly updated base and mismatched checksums. You need to update via source to 13.1-RELEASE.

freebsd-update(8)
I fixed that system long ago and fixing it wasn't the point of the post anyway.
And no I don't have to do that :) . Do you know what this is http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.1-RELEASE/ ? You just download the base.txz and voila you have all you need to fix your system if you know what you are doing. As simple as that. I hope it will be useful to you too someday!
 
Back
Top