From owner-freebsd-current@freebsd.org Mon Feb 19 20:24:14 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFA96F21629 for ; Mon, 19 Feb 2018 20:24:14 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D66769A28 for ; Mon, 19 Feb 2018 20:24:14 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1enryu-0007SW-6b; Mon, 19 Feb 2018 21:24:12 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-current@freebsd.org, "Rainer Hurling" Subject: Re: pkg does not recognize correct kernel version References: Date: Mon, 19 Feb 2018 21:24:11 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 4c3c8b3d32e7d0cfaf2d58264fc1daa3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Feb 2018 20:24:15 -0000 On Mon, 19 Feb 2018 21:10:48 +0100, Rainer Hurling 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-NODEBUG >> amd64 >> >> >> 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.