You are not logged in.

#1 2022-06-11 09:37:33

amr962
Member
Registered: 2021-02-11
Posts: 33

[SOLVED] pacman -Syu: unexpected error for no reason?

Hello everyone, this has been happening the last few times I've updated my system; everything seems to download correctly before I get this message:

warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

And then when I retry the update, it doesn't need to re-download anything and just installs what it already had downloaded the first time around. Here is an example terminal output, which occurred today:

[amr@dell ~]$ psyu
doas (amr@dell) password:
:: Synchronizing package databases...
 core                                                 155.9 KiB   159 KiB/s 00:01 [##############################################] 100%
 extra                                               1715.1 KiB   591 KiB/s 00:03 [##############################################] 100%
 community                                              6.7 MiB  1003 KiB/s 00:07 [##############################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (14)         Old Version      New Version       Net Change  Download Size

extra/alsa-lib       1.2.6.1-1        1.2.7-2             0.03 MiB       0.47 MiB
extra/alsa-ucm-conf  1.2.6.3-1        1.2.7-1             0.03 MiB       0.06 MiB
extra/alsa-utils     1.2.6-1          1.2.7-1             0.05 MiB       1.15 MiB
extra/chromium       102.0.5005.61-1  102.0.5005.115-1    0.00 MiB      82.36 MiB
extra/cups           1:2.4.2-2        1:2.4.2-3           0.00 MiB       5.17 MiB
extra/ldb            2:2.5.0-1        2:2.5.1-1          -0.01 MiB       0.21 MiB
extra/libcups        1:2.4.2-2        1:2.4.2-3           0.00 MiB       0.27 MiB
core/linux           5.18.2.arch1-1   5.18.3.arch1-1      0.34 MiB     174.45 MiB
extra/mesa           22.1.1-1         22.1.1-2            0.00 MiB      12.59 MiB
extra/samba          4.16.1-3         4.16.1-4           -0.21 MiB       8.70 MiB
extra/smbclient      4.16.1-3         4.16.1-4           -0.04 MiB       6.74 MiB
extra/talloc         2.3.3-3          2.3.4-1             0.00 MiB       0.05 MiB
extra/tdb            1.4.6-1          1.4.7-1             0.00 MiB       0.07 MiB
extra/tevent         1:0.11.0-3       1:0.12.1-1          0.00 MiB       0.05 MiB

Total Download Size:   292.33 MiB
Total Installed Size:  619.35 MiB
Net Upgrade Size:        0.19 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 samba-4.16.1-4-x86_64                                  8.7 MiB   182 KiB/s 00:49 [##############################################] 100%
 mesa-22.1.1-2-x86_64                                  12.6 MiB   253 KiB/s 00:51 [##############################################] 100%
 alsa-utils-1.2.7-1-x86_64                           1178.0 KiB  1550 KiB/s 00:01 [##############################################] 100%
 alsa-lib-1.2.7-2-x86_64                              484.3 KiB  1468 KiB/s 00:00 [##############################################] 100%
 libcups-1:2.4.2-3-x86_64                             275.9 KiB   718 KiB/s 00:00 [##############################################] 100%
 ldb-2:2.5.1-1-x86_64                                 212.1 KiB   934 KiB/s 00:00 [##############################################] 100%
 tdb-1.4.7-1-x86_64                                    71.5 KiB   190 KiB/s 00:00 [##############################################] 100%
 smbclient-4.16.1-4-x86_64                              6.7 MiB   118 KiB/s 00:59 [##############################################] 100%
 alsa-ucm-conf-1.2.7-1-any                             57.7 KiB  67.9 KiB/s 00:01 [##############################################] 100%
 talloc-2.3.4-1-x86_64                                 46.7 KiB  7.10 KiB/s 00:07 [##############################################] 100%
 tevent-1:0.12.1-1-x86_64                              52.4 KiB  7.43 KiB/s 00:07 [##############################################] 100%
 cups-1:2.4.2-3-x86_64                                  5.2 MiB   335 KiB/s 00:16 [##############################################] 100%
 chromium-102.0.5005.115-1-x86_64                      82.4 MiB   490 KiB/s 02:52 [##############################################] 100%
 linux-5.18.3.arch1-1-x86_64                          174.4 MiB   807 KiB/s 03:41 [##############################################] 100%
 Total (14/14)                                        292.3 MiB  1351 KiB/s 03:42 [##############################################] 100%
error: failed retrieving file 'cups-1:2.4.2-3-x86_64.pkg.tar.zst' from mirror.f4st.host : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'cups-1:2.4.2-3-x86_64.pkg.tar.zst.sig' from archlinux.thaller.ws :
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

(took: 4m 5s)
[amr@dell ~]$ psyu
doas (amr@dell) password:
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (14)         Old Version      New Version       Net Change

extra/alsa-lib       1.2.6.1-1        1.2.7-2             0.03 MiB
extra/alsa-ucm-conf  1.2.6.3-1        1.2.7-1             0.03 MiB
extra/alsa-utils     1.2.6-1          1.2.7-1             0.05 MiB
extra/chromium       102.0.5005.61-1  102.0.5005.115-1    0.00 MiB
extra/cups           1:2.4.2-2        1:2.4.2-3           0.00 MiB
extra/ldb            2:2.5.0-1        2:2.5.1-1          -0.01 MiB
extra/libcups        1:2.4.2-2        1:2.4.2-3           0.00 MiB
core/linux           5.18.2.arch1-1   5.18.3.arch1-1      0.34 MiB
extra/mesa           22.1.1-1         22.1.1-2            0.00 MiB
extra/samba          4.16.1-3         4.16.1-4           -0.21 MiB
extra/smbclient      4.16.1-3         4.16.1-4           -0.04 MiB
extra/talloc         2.3.3-3          2.3.4-1             0.00 MiB
extra/tdb            1.4.6-1          1.4.7-1             0.00 MiB
extra/tevent         1:0.11.0-3       1:0.12.1-1          0.00 MiB

Total Installed Size:  619.35 MiB
Net Upgrade Size:        0.19 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 cups-1:2.4.2-3-x86_64 is up to date
(14/14) checking keys in keyring                                                  [##############################################] 100%
(14/14) checking package integrity                                                [##############################################] 100%
(14/14) loading package files                                                     [##############################################] 100%
(14/14) checking for file conflicts                                               [##############################################] 100%
(14/14) checking available disk space                                             [##############################################] 100%
:: Running pre-transaction hooks...
(1/1) Removing linux initcpios...
:: Processing package changes...
( 1/14) upgrading alsa-ucm-conf                                                   [##############################################] 100%
( 2/14) upgrading alsa-lib                                                        [##############################################] 100%
( 3/14) upgrading alsa-utils                                                      [##############################################] 100%
( 4/14) upgrading libcups                                                         [##############################################] 100%
( 5/14) upgrading mesa                                                            [##############################################] 100%
( 6/14) upgrading chromium                                                        [##############################################] 100%
( 7/14) upgrading cups                                                            [##############################################] 100%
( 8/14) upgrading talloc                                                          [##############################################] 100%
( 9/14) upgrading tevent                                                          [##############################################] 100%
(10/14) upgrading tdb                                                             [##############################################] 100%
(11/14) upgrading ldb                                                             [##############################################] 100%
(12/14) upgrading linux                                                           [##############################################] 100%
(13/14) upgrading smbclient                                                       [##############################################] 100%
(14/14) upgrading samba                                                           [##############################################] 100%
:: Running post-transaction hooks...
( 1/10) Creating system user accounts...
( 2/10) Reloading system manager configuration...
( 3/10) Creating temporary files...
( 4/10) Reloading device manager configuration...
( 5/10) Arming ConditionNeedsUpdate...
( 6/10) Updating module dependencies...
( 7/10) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.3-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.18.3-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
( 8/10) Reloading system bus configuration...
( 9/10) Updating icon theme caches...
(10/10) Updating the desktop file MIME type cache...
:: Looking for AUR upgrades
:: Looking for devel upgrades
 there is nothing to do

(took: 31s)
[amr@dell ~]$

~/.bash_aliases:

alias psyu='paru -Syu'

Last edited by amr962 (2022-06-17 10:53:30)

Offline

#2 2022-06-11 10:47:06

Skunky
Member
Registered: 2018-01-25
Posts: 225

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

Your mirrors are probably out of date, try to refresh them and clear your cache, then update again

Offline

#3 2022-06-11 12:30:05

amr962
Member
Registered: 2021-02-11
Posts: 33

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

[amr@dell ~]$ cat /etc/pacman.d/mirrorlist
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://arch.jensgutermuth.de/$repo/os/$arch

I've compared them with mirror status and they seem to be successfully syncing.

Offline

#4 2022-06-11 12:38:41

seth
Member
Registered: 2012-09-03
Posts: 29,766

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

Does't mean they're any good

mirror.f4st.host : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds

https://archlinux.org/packages/community/any/reflector/

Online

#5 2022-06-11 12:49:08

amr962
Member
Registered: 2021-02-11
Posts: 33

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

Well I wouldn't know for sure, whether the problem was with the mirror or with my internet connection, since it's not always stable. But when it works it works; it's able to reach the maximum download speed. The download is reported to be complete anyways, I have 3 active mirrors and only 2 have failed and for 2 different files. Why would the entire update fail?

Offline

#6 2022-06-11 13:01:22

seth
Member
Registered: 2012-09-03
Posts: 29,766

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

I guess that's a race condition because of the parallel downloads.
Fail. Fail. Give up. Succeed.

You could "pacman -Syu --disable-download-timeout"

Online

#7 2022-06-11 13:13:57

amr962
Member
Registered: 2021-02-11
Posts: 33

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

Yes, you're probably right. I've added

DisableDownloadTimeout

to my /etc/pacman.conf
I'll report back after a while if this problem ever occurs again, otherwise I'll mark as solved.

Offline

#8 2022-06-15 23:29:56

apg
Developer
Registered: 2012-11-10
Posts: 206

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

amr962 wrote:
error: failed retrieving file 'cups-1:2.4.2-3-x86_64.pkg.tar.zst' from mirror.f4st.host : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'cups-1:2.4.2-3-x86_64.pkg.tar.zst.sig' from archlinux.thaller.ws :
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
...
:: Retrieving packages...
 cups-1:2.4.2-3-x86_64 is up to date

The package fails to download from the first mirror.  The signature fails to download from the second mirror.  When you run it again the signature downloads successfully from the first mirror and the upgrade continues.

Offline

#9 2022-06-16 22:20:37

amr962
Member
Registered: 2021-02-11
Posts: 33

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

I've considered this to be the case. But doesn't pacman try all the mirrors before giving up? It doesn't report failure for the the third mirror, other than that this would be an appropriate explanation. Or it has something to do with parallel downloads like mentioned earlier.

Offline

#10 2022-06-17 00:53:28

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,467

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

amr962 wrote:

But doesn't pacman try all the mirrors before giving up?

No. The first mirror that responds will be used for the update.

Offline

#11 2022-06-17 19:05:37

apg
Developer
Registered: 2012-11-10
Posts: 206

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

amr962 wrote:

I've considered this to be the case. But doesn't pacman try all the mirrors before giving up? It doesn't report failure for the the third mirror, other than that this would be an appropriate explanation. Or it has something to do with parallel downloads like mentioned earlier.

It only tries to download signatures from the same mirror it downloaded the package from.  When you run it the second time that information is lost and it just downloads the signature from the first mirror.

Offline

#12 2022-06-17 23:12:53

amr962
Member
Registered: 2021-02-11
Posts: 33

Re: [SOLVED] pacman -Syu: unexpected error for no reason?

It only tries to download signatures from the same mirror it downloaded the package from.  When you run it the second time that information is lost and it just downloads the signature from the first mirror.

Ah I see, this makes perfect sense. Thanks for the explanation everyone!

Offline

Board footer

Powered by FluxBB