Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2014 11:19:34 +0100
From:      Carrion Crow <crow@crowsnest.tk>
To:        Alejandro Imass <aimass@yabarana.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pkg versions don't match
Message-ID:  <20141219101934.GA42903@freebsd.crowsnest.tk>
In-Reply-To: <CAHieY7Sct5KOycXwY5zV=DQkOHQ79Q2tRPYWQjn2XhsLpdQfWw@mail.gmail.com>
References:  <CAHieY7TwrW6y7dO1mFCEJgmt923_0ci1s5VJbo0XzDG5H0e7pQ@mail.gmail.com> <CAGZBXN_1P=eHm8FKsCyzT%2BtY8cF05Fi4O5-6FOcAxi3ckZp1Mw@mail.gmail.com> <CAHieY7Sct5KOycXwY5zV=DQkOHQ79Q2tRPYWQjn2XhsLpdQfWw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 19, 2014 at 04:53:22AM -0500, Alejandro Imass wrote:
> On Fri, Dec 19, 2014 at 4:14 AM, Alberto Mijares <amijaresp@gmail.com>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141219101934.GA42903>