Skip to main content

Failure to update with yum install

Posted by mcampbell@1poi… on Mon, 02/10/2020

Hello,

I attempted to update our system this evening via yum update (we are currently running MT 9.1.4.14 and the system was last updated around July 2019.)

Unfortunately the update is a no-go as I receive the following errors & things will not proceed any further:

Transaction Check Error:
file /etc/nginx/conf.d/default.conf from install of nginx-1.10.3-1.el6.x86_64 conflicts with file from package nginx-config-1.10.2-100.el6.x86_64
file /etc/nginx/conf.d/ssl.conf from install of nginx-1.10.3-1.el6.x86_64 conflicts with file from package nginx-config-1.10.2-100.el6.x86_64

I tried manually removing nginx-1.10.2-100 and nginx-config-1.10.2.100 and reinstalling with the latest versions 1.10.3-1. This lets the yum-update proceed with upgrading everything else; however the gui stops working and nginx will not start and throws an error when you try manually to start it. Additionally fail2ban complains about things not being right. I ended up restoring a server snapshot taken just before the failed upgrade attempt and all is well, just unable to update my system.

Any suggestions for a graceful way to get past this issue and not break the system? I've access to plenty of log files from the botched attempt for reference.

Thanks in advance,

--Matt


Submitted by volodya on Thu, 02/13/2020 Permalink

Hello Matt,

Nginx version 1.10.3-1 must be from different repository. You should downgrade it with yum downgrade nginx command to version 1.10.2 from our repository.

Make sure not to update conflicting packages from third party repositories.

Submitted by mcampbell@1poi… on Thu, 02/13/2020 Permalink

Hi Volodya,

Thank you for the reply. Currently the system has the tl-repository nginx 1.10.2 version installed.

I run 'yum clean all' then 'yum update' as I have in the past. That's when I get the "Transaction Check Error:" followed by the 2 conflict messages.

Is there something I can do to prevent the system from trying to download nginx from a third-party repository? What bothers me is - we have not performed an upgrade on the system since July 2019 (when we upgraded based on the following post from Alex: https://www.thirdlane.com/forum/thirdlane-unified-communications-platfo…) so I'm really not sure what changed between then and now.

Best regards,

--Matt

Submitted by volodya on Thu, 02/13/2020 Permalink

Please run yum repolist command. You should only see the following list of repositories:

  • base CentOS-6 - Base
  • extras CentOS-6 - Extras
  • thirdlane CentOS / Red Hat Enterprise Linux - thirdlane.com
  • updates CentOS-6 - Updates

You should check configuration files under /etc/yum.repos.d/ directory. In case if you have any third party repository, you will need to either remove them or disable by setting enabled=0.

Submitted by mcampbell@1poi… on Thu, 02/13/2020 Permalink

Hi Volodya,

I checked config files and found the epel repo enabled & have since disabled it. Will schedule a time to attempt the upgrade again in the near future during a maintenance window.

Thank you for the advice.

--Matt