Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2014 04:44:57 -0430
From:      Alberto Mijares <amijaresp@gmail.com>
To:        Alejandro Imass <aimass@yabarana.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: pkg versions don't match
Message-ID:  <CAGZBXN_1P=eHm8FKsCyzT%2BtY8cF05Fi4O5-6FOcAxi3ckZp1Mw@mail.gmail.com>
In-Reply-To: <CAHieY7TwrW6y7dO1mFCEJgmt923_0ci1s5VJbo0XzDG5H0e7pQ@mail.gmail.com>
References:  <CAHieY7TwrW6y7dO1mFCEJgmt923_0ci1s5VJbo0XzDG5H0e7pQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Alejandro,


On Thu, Dec 18, 2014 at 11:54 PM, Alejandro Imass <aimass@yabarana.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGZBXN_1P=eHm8FKsCyzT%2BtY8cF05Fi4O5-6FOcAxi3ckZp1Mw>