Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jun 2020 07:27:15 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg update
Message-ID:  <5d3cb5f2-94d0-b16f-763c-03ff4120ed2c@FreeBSD.org>
In-Reply-To: <DB8PR06MB6442774CD0501939D4E50FB2F6870@DB8PR06MB6442.eurprd06.prod.outlook.com>
References:  <CY4PR19MB0104E7C06DA8C433858466ABF9870@CY4PR19MB0104.namprd19.prod.outlook.com> <DB8PR06MB6442774CD0501939D4E50FB2F6870@DB8PR06MB6442.eurprd06.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--rlyG7XdoaUm1i2KtwELLlG00sfaBWqtpo
Content-Type: multipart/mixed; boundary="hK5WOiRQ59yQcU5utzv98qtzHRBnyzcJA"

--hK5WOiRQ59yQcU5utzv98qtzHRBnyzcJA
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 06/06/2020 08:55, Manish Jain wrote:
> This is a known problem with pkg, which sometimes happens for reasons I=

> do not know. The following steps should resolve your issue :
>=20
> rm -rf /var/cache/pkg/* /var/db/pkg/repo-*.sqlite
> pkg bootstrap -f
> pkg update -f
>=20

Doing this will really spoil your day.  The first command removes all of
the accumulated knowledge your system has about what packages are
installed, meaning the third command will *only* know about pkg(8) for
the forced update.  Recovering from this situation is quite painful.

Even if you did manage to save a list of installed packages this is
still undesirable: you will re-write pretty much everything under
/usr/local to no real benefit.

First, check /etc/pkg/FreeBSD.conf and /usr/local/etc/pkg/repos/*.conf
for typos.  Use `pkg -vv` and look at the 'Repositories' section at the
end of that output to see the ultimate repository configuration pkg(8)
is using.



--hK5WOiRQ59yQcU5utzv98qtzHRBnyzcJA--

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

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAl7d2kNfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5
RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp
5OfAbw//dHpxAtOKXjc52FrfWULBUfe95jhPQlT0kuPOxPSVlK2N1hEhYldUBlHo
iboPMWx7aa/GaDmhN+KQnpvHGqLqT0GE6buSN5KYYl1k1i1kglOv00DKWYR30K44
mzVc5bZSFGISRLY5z32/I5MSciGjKhXzXAeQe57ZysqWnI4x63DNAnbSmdAgtc0B
Cj9EpTRd4kIMydHzo0ejYScctTuqGgT0setxxDUlPbn/s6HEqt+WJFwDF42IBCUi
vLCN2X1n8NPsR73BCFd0f+o+q6v0G070xw/VM51MHy5O8K0WAQc4XkHERoI1Jr9H
Mj53OPF5Vvsx5/5PolwP8XBQ+zlmami/6AiqPWHl9vLvl8f/Y5TiytBB5w9px32R
zjgvGJFfSKsGBeB44OTrUrZQ0OnxCIEyCfXjkUgmWKTpsT4dzIM45t88vchctdPF
Cp/7aWDoYucfvZOBwkIrS+Q2rqM57Z+MiYFhiqGJwOjEtFZcZi+PZCqlBYSEZvf5
JggM9vRXLctOupGUQaIrtqJEsC9IbwYG7TPhSgWHlEZXWU71XyqZDEAsoydLbAn/
t4iN/40zRJ91BAjBQQCU8Q8BOFtAXLHleS19tWdWjn6lJVdXvWadVt5GCviAUzin
lrg5NLBu9PtfEHCUujzx1EKxrDVLHhvYb1lec4W/XhspNYl7sJU=
=VkOu
-----END PGP SIGNATURE-----

--rlyG7XdoaUm1i2KtwELLlG00sfaBWqtpo--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5d3cb5f2-94d0-b16f-763c-03ff4120ed2c>