Ufdbguard conflicts between attempted installs of nethserver-squidguard

These versions should work:

[root@server ~]# rpm -qa nethserver-squidguard ufdbGuard
ufdbGuard-1.34.6-2.el7.x86_64
nethserver-squidguard-1.9.2-1.7.g186a20a.ns7.noarch

Please try the installation again:

yum clean all
yum install --enablerepo=nethserver-testing,epel-testing nethserver-squidguard ufdbGuard

If there’s an error move away the conflicting file. @geofxgt please move away /etc/sysconfig/ufdbguard before install.

Maybe you need to remove first:

yum remove nethserver-squidguard ufdbGuard

1 Like

@geofxgt
For me the problem was an old nethserver version. After upgrading to 2003 the reinstallation of ufdbguard with the command of @mrmarkuz works.

yum install --enablerepo=nethserver-testing,epel-testing nethserver-squidguard ufdbGuard

1 Like

Thanks for help @mrmarkuz not everything works fine

Do you mean now everything works fine ?
If so, could you explain us what exactly do?

Hi Team,

will there be an overall update? I mean, the automatic update can not be applied, i.m.o. any solution must be based on manual interaction.

I kindly ask to summarize this thread to a solution which can be applied by a simple-minded user (as I am) :slight_smile:

Thank you and best regards
Thorsten

[root@roy ~]# echo ‘{“action”:“install”,“packages”:["@nethserver-web-filter"]}’ | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-packages/update | jq
{
“state”: “running”,
“steps”: -1,
“event”: “Initialization”
}
{
“state”: “running”,
“steps”: -1,
“event”: “Resolving RPM dependencies”
}
{
“state”: “running”,
“steps”: -1,
“event”: “Downloading Packages”
}
{
“state”: “running”,
“steps”: -1,
“event”: “Check Package Signatures”
}
{
“state”: “running”,
“steps”: -1,
“event”: “Running Test Transaction”
}
{
“status”: “failed”,
“message”: “[YumTestTransactionError] Test Transaction Errors: file /var/log/ufdbguard conflicts between attempted installs of nethserver-squidguard-1.9.2-1.ns7.noarch and ufdbGuard-1.34.5-2.el7.x86_64\n”,
“steps”: -1,
“event”: null
}
{
“id”: “1598222563”,
“type”: “EventFailed”,
“message”: “See /var/log/messages”
}
[root@roy ~]#

Yes, when EPEL will release the update for their broken package.
As of today, the package is still in testing. I already told them that we successfully tested it.

Edit: Thanks @dz00te

1 Like

@harry What did you try to solve it and what is your configuration?

EPEL has released ufdbGuard and we have nethserver-squidguard ready to be tested.
Instruction for the braves:

1 Like

On an existing system I got after running the above command and then yum update
Transaction check error:
file /etc/sysconfig/ufdbguard from install of ufdbGuard-1.34.6-2.el7.x86_64 conflicts with file from package ufdbGuard-1.34.5-2.el7.x86_64

Then tried
yum remove ufdbGuard

It also removed
Transaction check error:
file /etc/sysconfig/ufdbguard from install of ufdbGuard-1.34.6-2.el7.x86_64 conflicts with file from package ufdbGuard-1.34.5-2.el7.x86_64
After removal reun

yum --enablerepo=epel-testing,nethserver-testing install nethserver-squidguard

and then
yum update
All appears to work
Thanks

1 Like

All the updated packages have been released: you could update from the server-manager or with yum update.

2 Likes

@filippo_carletti I did the update today? Have the patches only just been released since?

The failed one below looks like it is calling for the right packages but failed. Should we just wait and it will sort out?

The following updates will be applied on

Package Arch Version Repository Size

Updating:
certbot noarch 1.7.0-1.el7 epel 45 k
python2-acme noarch 1.7.0-1.el7 epel 82 k
python2-certbot noarch 1.7.0-1.el7 epel 376 k
ufdbGuard x86_64 1.34.6-2.el7 epel 517 k

Transaction Summary

Upgrade 4 Packages
Updates failed to install with the following error message:
Could not run transaction.

But the system where I had manually worked around the issue is back to automatic updates

The following updates will be applied on

Package Arch Version Repository Size

Updating:
nethserver-fail2ban noarch 1.4.2-1.ns7 nethserver-updates 1.1 M
nethserver-mail-common noarch 2.17.2-1.ns7 nethserver-updates 1.5 M
nethserver-mail-disclaimer noarch 2.17.2-1.ns7 nethserver-updates 43 k
nethserver-mail-filter noarch 2.17.2-1.ns7 nethserver-updates 90 k
nethserver-mail-server noarch 2.17.2-1.ns7 nethserver-updates 129 k
nethserver-mail-smarthost noarch 2.17.2-1.ns7 nethserver-updates 56 k
nethserver-nextcloud noarch 1.13.0-1.ns7 nethserver-updates 89 M
nethserver-squid noarch 1.10.12-1.ns7 nethserver-updates 1.3 M
nethserver-squidguard noarch 2.0.2-1.ns7 nethserver-updates 68 k

Transaction Summary

Upgrade 9 Packages
The updates were successfully applied

Does it help if you move away the conflicting /etc/sysconfig/ufdbguard file?

You may try to remove nethserver-squidguard and ufdbguard and install again.

@mrmarkuz That is actually what we did and it worked

yum remove ufdbGuard

It also removed
Transaction check error:
file /etc/sysconfig/ufdbguard from install of ufdbGuard-1.34.6-2.el7.x86_64 conflicts with file from package ufdbGuard-1.34.5-2.el7.x86_64
After removal reun

yum --enablerepo=epel-testing,nethserver-testing install nethserver-squidguard

2 Likes

For my server this issue is not done still. After clean-all cache (with enabled testing repos), the error remains on update (with enabled testing repos):

Loaded plugins: changelog, fastestmirror, nethserver_events
Determining fastest mirrors
epel/x86_64/metalink                                                                                         |  18 kB  00:00:00
epel-testing/x86_64/metalink                                                                                 |  11 kB  00:00:00
 * epel: ftp.plusline.net
 * epel-testing: ftp.plusline.net
ce-base/7/x86_64/signature                                                                                   |  811 B  00:00:00
ce-base/7/x86_64/signature                                                                                   | 3.6 kB  00:00:00 !!!
ce-extras/7/x86_64/signature                                                                                 |  811 B  00:00:00
ce-extras/7/x86_64/signature                                                                                 | 3.4 kB  00:00:00 !!!
ce-sclo-rh                                                                                                   | 3.0 kB  00:00:00
ce-sclo-sclo                                                                                                 | 2.9 kB  00:00:00
ce-updates/7/x86_64/signature                                                                                |  811 B  00:00:00
ce-updates/7/x86_64/signature                                                                                | 3.4 kB  00:00:00 !!!
epel                                                                                                         | 4.7 kB  00:00:00
epel-testing                                                                                                 | 4.7 kB  00:00:00
nethforge/7/x86_64/signature                                                                                 |  836 B  00:00:00
nethforge/7/x86_64/signature                                                                                 | 2.9 kB  00:00:00 !!!
nethserver-base/7/x86_64/signature                                                                           |  836 B  00:00:00
nethserver-base/7/x86_64/signature                                                                           | 2.9 kB  00:00:00 !!!
nethserver-testing/7/x86_64/signature                                                                        |  836 B  00:00:00
nethserver-testing/7/x86_64/signature                                                                        | 2.9 kB  00:00:00 !!!
nethserver-updates/7/x86_64/signature                                                                        |  836 B  00:00:00
nethserver-updates/7/x86_64/signature                                                                        | 3.6 kB  00:00:00 !!!
stephdl                                                                                                      | 2.9 kB  00:00:00
(1/18): ce-base/7/x86_64/group_gz                                                                            | 166 kB  00:00:01
(2/18): ce-extras/7/x86_64/primary_db                                                                        | 215 kB  00:00:01
(3/18): ce-sclo-sclo/7/x86_64/primary_db                                                                     | 308 kB  00:00:01
(4/18): epel/x86_64/updateinfo                                                                               | 1.0 MB  00:00:00
(5/18): epel/x86_64/primary_db                                                                               | 6.9 MB  00:00:00
(6/18): epel-testing/x86_64/group_gz                                                                         |  95 kB  00:00:00
(7/18): epel-testing/x86_64/updateinfo                                                                       |  38 kB  00:00:00
(8/18): epel-testing/x86_64/primary_db                                                                       | 300 kB  00:00:00
(9/18): nethforge/7/x86_64/primary_db                                                                        |  76 kB  00:00:00
(10/18): nethserver-base/7/x86_64/primary_db                                                                 | 331 kB  00:00:00
(11/18): nethserver-testing/7/x86_64/primary_db                                                              | 5.0 kB  00:00:00
(12/18): nethserver-updates/7/x86_64/group_gz                                                                |  20 kB  00:00:00
(13/18): nethserver-updates/7/x86_64/primary_db                                                              | 660 kB  00:00:00
(14/18): stephdl/7/primary_db                                                                                | 317 kB  00:00:00
(15/18): ce-sclo-rh/7/x86_64/primary_db                                                                      | 3.9 MB  00:00:07
(16/18): ce-base/7/x86_64/primary_db                                                                         | 6.0 MB  00:00:08
(17/18): epel/x86_64/group_gz                                                                                |  95 kB  00:00:07
(18/18): ce-updates/7/x86_64/primary_db                                                                      | 7.4 MB  00:00:08
Resolving Dependencies
--> Running transaction check
---> Package ufdbGuard.x86_64 0:1.33.7-CentOS7 will be updated
---> Package ufdbGuard.x86_64 0:1.35.3-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
 Package                       Arch                       Version                            Repository                        Size
====================================================================================================================================
Updating:
 ufdbGuard                     x86_64                     1.35.3-1.el7                       epel-testing                     519 k

Transaction Summary
====================================================================================================================================
Upgrade  1 Package

Total download size: 519 k
Is this ok [y/d/N]: y
Downloading packages:
epel-testing/x86_64/prestodelta                                                                              |   75 B  00:00:00
ufdbGuard-1.35.3-1.el7.x86_64.rpm                                                                            | 519 kB  00:00:00
Running transaction check
Running transaction test


Transaction check error:
  file /var/log/ufdbguard from install of ufdbGuard-1.35.3-1.el7.x86_64 conflicts with file from package nethserver-squidguard-1.9.1-1.ns7.noarch

Error Summary
-------------

Which Nethserver version do you have?

I thought I was up-to-date as did update and did not see any new version notification. But found “NethServer release 7.6.1810 (final)”. So I need some upgrading.

Uninstall ufdbguard

yum remove ufdbGuard

update the system to 7.8.2003

yum clean all
yum update

and reinstall ufdbguard with:

yum install --enablerepo=nethserver-testing,epel-testing nethserver-squidguard ufdbGuard

This should work

For the record, another approach without testing repository:
Install nethserver-subscription package to enable upgrade option in admin web ui.
Start upgrade to 7.7 in the ui. It fails with the mentioned conflict.
Start upgrade on console with excluding ufdbGuard. This succeeds.
Start upgrade from 7.7 to 7.8 from the admin web ui again. This time this succeeds, too, the conflict is no longer present during this upgrade.

2 Likes