Skip to content

Wget's screwing me over

It's a horrible thing to say, it's been such a reliable downloader to me for years. Unfortunately, with this latest update, it seems to be screwing me over. Here's an example of its antics during a pacman -Su:

--2014-11-30 22:49:57--  http://delta.archlinux.fr/community/os/i686/community.db.sig
Resolving delta.archlinux.fr (delta.archlinux.fr)... 91.121.141.57
Connecting to delta.archlinux.fr (delta.archlinux.fr)|91.121.141.57|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Content-Type: text/html
  Pragma: no-cache
  Refresh: 1; URL=http://delta.archlinux.fr/community/os/i686/community.db.sig
  Connection: Close
Length: unspecified [text/html]
Saving to: ‘/var/lib/pacman/sync/community.db.sig.part’
/var/lib/pacman/syn     [ <=>                 ]      13  --.-KB/s   in 0s
2014-11-30 22:50:38 (485 KB/s) - ‘/var/lib/pacman/sync/community.db.sig.part’ saved [13]
error: GPGME error: No data
error: failed to update community (invalid or corrupted database (PGP signature))
error: database 'community' is not valid (invalid or corrupted database (PGP signature))

Inb4: I know why GPG's giving that error, that doesn't need explaining.

For some reason, it'll randomly decide to pretend that the web server doesn't know the content length, and it pretends it got 13 bytes. It's always 13 bytes and it's not the server's fault; it happens across a multitude of servers; from ArchLinux package mirrors to podcasts.

Anyone else getting this from wget of late?

Edited 30 Nov 2014. We only hold this version.

12 points7 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
12 · 100% up
Kind
Text
ID
2nu2d5

Author

4
posts
59
comments
1
media
View profile

9 comments

Simply put, the mirror is (was?) broken. Arch Linux doesn’t sign the DBs, because currently gpg can’t sign things remotely. It seems to be fixed now though, are you still getting 200s for the sigs?

6 points

Getting 200s and empty response bodies for any file was/is intermittent.

1 points
unknown author

Deleted before we saved it.

1 points

I think the official databases are not signed (and ftp.archlinux.org does indeed not have a signature for community.db), so I don't really understand why the server is sending a 200 OK. Do you use any kind of proxy? Does the same thing happen with other applications as well (curl/your browser/...)?

6 points

You're right in saying the databases aren't signed. No proxy, doesn't happen with browser, curl seems fine.

2 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.