Re: pkgin error (possible workaround)
Thanks for the report. On Thu, May 21, 2020 at 12:38 PM Greg Troxel wrote: > > Lars-Johan Liman writes: > > > I've found that the x86_64 and amd64 directories seem to be out of sync > > on cdn.netbsd.org. In short, pkg_summary seems to be updated in x86_64 > > but not in amd64. For me the following simple workaround worked: > > Thanks for the specific report. > > > I modified the repository pointer in > > > > /usr/pkg/etc/pkgin/repositories.conf > > > > from: > > > > http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.0/All > > > > to: > > > > http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All > > amd64 is the name of the port, which is about specific hardware aas well > as the instruction set, and packages are generally shared among all > ports with the same instruction set and ABI. So arguably x86_64 is > preferred anyway -- even if x86_64 appears only on the amd64 port! > > For your info, on ftp.netbsd.org, in /pub/pkgsrc/packages/NetBSD, doing > ls -l (and skipping the other lines) one gets: > > lrwxrwxr-x 1 joerg netbsd 6 May 28 2008 amd64 -> x86_64 > drwxrwxr-x 16 pkgmastr netbsd 1024 May 15 02:57 x86_64 > > I can confirm the bad behavior. Fetching > >wget > http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.0/All/pkg_summary.bz2 >wget > http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All/pkg_summary.bz2 > > I get the following: (.1 is 2nd fetch): > > -rw-r--r-- 1 gdt users3270343 May 17 16:03 pkg_summary.bz2 > -rw-r--r-- 1 gdt users3258465 May 21 10:54 pkg_summary.bz2.1
Re: pkgin error (possible workaround)
Lars-Johan Liman writes: > I've found that the x86_64 and amd64 directories seem to be out of sync > on cdn.netbsd.org. In short, pkg_summary seems to be updated in x86_64 > but not in amd64. For me the following simple workaround worked: Thanks for the specific report. > I modified the repository pointer in > > /usr/pkg/etc/pkgin/repositories.conf > > from: > > http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.0/All > > to: > > http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All amd64 is the name of the port, which is about specific hardware aas well as the instruction set, and packages are generally shared among all ports with the same instruction set and ABI. So arguably x86_64 is preferred anyway -- even if x86_64 appears only on the amd64 port! For your info, on ftp.netbsd.org, in /pub/pkgsrc/packages/NetBSD, doing ls -l (and skipping the other lines) one gets: lrwxrwxr-x 1 joerg netbsd 6 May 28 2008 amd64 -> x86_64 drwxrwxr-x 16 pkgmastr netbsd 1024 May 15 02:57 x86_64 I can confirm the bad behavior. Fetching wget http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.0/All/pkg_summary.bz2 wget http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All/pkg_summary.bz2 I get the following: (.1 is 2nd fetch): -rw-r--r-- 1 gdt users3270343 May 17 16:03 pkg_summary.bz2 -rw-r--r-- 1 gdt users3258465 May 21 10:54 pkg_summary.bz2.1
Re: pkgin error (possible workaround)
Hi Dima (all)! I've found that the x86_64 and amd64 directories seem to be out of sync on cdn.netbsd.org. In short, pkg_summary seems to be updated in x86_64 but not in amd64. For me the following simple workaround worked: I modified the repository pointer in /usr/pkg/etc/pkgin/repositories.conf from: http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.0/All to: http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All then ran # pkgin update ... and it now works just fine. Why they are out of sync is "beyond my paygrade", and I leave it up to pkgsrc powers that be to figure that one out. ;-) Cheers, /Liman kab...@lich.phys.spbu.ru 2020-05-15 19:39 [+0300]: > I had same problems and I've found that CDN directory contents may be > not in sync with pkg_summary. I tried to work it out (thinking > there might be one server not in sync) but had short time and no > success so that time I just switched to legacy source. > How cdn is organized in short? It would be nice to know that to > catch the one next time we face the problem. > On Fri, May 15, 2020 at 12:16:18PM -0400, nottobay wrote: >> It is saying no such file or directory for /var/db/cache but /var/db/ at >> 454982 out of 38176044 so space isn't the problem, >> >> On Fri, May 15, 2020, 11:38 wrote: >> >> > Hello, >> > >> > On Fri, May 15, 2020 at 11:22:59AM -0400, nottobay wrote: >> > >I keep getting a bunch of errors saying "download error >> > >size does not match pkg_summary" I try just telling it to proceed but >> > the >> > >package still doesn't install. I have already tried forcing a pgkin >> > update >> > >and it didn't fix it, and I'm using the default repo the NetBSD 9 >> > >installer gave me. How would I fix this? >> > >> > Do you have enough disk space in the directry pkin is trying to cache >> > the downloads? That is, what does >> > >> > df /var/db/cache/ >> > >> > say? >> > >> > -is >> > > -- > Sincerely yours, > Dima Veselov > Physics R Establishment of Saint-Petersburg University -- #- # Lars-Johan Liman, M.Sc.! E-mail: li...@cafax.se # Cafax AB ! HTTP : //www.cafax.se/ # Computer Consultants, Sweden ! Voice : +46 8 - 564 702 30 #-