Pacman xfer command curl http error 404

This forum is for discussion about general software issues.

Pacman xfer command curl http error 404

Postby nomeed » Wed Dec 13, 2017 5:27 pm

I cannot update my system when using the following xfer command

$this->bbcode_second_pass_code('', '
XferCommand = /usr/bin/curl -w "%{filename_effective} %{size_download}B %{time_total}s\n" --progress-bar --proxy http://myproxy.domain.tld:3128 -C - -f -o %o %u
')

These are the errors
$this->bbcode_second_pass_code('', '
/var/cache/pacman/pkg/linux-raspberrypi-4.9.67-1-armv7h.pkg.tar.xz.part 0B 0.080549s
curl: (22) The requested URL returned error: 404 Not Found

:: File /var/cache/pacman/pkg/linux-raspberrypi-4.9.67-1-armv7h.pkg.tar.xz is corrupted (invalid or corrupted package (checksum))
')

Obviously the mirror does not have the package 'linux-raspberrypi-4.9.67-1-armv7h.pkg.tar.xz' since at this time of writing the available package is 'linux-raspberrypi-4.9.68-1-armv7h.pkg.tar.xz'. But when I change the xfer command to wget the system is able to continue the update without errors. I did try 'pacman -Syyu' which does not help either when using curl.

The package listed in the error 'linux-raspberrypi-4.9.67-1-armv7h.pkg.tar.xz' is not in /var/cache/pacman/pkg.

Someone has any clue as to what the issue is?
nomeed
 
Posts: 2
Joined: Wed Dec 13, 2017 4:49 pm

Re: Pacman xfer command curl http error 404

Postby WarheadsSE » Thu Dec 14, 2017 2:04 pm

You don't need to alter the command to get cURL to use a proxy, you can set `http_proxy` for an http proxy, or `all_proxy` for a socks proxy. https://ec.haxx.se/usingcurl-proxies.html
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pacman xfer command curl http error 404

Postby nomeed » Fri Dec 15, 2017 1:25 am

I am setting the proxy in the config because of salt which does not run inside a shell and wont source /etc/environment.

I can successfully download other packages. It only failed with this specific one and only with curl. Using wget over the proxy had worked.

I was just puzzled why curl did not work but wget successfully completed.
nomeed
 
Posts: 2
Joined: Wed Dec 13, 2017 4:49 pm


Return to General

Who is online

Users browsing this forum: No registered users and 24 guests