While trying to upgrade Ubuntu 21.10 by running apt upgrade
as root, I get the following error:
dpkg: error processing archive /var/cache/apt/archives/login_1%3a4.8.1-1ubuntu9_amd64.deb (--unpack):
unable to create '/usr/share/man/zh_CN/man1/login.1.gz.dpkg-new' (while processing './usr/share/man/zh_CN/man1/login.1.gz'): Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/login_1%3a4.8.1-1ubuntu9_amd64.deb
Further inspection suggests it may have to do with the extended attributes of /usr/share/man/zh_CN/man1
.
When running lsattr -ld /usr/share/man/zh_CN/man1/
it outputs:
/usr/share/man/zh_CN/man1/ Synchronous_Updates, Immutable, Append_Only, Compression_Requested, Extents
Can I safely remove these attributes (I expect them to be there for a reason)? Or is there some other upgrade command I need to perform?