Date: Mon, 19 Feb 2018 23:38:42 +0100 From: "Ronald Klop" <ronald-lists@klop.ws> To: "Rainer Hurling" <rhurlin@gwdg.de>, "Konstantin Belousov" <kostikbel@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: pkg does not recognize correct kernel version Message-ID: <op.zepfusvakndu52@klop.ws> In-Reply-To: <20180219210551.GE94212@kib.kiev.ua> References: <op.zeo60hflkndu52@klop.ws> <eeae41de-d83b-93b4-0b69-bb62c9e84bb4@gwdg.de> <op.zeo9mlutkndu52@klop.ws> <80b54e13-7e6c-a52e-4d42-16903e16e67b@gwdg.de> <20180219210551.GE94212@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Feb 2018 22:05:51 +0100, Konstantin Belousov <kostikbel@gmail.com> wrote: > On Mon, Feb 19, 2018 at 09:39:37PM +0100, Rainer Hurling wrote: >> Am 19.02.2018 um 21:24 schrieb Ronald Klop: >> > On Mon, 19 Feb 2018 21:10:48 +0100, Rainer Hurling <rhurlin@gwdg.de> >> wrote: >> > >> >> Hi Ronald, >> >> >> >> Am 19.02.2018 um 20:27 schrieb Ronald Klop: >> >>> I just did this. >> >>> >> >>> root@sjakie ~]# pkg upgrade >> >>> Updating FreeBSD repository catalogue... >> >>> Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 >> >>> Fetching packagesite.txz: 100% 6 MiB 6.0MB/s 00:01 >> >>> Processing entries: 0% >> >>> pkg: Newer FreeBSD version for package gnome-menus: >> >>> - package: 1200058 >> >>> - running kernel: 1200056 >> >>> pkg: repository FreeBSD contains packages for wrong OS version: >> >>> FreeBSD:12:amd64 >> >>> Processing entries: 100% >> >>> Unable to update repository FreeBSD >> >>> Error updating repositories! >> >>> >> >>> [root@sjakie ~]# uname -UK >> >>> 1200058 1200058 >> >>> >> >>> [root@sjakie ~]# uname -a >> >>> FreeBSD sjakie 12.0-CURRENT FreeBSD 12.0-CURRENT #4 r329516M: Sun >> Feb 18 >> >>> 12:37:36 CET 2018 >>> >> ronald@sjakie:/data/ronald/obj-freebsd-current/data/ronald/freebsd-current/amd64.amd64/sys/GENERIC-NODEBUGamd64 >> >>> >> >>> >> >>> >> >>> So uname gives a different version than pkg detects. >> >>> >> >>> What is happening? pkg update -f gives the same result. -o >> >>> OSVERSION=1200058 helps, but does not feel like the right solution. >> >>> >> >>> Regards, >> >>> Ronald. >> >> >> >> Please try >> >> >> >> #sysctl kern.osreldate >> >> kern.osreldate: 1200058 >> >> >> >> HTH, >> >> Rainer Hurling >> > >> > >> > [root@sjakie ~]# sysctl kern.osreldate >> > kern.osreldate: 1200058 >> > >> > Regards, >> > Ronald. >> >> On my kernel patchlevel 1200058 (r329446) I get: >> >> #pkg update -f >> Updating FreeBSD repository catalogue... >> Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 >> Fetching packagesite.txz: 100% 6 MiB 1.2MB/s 00:05 >> Processing entries: 100% >> FreeBSD repository update completed. 28645 packages processed. >> All repositories are up to date. >> >> >> Perhaps more a local problem :( > > Look at the man page. pkg reads version from the /bin/sh ELF FreeBSD Which man page? I can't find it in pkg help update or pkg help upgrade or man pkg. > version note: > orion% file /bin/ls > /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), > dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.1 > (1101506), FreeBSD-style, stripped > > Update world past the __FreeBSD_version which is reported for the > repository. Does this mean I always have to do a *clean* buildworld after every version bump? This takes ages. Regards, Ronald.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.zepfusvakndu52>