Fix RasperryPi apt install error: overwrite xxx but also in yyy
Try to run apt -f install on my Rasperry Pi 4 (Raspbian OS), but get following error:
1 | Preparing to unpack .../gnome-software_3.30.6-5_armhf.deb ... |
The problem looks like it tries to overwrite some file but that file is being used by a package pi-package-session.
The solution is, remove that package first:
1 | $ sudo dpkg -r pi-package |
Now try apt -f install again, it should work now.