Pamac AUR download and upgrade needs many retries to be finished

It’s impossible to get a package with size bigger than 100MB from AUR to be installed or upgraded without retrying many times, sometimes I copy the download link and download the file using UGet or KGet then put it in “/var/tmp/pamac-build-med/packageName” folder. Why download manager download successfully the package while Pamac fails and needs many tries ?

You should probably open an issue at the link below.

So, sounds as if your internet connection is somewhat unstable ?
Do you have that issue with other AUR helpers as well? (yay, paru, trizen) ?

btw. You’re not downloading packages from the AUR directly. It’s only build instructions.
The data you’re downloading (be it sources or compiled apps / binaries) come from somewhere else. Depending on those instructions…

1 Like

I don’t use command line to install AUR packages, I only use Pamac for it, but for other non AUR packages the installation process works fine using both Pamac and pacman.

So what is a problematic package in your case?

Try to use some other AUR helper like yay and see how that goes.
Try to do it manually (git clone; makepkg)
Check your internet connection (any timeouts pinging f.e. 1.1.1.1)

The data you’re downloading (be it sources or compiled apps / binaries) come from somewhere else.

Only Pamac fails to finish the download, while other download manager like UGet can download the file without failure.

For example AUR (en) - libreoffice-extension-languagetool package failed to complete installation with over 5 tries, while with UGet I downloaded the file once and added the file to “/var/tmp/pamac-build-med/libreoffice-extension-languagetool” and restarted Pamac install again.

With what error message?

Again, please try:

With what error message?

curl: (56) OpenSSL SSL_read: Connection timed out, errno 110
==> ERROR: Failure while downloading https://extensions.libreoffice.org/assets/downloads/99/LanguageTool-5.3.oxt
    Aborting...
Failed to build libreoffice-extension-languagetoolcurl: (56) OpenSSL SSL_read: Connection timed out, errno 110
==> ERROR: Failure while downloading https://extensions.libreoffice.org/assets/downloads/99/LanguageTool-5.3.oxt
    Aborting...
Failed to build libreoffice-extension-languagetool

It seems Pamac has bad download management, once connection is limited and used by other apps then it stops the download and fails to install the package, while other download managers keep downloading whenever connection is temporary limited or not.

OMG yay is much more stable and reliable, it keeps downloading and doesn’t gives up even if I watch HD video on Youtube.

Ok, well, that means:

  1. Your internet connections sucks
  2. pamac can’t deal with that properly

There’s also a problem for very large downloads from GitHub. The nerdsfont (probably, I can’t remember the name), they specifically tell you to retry downloading a few times because GitHub can’t handle it.

I know for pacman, you can modify the download program to aria2 for example which seems to be stabler than wget

If anyone is suffering from this problem, the fact of changing the download agent from curl to aria2 seems to work fine by replacing in /etc/makepkg.conf

DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
          'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

by

DLAGENTS=('file::/usr/bin/aria2c -UWget -s4 %u -o %o'
          'ftp::/usr/bin/aria2c -UWget -s4 %u -o %o'
          'http::/usr/bin/aria2c -UWget -s4 %u -o %o'
          'https::/usr/bin/aria2c -UWget -s4 %u -o %o'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.