pkg does not update the repo catalogue
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Dec 7 11:31:47 UTC 2015
On 12/07/15 11:04, Matthias Apitz wrote:
> Now 'pkg -vv' shows only myrepo; the 'pkg upgrade -f' ended up with
> reinstallation of all ~1000 packages;
Ooops. 'pkg upgrade -f' says 'reinstall everything' -- which was an
error on my part. I meant to type 'pkg update -f' which only refreshes
the repo catalogues. Apologies.
> but all this did not solved the problem;
>
>> > If changing the repo tag doesn't fix the problem, try turning on some
>> > debugging output:
>> >
>> > env DEBUG_LEVEL=4 pkg update -f
> The output of STDERR is here: http://www.unixarea.de/pkg-stderr.txt
> (4 MByte, 100.000 lines)
Hmmmm.... it seems fairly clear to me that the 8 new packages aren't in
the repo catalogue that you're downloading. You built the repo using
poudriere? Poudriere does some fun'n'games with symbolic links to
achieve an atomic repo update, which means there is actually a history
of previous versions of the repo kept. You'll see a directory structure
like this:
% ls -la
total 159
drwxr-xr-x 102 root wheel 108 Dec 7 00:19 ./
drwxr-xr-x 9 root wheel 15 Aug 4 11:39 ../
lrwxr-xr-x 1 root wheel 16 Dec 7 00:19 .latest@ -> .real_1449447572
[...]
drwxr-xr-x 4 root wheel 8 Dec 5 01:27 .real_1449278821/
drwxr-xr-x 4 root wheel 8 Dec 6 00:55 .real_1449363354/
drwxr-xr-x 4 root wheel 8 Dec 7 00:19 .real_1449447572/
lrwxr-xr-x 1 root wheel 11 Dec 19 2014 All@ -> .latest/All
lrwxr-xr-x 1 root wheel 14 Dec 19 2014 Latest@ -> .latest/Latest
lrwxr-xr-x 1 root wheel 19 Dec 19 2014 digests.txz@ ->
.latest/digests.txz
lrwxr-xr-x 1 root wheel 16 Dec 19 2014 meta.txz@ -> .latest/meta.txz
lrwxr-xr-x 1 root wheel 23 Dec 19 2014 packagesite.txz@ ->
.latest/packagesite.txz
Does the .latest symlink point at the .real_$TIMESTAMP you're expecting?
Cheers,
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20151207/69373ee6/attachment.sig>
More information about the freebsd-current
mailing list