I had been updating 6.0 since RC1, and all was good. Then I started getting an update failure:
Fatal error: Error while installing package: trying to overwrite ‘/usr/share/applications/kde-mimeapps.list’, which is also in package neon-settings-2 0.4+p22.04+vstable+git20240125.1041
I reported that bug, but it was not fixed after a ~week, so I do a fresh install.
Fresh install, immediately go to update, and get:
Fatal error: Error while installing package: trying to overwrite ‘/usr/share/applications/kde-mimeapps.list’, which is also in package neon-settings-2 0.4+p22.04+vstable+git20240125.10410215.0414-0.amd64
I guess stop using RC and wait till March for release?
Testing or Unstable? Can you link to the bug report?
Use Apt to update, or look at /var/log/apt/term.log
Look for the full error that mentions which package trying to overwrite things.
It probably looks like this:
error processing archive /var/cache/apt/archives/plasma-desktop_4%3a5.91.90+p22.04+vstable+git20240214.0239-0_amd64.deb (--unpack):
trying to overwrite '/usr/share/applications/kde-mimeapps.list', which is also in package neon-settings-2 0.4+p22.04+vstable+git20240125.1041
Use the full path to the file you find in your errors, not necessarily what I have shown, in case it is something different. You say yours is from a week ago, but this popped up up for me on the 14th on my daily driven testing install.
As a …testing… platform using git-release code and automated build systems sometimes you gotta use a little apt and dpkg foo once in a while. We will unfortunately find little bits that need to be looked at before things are ready for official release and official packaging for neon.
Thanks for your help!
To answer a few of your questions.
Neon Testing (most recent image installed was neon-testing-20240207-1524.iso).
Bug report: 481324 – KDE Neon testing; pkcon update fatal error
I’ll try your fixes and report back!
Yesterday after updating I had the same problem, but with several packages. To fix it run ‘pkcon update -v’ for verbose output. Where the program aborts with an error, look at the problematic package and install it manually: ‘dpg -i --force-overwrite <path to apt cache/package name>’.