Debian/Ubuntu - unable to make backup link of `./usr/sbin/sshd' before installing new version: Operation not permitted
Error: Debian/Ubuntu - unable to make backup link of `./usr/sbin/sshd' before installing new version: Operation not permittedYou try to upgrade OpenSSH on Debian/Ubuntu (packages openssh-client and openssh-server) and get the following errors: Unpacking replacement openssh-server ...
Solution(We need root permissions for this, so if you are on Ubuntu, run sudo su first to become root.) Check the attributes of /usr/bin/ssh: lsattr /usr/bin/ssh root@server1:~# lsattr /usr/bin/ssh If you see the attributes i and a, remove them both: chattr -i /usr/bin/ssh If you just see i or a, remove just the one you see. Now do the same again for /usr/bin/sshd: lsattr /usr/bin/sshd root@server1:~# lsattr /usr/bin/sshd If you see the attributes i and a, remove them both: chattr -i /usr/bin/sshd If you just see i or a, remove just the one you see. Then try the upgrade again.
|



Recent comments
3 hours 43 min ago
4 hours 43 min ago
8 hours 30 min ago
9 hours 44 min ago
13 hours 20 min ago
20 hours 35 min ago
1 day 5 hours ago
1 day 7 hours ago
1 day 22 hours ago
2 days 29 min ago