Re: pkg: cached package size mismatch, again
On Mon, Oct 17, 2016 at 7:17 PM, Baptiste Daroussin wrote: > On Mon, Oct 17, 2016 at 06:11:45PM +0300, Rostislav Krasny wrote: >> On Mon, Oct 17, 2016 at 5:55 PM, Rostislav Krasny >> wrote: >> > 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/s00:01 >> > pkg: cached package ktux-4.14.3: size mismatch, fetching from remote >> > Fetching ktux-4.14.3.txz: 100% 117 KiB 119.7kB/s00: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.html >> > >> > 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. >> >> 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 old > 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, but > not yet good enough to be included in the release. Thank you for the explanation. Hope this race condition will be resolved soon. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: pkg: cached package size mismatch, again
On Mon, Oct 17, 2016 at 06:11:45PM +0300, Rostislav Krasny wrote: > On Mon, Oct 17, 2016 at 5:55 PM, Rostislav Krasny wrote: > > 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/s00:01 > > pkg: cached package ktux-4.14.3: size mismatch, fetching from remote > > Fetching ktux-4.14.3.txz: 100% 117 KiB 119.7kB/s00: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.html > > > > 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. > > 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 old 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, but not yet good enough to be included in the release. Best regards Bapt signature.asc Description: PGP signature
Re: pkg: cached package size mismatch, again
On Mon, 17 Oct 2016 18:11:45 +0300 Rostislav Krasny wrote: > On Mon, Oct 17, 2016 at 5:55 PM, Rostislav Krasny wrote: > > 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/s00:01 > > pkg: cached package ktux-4.14.3: size mismatch, fetching from remote > > Fetching ktux-4.14.3.txz: 100% 117 KiB 119.7kB/s00:01 > > pkg: cached package ktux-4.14.3: size mismatch, cannot continue ... > The "pkg update -f" helped. But obviously there is some bug in the pkg(8). Not so sure... I had the very same problem with a 10.3 machine las week, and it was a faulty DDR ram. Once changed, the problem magically disappeared. Memtest might be your friend. Cheers, Luciano. -- /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL/ E-MAIL: posthams...@sublink.sublink.org / \ AND POSTINGS/ WWW: http://www.lesassaie.IT/ ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: pkg: cached package size mismatch, again
On Mon, Oct 17, 2016 at 5:55 PM, Rostislav Krasny wrote: > 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/s00:01 > pkg: cached package ktux-4.14.3: size mismatch, fetching from remote > Fetching ktux-4.14.3.txz: 100% 117 KiB 119.7kB/s00: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.html > > 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. The "pkg update -f" helped. But obviously there is some bug in the pkg(8). ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"