Want to subscribe to topics you're interested in?
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 New Member

    7
    0
    1
    May 27, 2014
    Ratings:
    +0
    Local Time:
    11:54 AM
    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 Moderator Staff Member

    666
    308
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +419
    Local Time:
    7:54 PM
    1.7.1
    MariaDB 10
    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 New Member

    7
    0
    1
    May 27, 2014
    Ratings:
    +0
    Local Time:
    11:54 AM
    Using search only yields this thread. Can you link me to the few other threads?
     
  4. Matt

    Matt Moderator Staff Member

    666
    308
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +419
    Local Time:
    7:54 PM
    1.7.1
    MariaDB 10
    Code:
    sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/centalt.repo
    yum clean all
     
  5. eva2000

    eva2000 Administrator Staff Member

    28,487
    6,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,583
    Local Time:
    4:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    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'
     
    • Like Like x 1