pkg icon indicating copy to clipboard operation
pkg copied to clipboard

pkg: Error extracting the archive: 'Write error'

Open OliverLeitner opened this issue 2 years ago • 4 comments

trying to upgrade packages...

tried with pkg, pkg-static, with pkg bootstrap -f and then again, and with pkg.freebsd.org as well as pkg0.bbt.freebsd.org and this one...

rebooted the vm, same problem.

rebooted an hour later, same problem.

this wasnt a problem earlier today...

` cat /usr/local/etc/pkg/repos/FreeBSD.conf

FreeBSD: { url: "pkg+http://pkg.freebsd.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } `

getting this one:

` pkg -d upgrade -f DBG(1)[5372]> pkg initialized Updating FreeBSD repository catalogue... DBG(1)[5372]> PkgRepo: verifying update for FreeBSD DBG(1)[5372]> PkgRepo: need forced update of FreeBSD DBG(1)[5372]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite' DBG(1)[5372]> Request to fetch pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest/meta.conf DBG(1)[5372]> curl_open DBG(1)[5372]> Fetch: fetcher used: pkg+http DBG(1)[5372]> curl> fetching http://pkg.freebsd.org/FreeBSD:13:amd64/latest/meta.conf

DBG(1)[5372]> CURL> attempting to fetch from , left retry 3

  • processing: (nil)
  • Couldn't find host pkgmir.geo.freebsd.org in the (nil) file; using defaults
  • Trying 147.28.184.43:80...
  • Connected to pkgmir.geo.freebsd.org (147.28.184.43) port 80

GET /FreeBSD:13:amd64/latest/meta.conf HTTP/1.1 Host: pkgmir.geo.freebsd.org Accept: / If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT

< HTTP/1.1 200 OK Fetching meta.conf: 0%< Server: nginx < Date: Fri, 06 Oct 2023 00:23:39 GMT < Content-Type: application/octet-stream < Content-Length: 163 < Last-Modified: Thu, 13 Feb 2020 23:51:13 GMT < Connection: keep-alive < ETag: "5e45e0f1-a3" < Expires: Fri, 06 Oct 2023 00:23:39 GMT < Cache-Control: max-age=0 < Cache-Control: private < Accept-Ranges: bytes < Fetching meta.conf: 100% 163 B 0.2kB/s 00:01

  • Connection #0 to host pkgmir.geo.freebsd.org left intact DBG(1)[5372]> Request to fetch pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest/packagesite.pkg DBG(1)[5372]> curl_open DBG(1)[5372]> Fetch: fetcher used: pkg+http DBG(1)[5372]> curl> fetching http://pkg.freebsd.org/FreeBSD:13:amd64/latest/packagesite.pkg

DBG(1)[5372]> CURL> attempting to fetch from , left retry 3

  • processing: (nil)
  • Couldn't find host pkgmir.geo.freebsd.org in the (nil) file; using defaults
  • Found bundle for host: 0x82b8acb40 [serially]
  • Re-using existing connection with host pkgmir.geo.freebsd.org

GET /FreeBSD:13:amd64/latest/packagesite.pkg HTTP/1.1 Host: pkgmir.geo.freebsd.org Accept: / If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT

< HTTP/1.1 200 OK Fetching packagesite.pkg: 0%< Server: nginx < Date: Fri, 06 Oct 2023 00:23:39 GMT < Content-Type: application/octet-stream < Content-Length: 6892172 < Last-Modified: Wed, 04 Oct 2023 08:31:29 GMT < Connection: keep-alive < ETag: "651d22e1-692a8c" < Expires: Fri, 06 Oct 2023 00:23:39 GMT < Cache-Control: max-age=0 < Cache-Control: private < Accept-Ranges: bytes < Fetching packagesite.pkg: 100% 7 MiB 3.5MB/s 00:02

  • Connection #0 to host pkgmir.geo.freebsd.org left intact DBG(1)[5372]> PkgRepo: extracting packagesite.yaml of repo FreeBSD DBG(1)[5375]> PkgRepo: extracting signature of repo in a sandbox pkg: Error extracting the archive: 'Write error' pkg: No signature found Unable to update repository FreeBSD Error updating repositories! `

thanks for any tip that could get me further...

OliverLeitner avatar Oct 06 '23 00:10 OliverLeitner

i found the culprit.

i had

tmpmfs="YES"

in my /etc/rc.conf

after commenting out that line (back to defaults, i guess...) the pkg update -f worked again.

OliverLeitner avatar Oct 06 '23 13:10 OliverLeitner

I had same error with my RPI FBSD. So thanks to this ticket i checked my /etc/fstab and there was this line: tmpfs /tmp tmpfs rw,mode=1777,size=50m 0 0 Updating the size to 128m solved this problem for me. tmpfs /tmp tmpfs rw,mode=1777,size=128m 0 0

ekoort avatar Nov 20 '23 16:11 ekoort

I had same error with my RPI FBSD. So thanks to this ticket i checked my /etc/fstab and there was this line: tmpfs /tmp tmpfs rw,mode=1777,size=50m 0 0 Updating the size to 128m solved this problem for me. tmpfs /tmp tmpfs rw,mode=1777,size=128m 0 0

I also had the same error and this solution fixed it! Thank you! 🎉

3lding avatar Nov 24 '23 12:11 3lding

Must be something in the water, same error, 12.4, Pi3, this worked, THANK YOU

plord avatar Nov 29 '23 18:11 plord