Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Oct 2015 09:41:38 +0200
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-pkg@freebsd.org
Subject:   Re: Interrupted 'pkg update' problem
Message-ID:  <560E3532.2090403@FreeBSD.org>
In-Reply-To: <20151002065911.GB892@vps.markoturk.info>
References:  <20151002065911.GB892@vps.markoturk.info>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--2Qm6sNgba8xRM9KPJaPUvLhvm8bmbGM5g
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 02/10/2015 08:59, Marko Turk wrote:
> root@projects:~ # pkg update -f
> Updating FreeBSD repository catalogue...
> [projects.enterprise.my] Fetching meta.txz: 100%    944 B   0.9kB/s    =
00:01
> [projects.enterprise.my] Fetching packagesite.txz: 100%    5 MiB 691.6k=
B/s    00:08
> Processing entries:   9%^C  --- interrupted while processing
> root@projects:~ # pkg install cmus
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up-to-date.
> All repositories are up-to-date.
> pkg: No packages available to install matching 'cmus' have been found i=
n the repositories
> root@projects:~ #

Yes.  Interrupting pkg while it is processing a new catalog results in
an incomplete catalogue.

Probably this should roll-back to a known good state, or at least mark
the catalogue as still out of date so the next time pkg(8) gets run it
tries to update the catalogue again.

Until that gets implemented, the work around is to run 'pkg update -f'
In fact, that's generally the first thing you should try if pkg misbehave=
s.

	Cheers,

	Matthew


=09


--2Qm6sNgba8xRM9KPJaPUvLhvm8bmbGM5g
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2

iQJ8BAEBCgBmBQJWDjUzXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATsxkP/34yTB/QbyUCPvgqi0DbEzXF
AryQ4DysxrJsNp55TvZGH4NTvESUrlIxEJtHUZVUHzm/7TyUjWjbEGKEUgvkIuC3
Pkwj0dkh8HfP8coQqp6u1+ebUXWMCqdPan7KV24ruVTfEnvEjrZmrpopfMViX2la
s5CYcDRsjgtFEwRrG3VZ7+mvNfaQ9y7exFOMBX1R/8O4/hbx3DD0/85zFA8QQwsU
HrO/4VymkRitEfCRFB8uGjcGhtwyhhGg5yruJ58LXiatte9anASzmhCVr+YbeZOd
K6Pv0iqwKuo3qIv8I86gUCGKWKzQp8D/62KbPAnz9Q4Oic1wABxhN0Rsb/ar9+hw
PCAzyWc5CZtLk5iq1py+ipaJ4LtYgXqN+cx1rUBwS5SjGlCL81OblKCKsDvmoNq8
yajmNgznNkEvIF0mg461iJeVUszxtVXG8WKyWjbm1Hd5xNAgNrySCLNB8f42BQIX
hLL+Z62IVwAGVGMWMTWcK7uWmhn0xmbjm4lRbHQdzEKFXzB/py+OQJMsbhwglmcM
BryTa/MiLyDxOjNvJzVZ0NnuofgV53n7j4ACl8IU8zm3oFrx26XqTyZK42uM/Iec
W8CLqweXBzobxN6XXgj+sVgX4zePpaj748kpSNP+yMH78fExiud9x35dS2P6hFS7
o/VoE0inHKjYjMEhAluV
=q3Ek
-----END PGP SIGNATURE-----

--2Qm6sNgba8xRM9KPJaPUvLhvm8bmbGM5g--



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