Skip to main content

Getting this message while performing yum update/upgrade

Comments

8 comments

  • cPanelMichael
    error: unpacking of archive failed on file /usr/bin/ld: cpio: rename failed - Operation not permitted

    Hello, Is SELinux enabled on this system? You can check with a command such as:
    getenforce
    Thank you.
    0
  • schatzman
    Hello, Is SELinux enabled on this system? You can check with a command such as:
    getenforce
    Thank you.

    Hi, from command getenforce the output is Disabled thanks Matan
    0
  • cPanelMichael
    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:
    ls -al /usr/bin/ld
    For instance, on a test system running CentOS 7, I see this output:
    # 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:
    # 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:
    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.
    0
  • schatzman
    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:
    ls -al /usr/bin/ld
    For instance, on a test system running CentOS 7, I see this output:
    # 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:
    # 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:
    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.

    ok, tried to execute it but getting some different output, attached is a screen shot.. thanks
    0
  • cPanelMichael
    Hello, Post the output from this command:
    lsattr /usr/bin/ld
    Thank you.
    0
  • schatzman
    Hello, Post the output from this command:
    lsattr /usr/bin/ld
    Thank you.

    sure, this is: ----i--------e- /usr/bin/ld
    0
  • cPanelMichael
    sure, this is: ----i--------e- /usr/bin/ld

    You can try removing the immutable attribute to see if that allows YUM to proceed. EX:
    chattr -i /usr/bin/ld
    Thank you.
    0
  • schatzman
    yes! thank you! all good now!
    0

Please sign in to leave a comment.