You are not logged in.

#1 2018-09-21 07:27:05

Sevenmoor
Member
Registered: 2018-06-21
Posts: 2

[SOLVED] Pacman: Recv failure: Connection reset by peer

Hi everyone,

While trying to download linux-headers, which are not present on my system, i encountered a series of errors right before the packets reached 100% download. The output was as follows:

error: failed retrieving file 'linux-headers-4.18.7.arch1-1-x86_64.pkg.tar.xz' from mirrors.advancedhosters.com : Recv failure: Connection reset by peer
error: failed retrieving file 'linux-headers-4.18.7.arch1-1-x86_64.pkg.tar.xz' from mirrors.kernel.org : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'linux-headers-4.18.7.arch1-1-x86_64.pkg.tar.xz' from mirror.rit.edu : The requested URL returned error: 416
error: failed retrieving file 'linux-headers-4.18.7.arch1-1-x86_64.pkg.tar.xz' from www.gtlib.gatech.edu : The requested URL returned error: 404
error: failed retrieving file 'linux-headers-4.18.7.arch1-1-x86_64.pkg.tar.xz' from arch.tamcore.eu : The requested URL returned error: 404
error: failed retrieving file 'linux-headers-4.18.7.arch1-1-x86_64.pkg.tar.xz' from arch.localmsp.org : Could not resolve host: arch.localmsp.org
error: failed retrieving file 'linux-headers-4.18.7.arch1-1-x86_64.pkg.tar.xz' from ftp.nluug.nl : The requested URL returned error: 404
error: failed retrieving file 'linux-headers-4.18.7.arch1-1-x86_64.pkg.tar.xz' from mirror.js-webcoding.de : Could not resolve host: mirror.js-webcoding.de
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

My uname -r output:

4.18.7-arch1-1-ARCH

I also tried pacman -Syy, which seemed to be the cause for most other threads, but it did not work in my case.

If anyone has an idea, it would really help me wink

Thanks a lot

Last edited by Sevenmoor (2018-09-21 12:20:00)

Offline

#2 2018-09-21 08:21:30

mpan
Member
Registered: 2012-08-01
Posts: 1,409
Website

Re: [SOLVED] Pacman: Recv failure: Connection reset by peer

Seems like you got outdated database from some server that later rejected requests for the corresponding package. Since other servers have the current versions, they miss the old ones and you got 404. The other explanation could be that your ISP is somehow manipulating your connections, because for some reason you use HTTP addresses instead of HTTPS ones.

Speaking of mirrors, when was the last time you were checking them? Three of them are not listed in the current mirrors list, two of them are not even existing domains: mirror.rit.edu, arch.localmsp.org and mirror.js-webcoding.de. Fix that first. Using reflector may be a good idea to obtain the list.

After fixing that, do normal -Syu. Downloading fresh databases (-yy) shouldn’t be needed. If you still receive any HTTP 416 responses or errors related to byte ranges, remove “/var/cache/pacman/pkg/linux-headers-4.18.7.arch1-1-x86_64.*” and retry -Syu. If you still receive errors after all this steps, report back with the last output you have (literally the last: not “this is the output, then I did blahblah and still have errors”).


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2018-09-21 12:19:37

Sevenmoor
Member
Registered: 2018-06-21
Posts: 2

Re: [SOLVED] Pacman: Recv failure: Connection reset by peer

You were right, I updated my list a very long time ago, so your solution worked for me. Thanks a lot smile

Offline

Board footer

Powered by FluxBB