From owner-freebsd-questions@FreeBSD.ORG Fri Dec 19 10:44:08 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 D6509589 for ; Fri, 19 Dec 2014 10:44:08 +0000 (UTC) Received: from freebsd.crowsnest.tk (crowsnest.tk [188.116.52.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "nest", Issuer "nest" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CE431AF6 for ; Fri, 19 Dec 2014 10:44:07 +0000 (UTC) Received: from freebsd.crowsnest.tk (localhost [127.0.0.1]) by freebsd.crowsnest.tk (8.14.9/8.14.9) with ESMTP id sBJAJZss067806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 19 Dec 2014 11:19:36 +0100 (CET) (envelope-from crow@localhost.crowsnest.tk) Received: (from crow@localhost) by freebsd.crowsnest.tk (8.14.9/8.14.9/Submit) id sBJAJYZf067805; Fri, 19 Dec 2014 11:19:34 +0100 (CET) (envelope-from crow) Date: Fri, 19 Dec 2014 11:19:34 +0100 From: Carrion Crow To: Alejandro Imass Subject: Re: pkg versions don't match Message-ID: <20141219101934.GA42903@freebsd.crowsnest.tk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-questions@freebsd.org 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 10:44:08 -0000 On Fri, Dec 19, 2014 at 04:53:22AM -0500, Alejandro Imass wrote: > On Fri, Dec 19, 2014 at 4:14 AM, Alberto Mijares > wrote: > > [...] > > > > Try this: > > > > # pkg -f update > > > > and then try to install fail2ban again. > > > > > > > Alberto, thanks for the tip but -f says illegal option looked in man and it > does not exist. This is a fresh 10.0-RELEASE install so it came with pkg > preinstalled and no need for pkg2ng AFAICR. Anyway it was working just fine > but it seems the versions in remote do not match the versions in my local > pkgng database, even though it says is all up to date! > > root@poseidon:/etc/pkg # pkg update > Updating FreeBSD repository catalogue... > FreeBSD repository is up-to-date. > All repositories are up-to-date. > 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 It should be: pkg update -f "-f" flag is for "update" option, not for pkg. -- Carrion Crow ----------------- "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." -- Dennis Ritchie