freebsd / pkg

Package management tool for FreeBSD. Help at #pkg on Libera Chat or pkg@FreeBSD.org
Other
748 stars 279 forks source link

pkg: Error extracting the archive: 'Write error' #2188

Open OliverLeitner opened 1 year ago

OliverLeitner commented 1 year ago

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

< 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

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

< 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

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

OliverLeitner commented 1 year ago

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.

ekoort commented 11 months ago

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

3lding commented 11 months ago

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! 🎉

plord commented 11 months ago

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