Interrupt signal received - stuck with incomplete upgrade

Hello everyone…I have inadvertently interrupted my upgrade this morning. I am wondering if there is a way to resume it.

Here is the stupid thing I did:

171/446) installing geocode-glib-common           [######################] 100%
^C
Interrupt signal received
(172/446) upgrading geocode-glib                   [######################] 100%
[will@will-pc ~]$ sudo pacman -Syu
sudo: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

And here is how I have already tried to resume the upgrade:

[will@will-pc ~]$ pkexec su
[will-pc ~]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: python-twisted will be installed before its python-incremental dependency

Packages (274) gcr-4-4.0.0-1  geoip-database-20221018-1  ghostscript-10.0.0-2

From this I get the following:

:: Proceed with installation? [Y/n] 
(274/274) checking keys in keyring                 [######################] 100%
(274/274) checking package integrity               [######################] 100%
(274/274) loading package files                    [######################] 100%
(274/274) checking for file conflicts              [######################] 100%
error: failed to commit transaction (conflicting files)
gcr-4: /usr/lib/gcr-ssh-agent exists in filesystem
gcr-4: /usr/lib/systemd/user/gcr-ssh-agent.service exists in filesystem
gcr-4: /usr/lib/systemd/user/gcr-ssh-agent.socket exists in filesystem
Errors occurred, no packages were upgraded.

I have not rebooted at all because I am afraid I am going to break my system.

Can anyone help me out?

I tend to do something stupid like this once every 6 months or so, and each time folks on this forum have guided be out of the issue. I hope I haven’t screwed things up too much this time!

You need to overwrite the files:

pacman -Syu --overwrite "/usr/lib/*"

Can I copy and paste this into my terminal?

Yes.

It will reset the changed files in the given directory. You might have changed these two mentioned files by hand. These changes will be lost.

1 Like

Thank you so much! That seems to have done the trick as I have completed the upgrade. I am going to reboot now.

Please, next time mark as a solution the post of a person that wrote the actual command.

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