Re: pkg does not update the repo catalogue

From: Matthew Seaman <m.seaman_at_infracaninophile.co.uk>
Date: Mon, 7 Dec 2015 11:31:40 +0000
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_at_ -> .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_at_ -> .latest/All
lrwxr-xr-x    1 root  wheel   14 Dec 19  2014 Latest_at_ -> .latest/Latest
lrwxr-xr-x    1 root  wheel   19 Dec 19  2014 digests.txz_at_ ->
.latest/digests.txz
lrwxr-xr-x    1 root  wheel   16 Dec 19  2014 meta.txz_at_ -> .latest/meta.txz
lrwxr-xr-x    1 root  wheel   23 Dec 19  2014 packagesite.txz_at_ ->
.latest/packagesite.txz

Does the .latest symlink point at the .real_$TIMESTAMP you're expecting?

	Cheers,

	Matthew




Received on Mon Dec 07 2015 - 10:31:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC