From owner-freebsd-questions@FreeBSD.ORG Fri Dec 19 09:14:58 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6034EF80 for ; Fri, 19 Dec 2014 09:14:58 +0000 (UTC) Received: from mail-yk0-x22f.google.com (mail-yk0-x22f.google.com [IPv6:2607:f8b0:4002:c07::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 286522BE0 for ; Fri, 19 Dec 2014 09:14:58 +0000 (UTC) Received: by mail-yk0-f175.google.com with SMTP id 200so197366ykr.6 for ; Fri, 19 Dec 2014 01:14:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Rnd+8FOTQROvuKEVnKlABMUkPgUTAnobla+ATbwIZHA=; b=cpRZ3kFVyp0nd3toTnoQJTJx4Kt9Cye4SYCuHs4Jh3wnVwYYx0A0WXngRHO348cy2e 3Nt9cLKCZrtPDnsT0v9GLYLNuA69hNMIl3eQEvOrUIm7bu4sCmDvZ645vhuiKZ82xbMg fMGaNpKJxTig9KALAg117oVpEUmG6XZCe/S4CPQA+Ux4JvGx8zsJ8sZ+Pg5Zoc/uaDm8 TDkpY7T4TTEHo6W2vM/9Dvg7xHY1YrhB0scSCl+jovPh9TeoVl0SOWZcZyV/PMS+mMB4 URN9XDOhUvVLo1ZDiiyT3SunUNKIb7c51/GKhD88wl3h3eucm7qbDFXediG3sLtNQC58 QeSA== MIME-Version: 1.0 X-Received: by 10.236.222.233 with SMTP id t99mr5246463yhp.125.1418980497351; Fri, 19 Dec 2014 01:14:57 -0800 (PST) Received: by 10.170.76.135 with HTTP; Fri, 19 Dec 2014 01:14:57 -0800 (PST) In-Reply-To: References: Date: Fri, 19 Dec 2014 04:44:57 -0430 Message-ID: Subject: Re: pkg versions don't match From: Alberto Mijares To: Alejandro Imass Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2014 09:14:58 -0000 Hi Alejandro, On Thu, Dec 18, 2014 at 11:54 PM, Alejandro Imass wrote: > Hi, > > I am new to pkg and using a relatively recently installed 10.0-RELEASE. > Today I tried installing and upgrading stuff and the pkg versions on > http://pkg.freebsd.org differ from those that pkg finds. > > I tried pkg update, etc. but everything says up to date. nevertheless the > versions in: > > http://pkg.freebsd.org/freebsd:10:x86:64/latest/All/ > > Do not match. Look at this example: > > root@poseidon:/etc/pkg # pkg search fail2ban > py27-fail2ban-0.9.0_2 > > root@poseidon:/etc/pkg # pkg install py27-fail2ban > Updating FreeBSD repository catalogue... > FreeBSD repository is up-to-date. > All repositories are up-to-date. > The following 6 packages will be affected (of 0 checked): > > New packages to be INSTALLED: > py27-fail2ban: 0.9.0_2 > python27: 2.7.8_4 > python2: 2_3 > py27-setuptools27: 5.5.1 > py27-sqlite3: 2.7.8_5 > sqlite3: 3.8.6 > > The process will require 68 MB more space. > 10 MB to be downloaded. > > Proceed with this action? [y/N]: y > pkg: > http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/All/py27-fail2ban-0.9.0_2.txz: > Not Found > > In effect the correct version should be py27-fail2ban-0.9.1.txz Try this: # pkg -f update and then try to install fail2ban again. > > How to I update the local pkg db? I updated ports collections thinking they > were somehow related but nothing. I don't know what else to do. > > Thanks for any pointers. > Before using pkg, had you used another package manager? (pkg_add, ports). If so, you should run # pkg2ng before attempt to install anything with pkgng. Hope this helps. Best regards, Alberto Mijares