Pkgupdate unhappy about OS version mismatch, cannot update


#1
> sudo pc-updatemanager pkgupdate
Boot-strapping updater...OK
Boot-strapping latest PKGNG
Updating the package repo database...
Cleaning old pkg upgrade cache...
fetch -o /usr/local/pkg-cache/fbsd-distrib.txz http://pkg.cdn.trueos.org/unstable/amd64-base/fbsd-distrib.txz
/usr/local/pkg-cache/fbsd-distrib.txz         100% of 3566 kB 1278 kBps 00m03s
/usr/local/pkg-cache/fbsd-distrib.txz.sha1    100% of  512  B 2441 kBps 00m00s
Verified OK
Updating trueos-base repository catalogue...
trueos-base repository is up to date.
Updating trueos-major repository catalogue...
pkg-static: Repository trueos-major load error: access repo file(/var/db/pc-updatemanager/pkgdb/repo-trueos-major.sqlite) failed: No such file or directory
Fetching meta.txz: . done
Fetching packagesite.txz: .......... done
Processing entries:
pkg-static: Newer FreeBSD version for package php70-zlib:
- package: 1200056
- running kernel: 1200054
pkg-static: repository trueos-major contains packages for wrong OS version: FreeBSD:12:amd64
Processing entries... done
Unable to update repository trueos-major
Error updating repositories!
Verifying / fetching packages for ports-mgmt/pkg - .txz
pkg-static: Repository trueos-major missing. 'pkg update' required
pkg-static: Repository trueos-major missing. 'pkg update' required
pkg-static: Repository trueos-major missing. 'pkg update' required
pkg-static: Repository trueos-major missing. 'pkg update' required
ERROR: Failed fetching: ports-mgmt/pkg - .txz
> about

===================
General information
===================

boot environment now (N) … 12.0-CURRENT-up-20180104_202103 NR 2018-01-04
       after restart (R) … 12.0-CURRENT-up-20180104_202103 NR 2018-01-04
boot loader …………………………………… BSD
            type ……………………… BIOS
CPU ………………………………………………………… Intel(R) Core(TM) m3-6Y30 CPU @ 0.90GHz
    number of cores ……………… 4
host ……………………………………………………… bsdsus
memory ………………………………………………… 8192 MB available, 4896 MB free
OS git branch ……………………………………………………………………………………… trueos-master
OS git revision ………………………………………………………………………………… 5085b9023
OS kernel build time ………………………………………………………… Sat 2017 Dec 30 17:10:29 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… UNSTABLE
TrueOS version …………………………… TrueOS-Desktop-201712150936
uptime ………………………………………………… 5 days,  3:24
user  …………………………………………………… orbitz

More (TrueOS Desktop):

    desktop environment …… i3
    sound card driver ………… pcm0: <Realtek ALC255 (Internal Analog)> (play/rec) default
    wireless driver ……………… iwm0
    X11 drivers ………………………… intel_drv.so

#2

my script;

#! /bin/sh
date
sudo pkg update -f
sudo pc-updatemanager pkgcheck
date

See if that makes a difference

If not, roll back one BE and try as well


#3

I get below, and pkgupdate errors out like before.

I’m already on a rather old BE, what is the reasoning behind going back even further?

orbitz@bsdsus ~> sudo pkg update -f
Updating trueos-base repository catalogue...
Fetching meta.txz: 100%    1 KiB   1.5kB/s    00:01
Fetching packagesite.txz: 100%   56 KiB  57.2kB/s    00:01
Processing entries: 100%
trueos-base repository update completed. 805 packages processed.
Updating trueos-major repository catalogue...
pkg-static: Repository trueos-major load error: access repo file(/var/db/pkg/repo-trueos-major.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    1 KiB   1.5kB/s    00:01
Fetching packagesite.txz: 100%    6 MiB   2.0MB/s    00:03
Processing entries:   0%
pkg-static: Newer FreeBSD version for package php70-zlib:
- package: 1200056
- running kernel: 1200054
pkg-static: repository trueos-major contains packages for wrong OS version: FreeBSD:12:amd64
Processing entries: 100%
Unable to update repository trueos-major
Error updating repositories!
orbitz@bsdsus ~> sudo pc-updatemanager pkgcheck
Boot-strapping updater...OK
Updating the pkg database...
The following updates are available:
------------------------------------
NAME: System package updates
TYPE: PKGUPDATE

To install: "pc-updatemanager pkgupdate"

#4

looks like you are good to go


#5

pkgupdate still does not work, though:

orbitz@bsdsus ~> sudo pc-updatemanager pkgupdate
Boot-strapping updater...OK
Boot-strapping latest PKGNG
Updating the package repo database...
Cleaning old pkg upgrade cache...
fetch -o /usr/local/pkg-cache/fbsd-distrib.txz http://pkg.cdn.trueos.org/unstable/amd64-base/fbsd-distrib.txz
/usr/local/pkg-cache/fbsd-distrib.txz         100% of 3566 kB 2057 kBps 00m02s
/usr/local/pkg-cache/fbsd-distrib.txz.sha1    100% of  512  B 2908 kBps 00m00s
Verified OK
Updating trueos-base repository catalogue...
trueos-base repository is up to date.
Updating trueos-major repository catalogue...
pkg-static: Repository trueos-major load error: access repo file(/var/db/pc-updatemanager/pkgdb/repo-trueos-major.sqlite) failed: No such file or directory
Fetching meta.txz: . done
Fetching packagesite.txz: .......... done
Processing entries:
pkg-static: Newer FreeBSD version for package php70-zlib:
- package: 1200056
- running kernel: 1200054
pkg-static: repository trueos-major contains packages for wrong OS version: FreeBSD:12:amd64
Processing entries... done
Unable to update repository trueos-major
Error updating repositories!
Verifying / fetching packages for ports-mgmt/pkg - .txz
pkg-static: Repository trueos-major missing. 'pkg update' required
pkg-static: Repository trueos-major missing. 'pkg update' required
pkg-static: Repository trueos-major missing. 'pkg update' required
pkg-static: Repository trueos-major missing. 'pkg update' required
ERROR: Failed fetching: ports-mgmt/pkg - .txz

#6

mine

sudo pc-updatemanager pkgcheck
Boot-strapping updater…OK
Updating the pkg database…
All packages are up to date!

I’m wondering why you are getting the PKGNG command thrown in there


#7

I just encountered the same error.

I had to roll back to the first update BE to finally get updates to start.

Roll back until you can get updated.

It’s the FreeBSD pkg command that is causing the issue


#8

I am also seeing the PKGNG command on my fresh STABLE 17.12 install.


#9

weird. i’ll point it out to the devs.

thank you


#10

I went back a BE and then upgraded and I think I’m on latest, sadly it seems like more things are broken in this one than the other BE I had.


#11

as long as you have the same "OS git revision ………………………………………………………………………………… beb069a2a ", you should be upgraded.

What is broke for you?

about

===================
General information

boot environment now (N) … 12.0-CURRENT-up-20180302_133649 NR 2018-03-02
after restart ® … 12.0-CURRENT-up-20180302_133649 NR 2018-03-02
boot loader …………………………………… BSD
type ……………………… EFI
CPU ………………………………………………………… Intel® Core™ i5-2520M CPU @ 2.50GHz
number of cores ……………… 4
host ……………………………………………………… laptop.hitwe-8.org
memory ………………………………………………… 12288 MB available, 7666 MB free
OS git branch ……………………………………………………………………………………… trueos-master
OS git revision ………………………………………………………………………………… beb069a2a
OS kernel build time ………………………………………………………… Mon 2018 Feb 12 14:46:38 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… UNSTABLE
TrueOS version …………………………… TrueOS-Desktop-201802271624
uptime ………………………………………………… 28 mins
user …………………………………………………… rodney

More (TrueOS Desktop):

desktop environment …… Lumina
sound card driver ………… pcm0: <Conexant CX20590 (Analog 2.0+HP/2.0)> (play/rec) default
wireless driver ……………… iwn0
X11 drivers ………………………… modesetting_drv.so

#12

I am running TrueOS on two computers (laptop and desktop). Both are fresh installations of TrueOS-17.12-STABLE. While the laptop is running well and not showing any strange behaviour, the desktop computer has some programs segfaulting (gpodder, hplip).
The laptop’s pc-updatemanager log says

pc-updatemanager: Thu Jan 4 19:25:24 CET 2018
Checking for updates to ports-mgmt/pkg..
Updating the package repo database...
Cleaning old pkg upgrade cache...

The deskop’s pc-updatemanager log says

pc-updatemanager: Fri Mar 2 19:52:24 CET 2018
Boot-strapping latest PKGNG
Updating the package repo database...
Cleaning old pkg upgrade cache...

(I already posted this under trueos-core issue #235)


#13

Hi @RodMyers, did you have a chance yet to speak with the devs regarding the PKGNG issue?


#14

FreeBSD pkg has been, and still being tinkered with.

Best they told me, and I can offer. keep rolling back until you get a good update.


#15

Many thanks for the quick reply! I am seeing this in all of my BEs… I don’t know which of my issues might be related to this but so far I can live with them. Hopefully, when pgk is repaired, a forced update/reinstallation of all packages will sort things out for me.


#16

may want to try

sudo pkg update -f


#17

Thanks, but I already tried that, at least twice, plus new installation into BE. Makes no difference…


#18

STABLE or UNSTABLE?

if you’re using UNSTABLE, are you using IPFS or CDN? If IPFS, switch back to CDN


#19

I am on STABLE.

% pkg-static --version
1.10.1

Should that be 1.10.5? Or is pkg 1.10.5 in UNSTABLE, only?


#20

i just checked

stable = 1.10.1

unstable - 1.10.5