Server update failed

NethServer Version: 7.9.2009

Hello everyone. I need your help. Yesterday, when updating the server via SSH via mobile, the screen locked and I was logged out. And now I run into this problem. Any suggestion? Thanks in advance


Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package php74-php-json.x86_64 0:7.4.32-1.el7.remi will be updated
--> Processing Dependency: php74-php-json(x86-64) = 7.4.32-1.el7.remi for package: php74-php-common-7.4.32-1.el7.remi.x86_64
---> Package php74-php-json.x86_64 0:7.4.32-2.el7.remi will be an update
--> Finished Dependency Resolution
Error: Package: php74-php-common-7.4.32-1.el7.remi.x86_64 (@remi-safe)
           Requires: php74-php-json(x86-64) = 7.4.32-1.el7.remi
           Removing: php74-php-json-7.4.32-1.el7.remi.x86_64 (@remi-safe)
               php74-php-json(x86-64) = 7.4.32-1.el7.remi
           Updated By: php74-php-json-7.4.32-2.el7.remi.x86_64 (remi-safe)
               php74-php-json(x86-64) = 7.4.32-2.el7.remi
 You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
php74-php-common-7.4.32-2.el7.remi.x86_64 is a duplicate with php74-php-common-7.4.32-1.el7.remi.x86_64
php74-php-common-7.4.32-2.el7.remi.x86_64 has missing requires of php74-php-json(x86-64) = ('0', '7.4.32', '2.el7.remi')

Hi

usually this will work fine:

yum-complete-transaction

In your case, you’ll also need this:

My 2 cents
Andy

1 Like

Hi! Thanks for your reply, but no luck

yum-complete-transaction
-bash: yum-complete-transaction: command not found

Also I have probed what you told me, but still no luck

Hi @PCXLan.es

For yum you’ll first need:

yum -y install yum-utils

→ this gets you yum-complete-transaction…

you will also need to remove

yum remove -y php74-php-json

This should work…

My 2 cents
Andy

2 Likes

Hello Andy
I was able to install yum-utils and completed the transaction.
But, when trying yum remove -y php74-php-json tells me this:

yum remove php74-php-json
Loaded plugins: changelog, fastestmirror, nethserver_events
Resolving Dependencies
--> Running transaction check
---> Package php74-php-json.x86_64 0:7.4.32-1.el7.remi will be erased
--> Processing Dependency: php74-php-json(x86-64) = 7.4.32-1.el7.remi for package: php74-php-common-7.4.32-1.el7.remi.x86_64
--> Running transaction check
---> Package php74-php-common.x86_64 0:7.4.32-1.el7.remi will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch        Version                Repository       Size
================================================================================
Removing:
 php74-php-json        x86_64      7.4.32-1.el7.remi      @remi-safe       44 k
Removing for dependencies:
 php74-php-common      x86_64      7.4.32-1.el7.remi      @remi-safe      6.7 M

Transaction Summary
================================================================================
Remove  1 Package (+1 Dependent package)

Installed size: 6.8 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
ERROR with transaction check vs depsolve:
php74-php-json(x86-64) = 7.4.32-2.el7.remi is needed by (installed) php74-php-common-7.4.32-2.el7.remi.x86_64
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
php74-php-common-7.4.32-2.el7.remi.x86_64 is a duplicate with php74-php-common-7.4.32-1.el7.remi.x86_64
php74-php-common-7.4.32-2.el7.remi.x86_64 has missing requires of php74-php-json(x86-64) = ('0', '7.4.32', '2.el7.remi')
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2022-10-27.22-35.pvZ732.yumtx

Thanks for the help and sorry for being so annoying.

Hi @PCXLan.es

No probs!

You need both removed, these are leftovers from the older Server-Manager.
Cockpit replaces these with newer repos…

So just run the remove command again and let it remove both relics…

yum remove -y php74-php-common php74-php-json

My 2 cents
Andy

3 Likes

Wow!
You’re a machine…

yum clean all && yum update
...
No packages marked for update

Thank you soo much :wink:

2 Likes