Using mint vera 21.1, --fix-broken doesn't resolve an issue I'm seeing with udev
I have been using linux 6 (the oem version) without trouble for a couple months now, but at some point this showed up.
The salient part is "unable to make backup link of './lib/udev/rules.d/70-power-switch.rules' before installing new version: Operation not permitted"
But permissions can not be widened in /lib/udev even when I am root
Code: Select all
$ sudo apt --fix-broken install
The following additional packages will be installed:
udev
The following packages will be upgraded:
udev
1 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Need to get 0 B/1,557 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 482103 files and directories currently installed.)
Preparing to unpack .../udev_249.11-0ubuntu3.7_amd64.deb ...
Unpacking udev (249.11-0ubuntu3.7) over (249.11-0ubuntu3.6) ...
dpkg: error processing archive /var/cache/apt/archives/udev_249.11-0ubuntu3.7_amd64.deb (--unpack):
unable to make backup link of './lib/udev/rules.d/70-power-switch.rules' before installing new version: Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/udev_249.11-0ubuntu3.7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Make sure apt cache does not contain the problem file (surprisingly the apt cache stuck around after using timeshift)
ls -lta /var/cache/apt/archives/udev_249.11-0ubuntu3.7_amd64.deb
Modify the file to make it not immutable
sudo chattr -i -a /lib/udev/rules.d/70-power-switch.rules