Package failed to install: Error while installing package: trying to overwrite /etc/grub.d/10_linux, which is the diverted version of ‘/usr/share/grub/10_linux.diverted’
Apologies if posted in wrong forum.
The original issue was this which I posted to DeepSeek:
Netrunner Linux has an update, but I get an error message:
Package failed to install: Error while installing package: trying to overwrite /etc/grub.d/10_linux, which is the diverted version of ‘/usr/share/grub/10_linux.diverted’
DeepSeek fixed the problem for me. Note that this worked after a bit of back and forth with DeepSeek.
sudo mv /etc/grub.d/10_linux /etc/grub.d/10_linux.backup
sudo dpkg-divert --remove --no-rename /etc/grub.d/10_linux
sudo apt --fix-broken install
Then I ran the following command:
sudo update-grub
sudo rm /etc/grub.d/10_linux.backup # only if no issues
Netrunner is stable, running fast and smoothly, and I am happy as a clam at high tide. ![]()