You are not logged in.

#1 2018-02-28 08:59:03

falstaff_ch
Member
Registered: 2013-06-09
Posts: 26

systemd upgrade cannot remove file '/usr/bin/systemd-sysusers'

Running a system upgrade today lead to the following issue:

error: cannot remove file '/usr/bin/systemd-sysusers': Operation not permitted
(1/1) reinstalling systemd                                                           [################################################] 100%
warning: warning given when extracting /usr/bin/systemd-sysusers (Could not unlink)

Indeed it is not possible to delete/move /usr/bin/systemd-sysusers, even as root.

Any idea?

Offline

#2 2018-02-28 15:10:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: systemd upgrade cannot remove file '/usr/bin/systemd-sysusers'

Don't post truncated output: please paste the command and the full output.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-02-28 15:31:12

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: systemd upgrade cannot remove file '/usr/bin/systemd-sysusers'

Maybe you set the file to immutable?

lsattr -ld /usr/bin
ls -ld /usr/bin
lsattr -l /usr/bin/systemd-sysusers
ls -l /usr/bin/systemd-sysusers

Removing the immutable flag can be done as root with

chattr -i /usr/bin/systemd-sysusers

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2018-03-17 17:33:03

falstaff_ch
Member
Registered: 2013-06-09
Posts: 26

Re: systemd upgrade cannot remove file '/usr/bin/systemd-sysusers'

Hm, the file was indeed immutable:

$ lsattr -l /usr/bin/systemd-sysusers
/usr/bin/systemd-sysusers    Immutable, Extents

I wonder why I did that/or what did that. Thanks for your help!

Offline

Board footer

Powered by FluxBB