Date: Mon, 17 Oct 2016 18:17:22 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Rostislav Krasny <rosti.bsd@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: pkg: cached package size mismatch, again Message-ID: <20161017161722.y545dqur5izs7t7o@ivaldir.etoilebsd.net> In-Reply-To: <CANt7McG3A_8RtaBAs0w=E5S5-VgGUSkzSJw93mrdjiGxwcGLUQ@mail.gmail.com> References: <CANt7McEzz5NMiYT4qiWbw%2BvLcyyk5Mc_FhfundC_u6J6C-B%2BhA@mail.gmail.com> <CANt7McG3A_8RtaBAs0w=E5S5-VgGUSkzSJw93mrdjiGxwcGLUQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--popdccgb6j5fvjtg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 17, 2016 at 06:11:45PM +0300, Rostislav Krasny wrote: > On Mon, Oct 17, 2016 at 5:55 PM, Rostislav Krasny <rosti.bsd@gmail.com> w= rote: > > Hi, > > > > I've a fresh FreeBSD 11.0 installed. When I try to install x11/kde4 by > > pkg(8) it fails to install the very first dependency package: > > > > Fetching ktux-4.14.3.txz: 100% 117 KiB 119.7kB/s 00:01 > > pkg: cached package ktux-4.14.3: size mismatch, fetching from remote > > Fetching ktux-4.14.3.txz: 100% 117 KiB 119.7kB/s 00:01 > > pkg: cached package ktux-4.14.3: size mismatch, cannot continue > > > > I found such a problem was already reported in this mailing list and > > even fixed two years ago: > > https://lists.freebsd.org/pipermail/freebsd-ports/2014-August/094447.ht= ml > > > > Unfortunately It happens again in FreeBSD 11.0. > > > > I didn't try "pkg update -f" yet and I don't have ports installed. > > During the FreeBSD installation I also installed the local copy of the > > Handbook. This procedure lead to the pkg(8) to be installed and also > > installed the handbook package. Don't know if this information could > > help you to understand the issue, though. >=20 > The "pkg update -f" helped. But obviously there is some bug in the pkg(8). The bug is not in pkg, there is a race in the sync mechanism on the mirrors. The window is very small, but the situation is you fetched the db from an o= ld metadata but only new packages are available at this time. and running pkg update -f forces the fix. There is some work ongoing to reduce this window to something close to 0, b= ut not yet good enough to be included in the release. Best regards Bapt --popdccgb6j5fvjtg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYBPmRAAoJEGOJi9zxtz5a2AEP/A0rFW9IoPlZVoMLtlCBx83D kChxn9DJYe4UYaSlzTIn3awcEeLojMVIVLELkjouXznemHodWIGdlg6JT8aiUoGl XgKaNf7UF5k796yV/8um3JpzyQ19JnPuBz32rFjqlK6A694JQcujKU1pKmcEf38L /xMiDlJaWfwlNnMs4ZzLrEB7rcV2BOX6uM7mLL29l48YB+f2mSqUDxAGoFtpNikB 3gDVRlltp6u2JN2jJ/xSsjWvhb2M9quVizBXpaN/yGBSgrSwa9z67+s7pjwkHilu uT7uoCSqJ0QcBknR792TrijSBROw34LiePH7gNAL09Um66bIaYEKrV1IHpgnZ7yU 6aSO7vQikbq1RaxcitttfWflBHFSmNi1n1OQaL0rIvtXtiXl89OWvVldAilvzdqg uAXmZHAkP65n9Qd2uGe2gHJ3e/30z3pGDGJlyRLsScyLImAGrZwWESlSbJQLWw7h UjAVyHFGdYkT3MNzcNBm7faZHr1x3Fa42qd9Re3mMDshOLos9R1n2h1w0+0A5vUl 7SsoMmRE/q4AyYZVQqdeolYiuzximOPiQ/1rbUm/V6XG8Z6tusLYtma/oadK73OL WYWjPMl1MVGLWpAfhzKiJ1BeKWyHE3JXyuEWkUW0bgphPUlfNYQgm/o5th48X8r2 D+a/npjzABImnGhboxKY =o0mJ -----END PGP SIGNATURE----- --popdccgb6j5fvjtg--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161017161722.y545dqur5izs7t7o>