You are not logged in.

#1 2025-07-21 11:24:26

simonis
Member
Registered: 2025-07-21
Posts: 4

[Solved] Accidentally aborted sudo pacman -Syu mid-update, plz advise

Hello,

As per the title, I mistakenly aborted pacman whilst it was installing updates, but incidentally, I did it right after it had upgraded the last package, but before all the post-upgrade hooks ran:

(16/17) upgrading python-certifi                                                                           [################################################################] 100%
(17/17) upgrading tevent                                                                                   [################################################################] 100%
^C
Interrupt signal received
error: command terminated by signal 2: Interrupt

I haven't rebooted yet.

I'm running a btrfs setup, so I might just reboot to a previous snapshot (although I never had to do that before), and re-do the whole update, but I was wondering if there are alternatives, and if those are more advisable than just going back to the previous snapshot?

  • I did not see my specific use-case on the wiki

  • Searching the forum did not turn up my exact case, but my search-fu might be falling short

  • I did wonder if I could just force-reinstall all the 17 packages in 1 go, like suggested for a non-booting system (here), and if that would 'fix' any issues. Would the -S command specified in that example suffice?

For completeness sake, here's the relevant part of my pacman.log, and the console output.

console:

$sudo pacman -Syu
[sudo] password for l: 
:: Synchronizing package databases...
 core                                                                          120.2 KiB   372 KiB/s 00:00 [################################################################] 100%
 extra                                                                           7.8 MiB  10.6 MiB/s 00:01 [################################################################] 100%
 multilib                                                                      132.9 KiB   334 KiB/s 00:00 [################################################################] 100%
:: Starting full system upgrade...
warning: freetype2: ignoring package upgrade (2.13.2-1 => 2.13.3-3)
resolving dependencies...
looking for conflicting packages...

Packages (17) ca-certificates-mozilla-3.114-1  freecad-1.0.1-4  godot-4.4.1-4  level-zero-loader-1.22.5-1  lib32-nspr-4.37-1  lib32-nss-3.114-1  libimagequant-4.4.0-1
              linux-6.15.7.arch1-1  linux-headers-6.15.7.arch1-1  nspr-4.37-1  nss-3.114-1  opencv-4.12.0-2  pixman-0.46.4-1  python-certifi-2025.07.14-1  sqlite-3.50.3-1
              tevent-1:0.17.0-1  vtk-9.5.0-4

Total Download Size:    420.35 MiB
Total Installed Size:  1272.03 MiB
Net Upgrade Size:         0.20 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 godot-4.4.1-4-x86_64                                                           59.7 MiB  8.54 MiB/s 00:07 [################################################################] 100%
 freecad-1.0.1-4-x86_64                                                         81.6 MiB  7.51 MiB/s 00:11 [################################################################] 100%
 opencv-4.12.0-2-x86_64                                                         28.7 MiB  4.16 MiB/s 00:07 [################################################################] 100%
 linux-6.15.7.arch1-1-x86_64                                                   141.2 MiB  7.35 MiB/s 00:19 [################################################################] 100%
 sqlite-3.50.3-1-x86_64                                                          2.2 MiB   326 KiB/s 00:07 [################################################################] 100%
 nss-3.114-1-x86_64                                                           1655.3 KiB  4.35 MiB/s 00:00 [################################################################] 100%
 lib32-nss-3.114-1-x86_64                                                     1115.3 KiB  2.05 MiB/s 00:01 [################################################################] 100%
 vtk-9.5.0-4-x86_64                                                             51.3 MiB  2.50 MiB/s 00:21 [################################################################] 100%
 level-zero-loader-1.22.5-1-x86_64                                             399.2 KiB  2047 KiB/s 00:00 [################################################################] 100%
 ca-certificates-mozilla-3.114-1-x86_64                                        398.6 KiB  1647 KiB/s 00:00 [################################################################] 100%
 pixman-0.46.4-1-x86_64                                                        284.6 KiB  1437 KiB/s 00:00 [################################################################] 100%
 libimagequant-4.4.0-1-x86_64                                                  265.1 KiB   777 KiB/s 00:00 [################################################################] 100%
 nspr-4.37-1-x86_64                                                            196.5 KiB   847 KiB/s 00:00 [################################################################] 100%
 lib32-nspr-4.37-1-x86_64                                                      109.4 KiB   588 KiB/s 00:00 [################################################################] 100%
 python-certifi-2025.07.14-1-any                                                 8.0 KiB  42.8 KiB/s 00:00 [################################################################] 100%
 tevent-1:0.17.0-1-x86_64                                                       58.1 KiB   171 KiB/s 00:00 [################################################################] 100%
 linux-headers-6.15.7.arch1-1-x86_64                                            51.2 MiB  2.18 MiB/s 00:24 [################################################################] 100%
 Total (17/17)                                                                 420.4 MiB  12.5 MiB/s 00:34 [################################################################] 100%
error: failed retrieving file 'linux-6.15.7.arch1-1-x86_64.pkg.tar.zst' from mirror.ams1.nl.leaseweb.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'freecad-1.0.1-4-x86_64.pkg.tar.zst' from mirror.ams1.nl.leaseweb.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'godot-4.4.1-4-x86_64.pkg.tar.zst' from mirror.ams1.nl.leaseweb.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: too many errors from mirror.ams1.nl.leaseweb.net, skipping for the remainder of this transaction
error: failed retrieving file 'vtk-9.5.0-4-x86_64.pkg.tar.zst' from mirror.ams1.nl.leaseweb.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'linux-headers-6.15.7.arch1-1-x86_64.pkg.tar.zst' from mirror.ams1.nl.leaseweb.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'tevent-1:0.17.0-1-x86_64.pkg.tar.zst' from arch.mirrors.lavatech.top : The requested URL returned error: 404
(17/17) checking keys in keyring                                                                           [################################################################] 100%
(17/17) checking package integrity                                                                         [################################################################] 100%
(17/17) loading package files                                                                              [################################################################] 100%
(17/17) checking for file conflicts                                                                        [################################################################] 100%
(17/17) checking available disk space                                                                      [################################################################] 100%
:: Running pre-transaction hooks...
(1/2) Performing snapper pre snapshots for the following configurations...
==> root: 1931
(2/2) Removing linux initcpios...
:: Processing package changes...
( 1/17) upgrading sqlite                                                                                   [################################################################] 100%
( 2/17) upgrading ca-certificates-mozilla                                                                  [################################################################] 100%
( 3/17) upgrading vtk                                                                                      [################################################################] 100%
( 4/17) upgrading libimagequant                                                                            [################################################################] 100%
( 5/17) upgrading freecad                                                                                  [################################################################] 100%
( 6/17) upgrading godot                                                                                    [################################################################] 100%
( 7/17) upgrading level-zero-loader                                                                        [################################################################] 100%
( 8/17) upgrading nspr                                                                                     [################################################################] 100%
( 9/17) upgrading lib32-nspr                                                                               [################################################################] 100%
(10/17) upgrading nss                                                                                      [################################################################] 100%
(11/17) upgrading lib32-nss                                                                                [################################################################] 100%
(12/17) upgrading linux                                                                                    [################################################################] 100%
(13/17) upgrading linux-headers                                                                            [################################################################] 100%
(14/17) upgrading pixman                                                                                   [################################################################] 100%
(15/17) upgrading opencv                                                                                   [################################################################] 100%
(16/17) upgrading python-certifi                                                                           [################################################################] 100%
(17/17) upgrading tevent                                                                                   [################################################################] 100%
^C
Interrupt signal received
error: command terminated by signal 2: Interrupt

pacman.log:

[2025-07-21T12:36:27+0200] [PACMAN] Running 'pacman -Syu'
[2025-07-21T12:36:27+0200] [PACMAN] synchronizing package lists
[2025-07-21T12:36:28+0200] [PACMAN] starting full system upgrade
[2025-07-21T12:37:18+0200] [ALPM] running '05-snap-pac-pre.hook'...
[2025-07-21T12:37:19+0200] [ALPM-SCRIPTLET] ==> root: 1931
[2025-07-21T12:37:19+0200] [ALPM] running '60-mkinitcpio-remove.hook'...
[2025-07-21T12:37:19+0200] [ALPM] transaction started
[2025-07-21T12:37:20+0200] [ALPM] upgraded sqlite (3.50.2-1 -> 3.50.3-1)
[2025-07-21T12:37:20+0200] [ALPM] upgraded ca-certificates-mozilla (3.113.1-1 -> 3.114-1)
[2025-07-21T12:37:22+0200] [ALPM] upgraded vtk (9.5.0-2 -> 9.5.0-4)
[2025-07-21T12:37:22+0200] [ALPM] upgraded libimagequant (4.3.4-1 -> 4.4.0-1)
[2025-07-21T12:37:27+0200] [ALPM] upgraded freecad (1.0.1-3 -> 1.0.1-4)
[2025-07-21T12:37:28+0200] [ALPM] upgraded godot (4.4.1-3 -> 4.4.1-4)
[2025-07-21T12:37:28+0200] [ALPM] upgraded level-zero-loader (1.21.9-1 -> 1.22.5-1)
[2025-07-21T12:37:28+0200] [ALPM] upgraded nspr (4.36-1 -> 4.37-1)
[2025-07-21T12:37:28+0200] [ALPM] upgraded lib32-nspr (4.36-1 -> 4.37-1)
[2025-07-21T12:37:28+0200] [ALPM] upgraded nss (3.113.1-1 -> 3.114-1)
[2025-07-21T12:37:28+0200] [ALPM] upgraded lib32-nss (3.113.1-1 -> 3.114-1)
[2025-07-21T12:37:32+0200] [ALPM] upgraded linux (6.15.6.arch1-1 -> 6.15.7.arch1-1)
[2025-07-21T12:37:35+0200] [ALPM] upgraded linux-headers (6.15.6.arch1-1 -> 6.15.7.arch1-1)
[2025-07-21T12:37:35+0200] [ALPM] upgraded pixman (0.46.2-1 -> 0.46.4-1)
[2025-07-21T12:37:35+0200] [ALPM] upgraded opencv (4.12.0-1 -> 4.12.0-2)
[2025-07-21T12:37:35+0200] [ALPM] upgraded python-certifi (2025.07.09-1 -> 2025.07.14-1)
[2025-07-21T12:37:35+0200] [ALPM] upgraded tevent (1:0.16.2-1 -> 1:0.17.0-1)
[2025-07-21T12:37:36+0200] [ALPM] transaction interrupted

Any help and advice is greatly appreciated, and thank you for your time in advance! My apologies if I should have posted this in another section.

Last edited by simonis (2025-07-21 12:47:25)

Offline

#2 2025-07-21 11:45:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,143

Re: [Solved] Accidentally aborted sudo pacman -Syu mid-update, plz advise

reinstall all packages that were part of that transaction. That should run whatever hooks that got skipped.

Offline

#3 2025-07-21 12:49:11

simonis
Member
Registered: 2025-07-21
Posts: 4

Re: [Solved] Accidentally aborted sudo pacman -Syu mid-update, plz advise

Thank you very much! That seems to have done the trick.

For posterity and future readers (Hello! I hope the future is awesome!) - I just ran

sudo pacman -S sqlite ca-certificates-mozilla vtk libimagequant freecad godot level-zero-loader nspr lib32-nspr nss lib32-nss linux linux-headers pixman opencv python-certifi tevent

and rebooting worked just fine, inc. new kernel, so indeed, all is great again.

Offline

#4 2025-07-21 12:59:15

amish
Member
Registered: 2014-05-10
Posts: 503

Re: [Solved] Accidentally aborted sudo pacman -Syu mid-update, plz advise

For interactive shell - pacman should catch sigint / ctrl-c and give warning especially when it is performing installation / upgradation.

Or have "OnSigInt" option in pacman.conf

OnSigInt=terminate # will terminate pacman (can be default to begin with)
OnSigInt=confirm # will ask for confirmation (yes/no) (can be default for interactive shells in future)
OnSigInt=ignore # will always ignore sigint / ctrl-c
OnSigInt=ignonce # ignores first sigint / ctrl-c, terminates on next

This can be extended for other signals too like SIGHUP / SIGTERM.

Offline

#5 2025-07-21 15:20:26

simonis
Member
Registered: 2025-07-21
Posts: 4

Re: [Solved] Accidentally aborted sudo pacman -Syu mid-update, plz advise

amish wrote:

For interactive shell - pacman should catch sigint / ctrl-c and give warning especially when it is performing installation / upgradation.

Or have "OnSigInt" option in pacman.conf

OnSigInt=terminate # will terminate pacman (can be default to begin with)
OnSigInt=confirm # will ask for confirmation (yes/no) (can be default for interactive shells in future)
OnSigInt=ignore # will always ignore sigint / ctrl-c
OnSigInt=ignonce # ignores first sigint / ctrl-c, terminates on next

This can be extended for other signals too like SIGHUP / SIGTERM.

That is great info, and does not seem present in my config files. Will update! Much appreciated!

Offline

#6 2025-07-22 03:42:53

amish
Member
Registered: 2014-05-10
Posts: 503

Re: [Solved] Accidentally aborted sudo pacman -Syu mid-update, plz advise

It is proposal. It does not currently exist.

Offline

#7 2025-07-22 09:32:14

simonis
Member
Registered: 2025-07-21
Posts: 4

Re: [Solved] Accidentally aborted sudo pacman -Syu mid-update, plz advise

Thx for the clarification, I misinterpreted the 'should' in this case.

Offline

Board footer

Powered by FluxBB