Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OliverLeitner opened this issue Oct 6, 2023 · 4 comments
Open

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

OliverLeitner opened this issue Oct 6, 2023 · 4 comments

Comments

@OliverLeitner
Copy link

OliverLeitner commented Oct 6, 2023

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

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
Copy link
Author

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
Copy link

ekoort commented Nov 20, 2023

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
Copy link

3lding commented Nov 24, 2023

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
Copy link

plord commented Nov 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants