I am using Ubuntu 16LTS and performed a regular upgrade with apt. The upgrade failed with openssh-server
and apt complained it could not upgrade because it cannot make a backup of /usr/sbin/sshd
I removed openssh-server
and tried to reinstall it. No luck and apt comes back with the same message. I remove openssh-server
again.
When I try to manually change or remove /usr/sbin/sshd
I get the message that "Operation is not permitted". I tried to remove the attribute chattr -a -i /usr/sbin/sshd
but it keeps responding that the operation not permitted. An other annoying issue is that lsattr
does not give back any info.
How can I force a delete or move of the /usr/sbin/sshd
file?