KanoComputing / kano-updater

GNU General Public License v2.0
9 stars 11 forks source link

[OS-268] [Jessie] PreUpdate workaround for installing firmware-ralink over firmware-misc-nonfree #394

Closed radujipa closed 5 years ago

radujipa commented 5 years ago

Because we did not have in place mirrors for Raspbian and our RaspberryPi mirrors were old, users in Jessie started installing deb8u pkgs over rpi ones. After updating our RPi mirrors to align with Raspbian ones, there was an issue updating from 3.16.1 to 3.16.2.

Error Installing packages: /var/cache/apt/archives/firmware-ralink_1%3a0.43+rpi6_all.deb: trying to overwrite '/lib/firmware/rt2661.bin', which is also in package firmware-misc-nonfree 20161130-4~deb8u1

Essentially, there seems to be a file ownership transfer from firmware-misc-nonfree (deb8) to the firmware-ralink (rpi) package. May be worth raising this upstream. For now, attempting workaround by removing the package in a PreUpdate scenario.

radujipa commented 5 years ago

Merging this PR temporarily in order to test the fix once more. I don't believe my previous build was sound given that the system collapsed without there being an update issue. Will revert if necessary.

skarbat commented 5 years ago

👍