Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Getting this message while performing yum update/upgrade

Discussion in 'General Discussion' started by schatzman, Apr 9, 2017.

Tags:
  1. schatzman

    schatzman Member

    Joined:
    Apr 9, 2017
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    europe
    cPanel Access Level:
    Website Owner
    hello

    while trying to execute yum update or yum upgrade the following failed message appear:

    Error unpacking rpm package binutils-2.20.51.0.2-5.46.el6.x86_64
    error: unpacking of archive failed on file /usr/bin/ld: cpio: rename failed - Operation not permitted
    binutils-2.20.51.0.2-5.44.el6.x86_64 was supposed to be removed but is not!
    There were non-fatal errors in the transaction

    how to fix this issue?

    thank you
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Is SELinux enabled on this system? You can check with a command such as:

    Code:
    getenforce
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. schatzman

    schatzman Member

    Joined:
    Apr 9, 2017
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    europe
    cPanel Access Level:
    Website Owner
    Hi, from command getenforce the output is Disabled

    thanks
    Matan
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    It looks like the permissions or attributes on the file are preventing it from running on the system. Check to see if the file is using the immutable attribute by first seeing where that file links to with a command such as:

    Code:
    ls -al /usr/bin/ld
    For instance, on a test system running CentOS 7, I see this output:

    Code:
    # ls -al /usr/bin/ld
    lrwxrwxrwx 1 root root 20 Feb 20 22:44 /usr/bin/ld -> /etc/alternatives/ld
    Thus, I'd keep checking until I get that actual file path:

    Code:
    # ls -al /etc/alternatives/ld
    lrwxrwxrwx 1 root root 15 Feb 20 22:44 /etc/alternatives/ld -> /usr/bin/ld.bfd
    Then, I'd run:

    Code:
    stat /usr/bin/ld.bfd
    lsattr /usr/bin/ld.bfd
    These commands will vary depending on your system, but you essentially want what's causing the update operation to fail.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. schatzman

    schatzman Member

    Joined:
    Apr 9, 2017
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    europe
    cPanel Access Level:
    Website Owner
    ok, tried to execute it but getting some different output, attached is a screen shot..

    thanks
     

    Attached Files:

  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Post the output from this command:

    Code:
    lsattr /usr/bin/ld
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. schatzman

    schatzman Member

    Joined:
    Apr 9, 2017
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    europe
    cPanel Access Level:
    Website Owner
    sure,
    this is: ----i--------e- /usr/bin/ld
     
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can try removing the immutable attribute to see if that allows YUM to proceed. EX:

    Code:
    chattr -i /usr/bin/ld
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. schatzman

    schatzman Member

    Joined:
    Apr 9, 2017
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    europe
    cPanel Access Level:
    Website Owner
    yes! thank you! all good now!
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice