Broken my pkg set up...

Peter Harrison four.harrisons at googlemail.com
Sat Sep 20 18:00:49 UTC 2014


Peter Harrison
On 19 Sep 2014 23:43, "doug" <doug at fledge.watson.org> wrote:
>
> On Fri, 19 Sep 2014, Peter Harrison wrote:
>
>> Dear list,
>>
>> I seem to have broken my pkg beyond all repair (that I can find at
least).
>>
>> The problem seems to stem from having used postmaster to update chromium
>> (and a couple of other ports) when there was a bit of a delay in the
>> official repository being update.
>>
>> pkg now refuses to update those ports.
>>
>> I get:
>>
>> "pkg: Cannot solve problem using SAT solver"
>>
>> Consistently for those ports which were updated by hand.
>>
>> I've gone so far as to delete all ports (pkg delete -a), verify that the
>> pkg database is empty (pkg info) run pkg check -Ba. But on reinstall I
get
>> the exact same message on the exact same ports - including slim, xfce4,
and
>> chromium.
>>
>> What am I doing wrong?
>>
>> This is on 10-RELEASE i386
>>
> This is shooting in the dark because you did not list what errors you
were getting:
>
>   1) check your version of pkg, it should be [at least] 1.3.7
>
>   2) somewhere between 1.1.4 and the current version the format of
pkg.conf
>      changed. This keeps pkg from updating. pkg.conf.sample should be
okay.
>      Rename it and update pkg if that is your issue.
>
>   3) Various threads have talked about deleting old meta data. I have
never
>      used pkg in a way to have the directories and/or files discussed on
my
>      system.
>
>   4) Make sure to set make.conf: WITH_PKGNG=yes
>
> Given that you have cleared everything and still get the problem, make
sure what version you have. I had my problems on a 9.2 system, so your
issue is probably not what I had. However seeing if you have the latest
version of pkg and updating to that version if not, is a good place to
start.
>
> Post the command and the errors you are getting.

Thanks. I managed to resolve the problem by forcibly deleting all ports,
including pkg; deleting /var/db/pkg/; then reinstalling pkg and all
subsequent pkgs.

I have encountered another problem but I'll cover that in another mail.

Cheers.

Peter.


More information about the freebsd-questions mailing list