Want more timely Centmin Mod News Updates?
Become a Member

Install post-install yum errors

Discussion in 'Install & Upgrades or Pre-Install Questions' started by josh, May 30, 2014.

Tags:
  1. josh

    josh Premium Member Premium Member

    29
    2
    3
    May 27, 2014
    Ratings:
    +2
    Local Time:
    4:09 PM
    I keep running into this config error any time I use any yum command immediately after installing Centmin Mod
    Code:
    Loaded plugins: downloadonly, fastestmirror, priorities
    
    Config Error: File contains no section headers.
    
    file: file://///etc/yum.repos.d/centalt.repo, line: 1
    
    'exclude=mariadb*\n'
    


     
  2. Matt

    Matt Well-Known Member

    929
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    12:09 AM
    1.5.15
    MariaDB 10.2
    The centalt repo is broken. There are a few other threads in here, and a fix has been posted. You need to disable the repo
     
  3. josh

    josh Premium Member Premium Member

    29
    2
    3
    May 27, 2014
    Ratings:
    +2
    Local Time:
    4:09 PM
    Using search only yields this thread. Can you link me to the few other threads?
     
  4. Matt

    Matt Well-Known Member

    929
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    12:09 AM
    1.5.15
    MariaDB 10.2
    Code:
    sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/centalt.repo
    yum clean all
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,052
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    10:09 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah what @Matt posted would fix almost all the errors but I missed one error which I fixed in .07 beta 21 commit at https://github.com/centminmod/centminmod/commit/f9f74778ea8b830484ef57937d9de62a6cf9ba25

    basically, after MariaDB MySQL is installed, I originally added exclude line into the cenalt.repo file to prevent it from install MariaDB version from CentALT so it can use the official MariaDB repo instead, But that function didn't take into account whether or not CentALT repo was infact enabled/installed in the first place. So the fix does add a check to make sure the newly added variable CENTALTREPO_DISABLE was not set to 'y' in centmin.sh first.

    so if you get this error below on a new install pre-.07 beta 21 latest fix, just remove the /etc/yum.repos.d/centalt.repo file and run yum clean all

    Code:
    Loaded plugins: downloadonly, fastestmirror, priorities
    
    Config Error: File contains no section headers.
    
    file: file://///etc/yum.repos.d/centalt.repo, line: 1
    
    'exclude=mariadb*\n'