[arch-general] What is a pacman "download library error"?
Hi, installing a package with "pacman -U URL" fails. Downloading with "wget -q URL" and installing the file with "pacman -U" works. [rocketmouse@archlinux tmp]$ sudo pacman -U https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1... error: failed retrieving file 'lxpanel-0.10.0-1-x86_64.pkg.tar.xz' from mex.mirror.pkgbuild.com : Resolving timed out after 10000 milliseconds warning: failed to download https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1... error: 'https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1...': download library error [rocketmouse@archlinux tmp]$ wget -q https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1-x86_64.pkg.tar.xz{,.sig} [rocketmouse@archlinux tmp]$ sudo pacman -U lxpanel-0.10.0-1-x86_64.pkg.tar.xz loading packages... warning: lxpanel-0.10.0-1 is up to date -- reinstalling resolving dependencies... looking for conflicting packages... Packages (1) lxpanel-0.10.0-1 [snip] The issue doesn't happen for another package, from another server. [rocketmouse@archlinux tmp]$ sudo pacman -U http://mirror.f4st.host/archlinux/community/os/x86_64/antiword-0.37-7-x86_64... loading packages... resolving dependencies... looking for conflicting packages... Packages (1) antiword-0.37-7 Total Installed Size: 0.52 MiB :: Proceed with installation? [Y/n] n [rocketmouse@archlinux tmp]$ sudo pacman -U https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1... error: failed retrieving file 'lxpanel-0.10.0-1-x86_64.pkg.tar.xz' from mex.mirror.pkgbuild.com : Resolving timed out after 10000 milliseconds warning: failed to download https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1... error: 'https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1...': download library error Regards, Ralf -- pacman -Q linux{,-rt{-cornflower,,-securityink,-pussytoes}}|cut -d\ -f2 5.0.arch1-1 4.19.25_rt16-0 4.19.23_rt13-0.1 4.19.15_rt12-0 4.18.16_rt9-1
On Sat, Mar 09, 2019 at 19:57:11 +0100, Ralf Mardorf via arch-general wrote:
installing a package with "pacman -U URL" fails. Downloading with "wget -q URL" and installing the file with "pacman -U" works.
Unless I'm mistaken, pacman uses curl by default (unless XferCommand is set) (or more precisely, libcurl.so), so it may be worth trying to fetch that file with curl instead of wget (for further troubleshooting). That being said, for me, pacman/curl downloads that file just fine, so I'm not sure whether the choice of curl/wget is the only notable factor. Best, Tinu
On Sun, 10 Mar 2019 00:00:48 +0100, Tinu Weber wrote:
That being said, for me, pacman/curl downloads that file just fine
In the meantime it works for me, too. Only one package was updated in the meantime. The package is "iana-etc". *?* $ pactree -r iana-etc | grep pacman │ └─pacman-contrib │ │ │ │ │ │ │ ├─pacman │ │ │ │ │ │ │ │ ├─pacman-contrib │ │ │ │ │ │ ├─pacman │ │ │ │ ├─pacman │ │ ├─pacman │ ├─pacman $ pactree pacman | grep iana-etc │ │ │ └─iana-etc
On Sun, 10 Mar 2019 06:06:53 +0100, Ralf Mardorf wrote:
In the meantime it works for me, too. Only one package was updated in the meantime. The package is "iana-etc".
Correction, 2 additional packages from official repositories, "lxrandr" and "npm" and 5 from AUR, "diylc", "enlightenment-arc-theme-git", "reaper-bin", "scite" and "vivaldi" were upgraded, too. No other changes were done to my Arch Linux install, so the only possible culprit on my machine could be "iana-etc".
Hi Ralf,
$ sudo pacman -U https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1... error: failed retrieving file 'lxpanel-0.10.0-1-x86_64.pkg.tar.xz' from mex.mirror.pkgbuild.com : Resolving timed out after 10000 milliseconds
I think you're on the wrong track by suspecting iana-etc. It's probably more likely to be a DNS, web proxy, or IPv4/IPv6 issue. You could try sudo -i pacman -v --debug -U https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1... to see if the extra output helps, but I suspect it won't. Does the curl library take note of environment variables to produce debug? I don't know. So I'd reach for strace, given ltrace(1)'s apparent brokenness. sudo -i env LC_ALL=C strace -fe %net pacman -U https://mex... That way you can see the connect(3), etc., and the IP addresses involved, plus what errors occurred. -- Cheers, Ralph.
On Sun, 10 Mar 2019 10:23:25 +0000, Ralph Corderoy wrote:
Hi Ralf,
$ sudo pacman -U https://mex.mirror.pkgbuild.com/community-testing/os/x86_64/lxpanel-0.10.0-1... error: failed retrieving file 'lxpanel-0.10.0-1-x86_64.pkg.tar.xz' from mex.mirror.pkgbuild.com : Resolving timed out after 10000 milliseconds
I think you're on the wrong track by suspecting iana-etc.
Yes, it was just the only thing somehow related to pacman that changed on my machine. The issue not necessarily caused by my computer.
It's probably more likely to be a DNS, web proxy, or IPv4/IPv6 issue. You could try [snip]
I can't, since the issue disappeared. Btw. using a browser downloading worked without any issue, too and without any notification. When the issue happened I run "wget" also without the quite option. I was in a hurry, doing several things in parallel. There was no error message, but this morning I had the feeling I missed/ignored a notification about a certificate provided by the output of "wget". When I repeated downloading with wget, there was no such a message, but "pacman -U URL" for this package, from this particular server worked in the morning, too. I wish I would have posted wget with output. Now it's too late for troubleshooting, the issue is solved.
participants (3)
-
Ralf Mardorf
-
Ralph Corderoy
-
Tinu Weber