Solved pkg mismatch package running kernel

Hi All

When i run pkg update i get an error saying Newer FreeBSD version for package p5-Tk-TableMatrix

To ignore this error set IGNORE_OSVERSION=yes
- package: 1201000
- running kernel: 1200086

Im running FreeBSD 12.0-RELEASE-p13 GENERIC which is also the output from uname -a
There is a post from 2014 and i followed SirDices advice on that page

Bash:
pkg clean # cleans /var/cache/pkg/
rm -rf /var/cache/pkg/* # just remove it all
pkg update -f # forces update  of repository catalog
rm /var/db/pkg/repo-*.sqlite # removes all remote repository catalogs
pkg bootstrap -f # forces reinstall of pkg

But i still get the size mismatch error when i run pkg update

Now when i run pkg update it says its going to remove Firefox

Bash:
The following 5 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
    firefox-73.0.1,1

Installed packages to be UPGRADED:
    vlc: 3.0.8_15,4 -> 3.0.8_16,4 [FreeBSD]
    librsvg2: 2.40.20 -> 2.40.21 [FreeBSD]
    ffmpeg: 4.2.2,1 -> 4.2.2_1,1 [FreeBSD]
    dav1d: 0.5.2_1 -> 0.6.0 [FreeBSD]

Number of packages to be removed: 1
Number of packages to be upgraded: 4

pkg update says it will install a new version of ffmpeg

The only thing i can think of is i built ffmpeg with poudrire,
which i havent rebuild in the last couple of months i dont know if thats causing the issue

I cant figure out why im getting the size mismatch error after cleaning the local pkg cache
I dont really want to do a pkg update and then remove Firefox

If anyone could shed some light on the matter that would be great

Update:

Im came across this bug report that suggests editing /usr/local/etc/pkg.conf

and adding

Bash:
OSVERSION = 1200086;

Which is the kernel version im running

another user in the bug report suggests adding

Bash:
OSVERSION = 9999999;

Would that fix the pkg size mismatch error
 
Thanks SirDice

My bad i was just doing a freebsd-update fetch and then a freebsd-update install

When i try upgrading to 12.1 using

Code:
# freebsd-update -r 12.1-RELEASE upgrade

I get this error

Applying patches... done.
Fetching 41291 files... failed.

i have tried upgrading twice and get the same error

Am i missing something
 
Before doing a version upgrade I always clean out any old stuff that may have collected in /var/db/freebsd-update/.

Are you directly connected? No proxies or anything like that?
 
Hi SirDice

Yes im connected directly no proxies or anything like that

Just retrying the upgrade i thought maybe the server might be having some issues,
and thats why the files werent downloading

I listed /var/db/freebsd-update/ and can see a bunch of files
Should i just nuke everything in /var/db/freebsd-update/

Bash:
# rm -rf /var/db/freebsd-update/*

And then rerun

Bash:
# freebsd-update -r 12.1-RELEASE upgrade

Thanks for the tip about cleaning the freebsd-update directory
 
Should i just nuke everything in /var/db/freebsd-update/
You can, yes. Just make sure the /var/db/freebsd-update/ directory itself still exists. Also do this beforehand and never, ever, do this half way through the install step of an update/upgrade. So make sure any previous updates/upgrades have been fully applied, because this directory is also used to store the backups for the rollback function.
 
Third upgrade failed

Im running 12.0-RELEASE-p13
I ran freebsd-update fetch and install to update to p13

Would i be ok to nuke the contents of /var/db/freebds-update with

Bash:
# rm -rf /var/db/freebsd-update/*

Thanks for the help
 
Removed everything in /var/db/freebsd-update/

Then ran

Bash:
# freebsd-update -r 12.1-RELEASE upgrade

Still getting this error

Applying patches... done.
Fetching 47725 files... failed.

Tried freebsd-update 4 times today and it always fails fetching the files,
and as you all know running freebsd-update isnt quick especially on 9 year old macbook air with 4gig of ram

Could it be an issue with the server its fetching the files from timing out or something

I cant think what else the issue is

Rebooted and the update the the 5th time still no joy
This is the output when i # freebsd-update -r 12.1-RELEASE upgrade

The following components of FreeBSD seem to be installed:
kernel/generic kernel/generic-dbg src/src world/base world/doc
world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)? y
 
Tried freebsd-update today for the 6th time and it still fails to download the files,
running freebsd-update aint quick and it gets pretty boring fast rerunning the update over and over again

I was hoping it was a server issue maybe timing out causing the files download to fail
Sods law just as i got my new ducky keyboard Freebsd decides to start acting up

Does anyone know why freebsd-update would fail to download the files,
are there any workarounds like downloading freebsd 12.1 manually

I cant figure out whats causing freebsd-update to fail

This is the contents of my /etc/freebsd-update.conf

Does anything look a miss

Bash:
# $FreeBSD: releng/12.0/usr.sbin/freebsd-update/freebsd-update.conf 337338 2018-08-04 22:25:41Z brd $

# Trusted keyprint.  Changing this is a Bad Idea unless you've received
# a PGP-signed email from <security-officer@FreeBSD.org> telling you to
# change it and explaining why.
KeyPrint 800651ef4b4c71c27e60786d7b487188970f4b4169cc055784e21eb71d410cc5

# Server or server pool from which to fetch updates.  You can change
# this to point at a specific server if you want, but in most cases
# using a "nearby" server won't provide a measurable improvement in
# performance.
ServerName update.FreeBSD.org

# Components of the base system which should be kept updated.
Components src world kernel

# Example for updating the userland and the kernel source code only:
# Components src/base src/sys world

# Paths which start with anything matching an entry in an IgnorePaths
# statement will be ignored.
IgnorePaths

# Paths which start with anything matching an entry in an IDSIgnorePaths
# statement will be ignored by "freebsd-update IDS".
IDSIgnorePaths /usr/share/man/cat
IDSIgnorePaths /usr/share/man/whatis
IDSIgnorePaths /var/db/locate.database
IDSIgnorePaths /var/log

# Paths which start with anything matching an entry in an UpdateIfUnmodified
# statement will only be updated if the contents of the file have not been
# modified by the user (unless changes are merged; see below).
UpdateIfUnmodified /etc/ /var/ /root/ /.cshrc /.profile

# When upgrading to a new FreeBSD release, files which match MergeChanges
# will have any local changes merged into the version from the new release.
MergeChanges /etc/ /boot/device.hints

### Default configuration options:

# Directory in which to store downloaded updates and temporary
# files used by FreeBSD Update.
# WorkDir /var/db/freebsd-update

# Destination to send output of "freebsd-update cron" if an error
# occurs or updates have been downloaded.
# MailTo root

# Is FreeBSD Update allowed to create new files?
# AllowAdd yes

# Is FreeBSD Update allowed to delete files?
# AllowDelete yes

# If the user has modified file ownership, permissions, or flags, should
# FreeBSD Update retain this modified metadata when installing a new version
# of that file?
# KeepModifiedMetadata yes

# When upgrading between releases, should the list of Components be
# read strictly (StrictComponents yes) or merely as a list of components
# which *might* be installed of which FreeBSD Update should figure out
# which actually are installed and upgrade those (StrictComponents no)?
# StrictComponents no

# When installing a new kernel perform a backup of the old one first
# so it is possible to boot the old kernel in case of problems.
# BackupKernel yes

# If BackupKernel is enabled, the backup kernel is saved to this
# directory.
# BackupKernelDir /boot/kernel.old

# When backing up a kernel also back up debug symbol files?
# BackupKernelSymbolFiles no
 
Hi SirDice

I haven't had any issue with my internet connection.
I have super fast broadband and use a pfsense box and everything is plugged in via ethernet

Is there a a way to manually download FreeBSD 12.1 and install it or specify a different server in /etc/freebsd-update.conf

Only thing I can think of is some issue with the update server
I don't think I changed anything in /etc/freebsd-update.conf that would cause an issue

Can't think what else could be causing the issue.

One strange thing I noticed is when I run pkg update and then pkg upgrade.
pkg says it will remove firefox which I noticed in another thread isnt in this quarterly update

Just wondering if somehow stuff has gotten out of sync
 
Cheers SirDice

Is there a debug option with freebsd-update to see what the issue or a way to manually download and install the files?

It's not like the connection to the update server is blocked at my end.
It just can't download the files in the last step of the update like it's timing out or something.

Thanks for all help
 
Is there a debug option with freebsd-update to see what the issue
-v debug or --debug

You can have a look yourself, in case you didn't know yet, /usr/sbin/freebsd-update is a large, elaborate shell script. So it's fairly easy to see what it does and how it works.
 
Cheers SirDice

Ill take a look and run freebsd-update with the -v option

Totally unrelated but i just came across barrier a synergy fork,
it also has ssl which the free version of synergy doesnt have

i just set it up on Mac and linux and i see there is also a freebsd package,
synergy has been removed from ubuntu repo so barrier is a good alternative to synergy
 
Running freebsd-update with the --debug option shows a 404 error when running phttpget

Bash:
Fetching 1 metadata patches...
/usr/libexec/phttpget update4.freebsd.org 12.0-RELEASE/amd64/tp/3c2ea3a40f74e88912acdfc1549a39d1a2059e6b16cafcf377619b3fe15165ef-8e0f1c06e885060c2cb97eb10e94dbdca91bce5366906256a48d1d94336f3b5d.gz
http://update4.freebsd.org/12.0-RELEASE/amd64/tp/3c2ea3a40f74e88912acdfc1549a39d1a2059e6b16cafcf377619b3fe15165ef-8e0f1c06e885060c2cb97eb10e94dbdca91bce5366906256a48d1d94336f3b5d.gz: 404 Error (ignored)
 done.
Applying metadata patches... done.
Fetching 1 metadata files...
/usr/libexec/phttpget update4.freebsd.org 12.0-RELEASE/amd64/m/8e0f1c06e885060c2cb97eb10e94dbdca91bce5366906256a48d1d94336f3b5d.gz
http://update4.freebsd.org/12.0-RELEASE/amd64/m/8e0f1c06e885060c2cb97eb10e94dbdca91bce5366906256a48d1d94336f3b5d.gz: 200 OK
done.
Inspecting system... done.

Could that be the issue
 
Back
Top