Bug 497138

Summary: I'm not able to do "pkcon update". I get an error with kdesu or kde-runtime-data or something.
Product: [KDE Neon] neon Reporter: Mina <842mono>
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: carlosd.kde, jr, neon-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mina 2024-12-06 18:35:22 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

This system is a little bit old. I'm trying to "pkcon update" it, and then maybe "pkcon upgrade" it.

With pkcon update, I get the error:

Fatal error: Error while installing package: trying to overwrite '/usr/share/man/man1/kdesu.1.gz', which is also in package kde-runtime-data 4




STEPS TO REPRODUCE
1. run pkcon update

OBSERVED RESULT
pkcon runs for a little bit, then gives the following error and stops.

Fatal error: Error while installing package: trying to overwrite '/usr/share/man/man1/kdesu.1.gz', which is also in package kde-runtime-data 4

EXPECTED RESULT
pkcon would run till the end, and the system would be updated.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

mono@gask:~$ plasmashell --version
plasmashell 6.2.0
mono@gask:~$ kf5-config --version
Qt: 5.15.14
KDE Frameworks: 5.113.0
kf5-config: 1.0


ADDITIONAL INFORMATION
Comment 1 Mina 2024-12-06 18:38:26 UTC
Forgot to remove the part at the beginning. Not sure how to edit what I've submitted.
Comment 2 Mina 2024-12-06 20:22:21 UTC
I did `sudo apt --fix-broken install` and then `pkcon update -v` again, and pkcon seems to be progressing I think. Very cool. I was able to get help at #kde on Libera chat or IRC.

By the way. I think there was a telegram channel for KDE Neon, where I can chat and post issues like this one. I can't find it anymore. Has it been shut down? (according to what's mentioned here https://community.kde.org/Telegram )
Comment 3 Mina 2024-12-06 20:50:35 UTC
pkcon showed the same error again with kdesu or kde-runtime-data or something.

Fatal error: Error while installing package: trying to overwrite '/usr/share/man/man1/kdesu.1.gz', which is also in package kde-runtime-data 4


This time, the `sudo apt --fix-broken install` command didn't work. But I got things moving forward another way.

Following help from Libera chat or IRC, I went to this. https://discuss.kde.org/t/neon-plasma-6-0-pkcon-update-fatal-error/10644

And then I took a look at `/var/log/apt/term.log` with nano. Like below.

nano /var/log/apt/term.log

And then, I went on scrolling till near the end. And from what I found, I did:

`sudo dpkg -i --force-overwrite /var/cache/apt/archives/kde-cli-tools-data_4%3a6.2.0-0zneon+22.04+jammy+release+build4_all.deb`

...as instructed by the link at kde discuss.

...and that got things moving forward again with pkcon.

Yay : )
Comment 4 Carlos De Maine 2024-12-06 21:48:19 UTC
kde-runtime is an ancient, ancient deprecated package.  can only imagine you have been upgrading this machine for quite a few cycles.  either way, this shouldn't happen so have committed https://invent.kde.org/neon/kde/kde-cli-tools/-/commit/1179fe9167e0bcb671a8b95d4cb2527df24a8d6e to stop it from occurring again ;)
Comment 5 Mina 2024-12-06 22:14:05 UTC
pkcon has finished the update and asked for a restart. Very cool : )

Also I think I found the Telegram channel I was looking for. https://telegram.me/kdeneon Even that I found. Today's a great day for me : )
Comment 6 Mina 2024-12-06 22:15:22 UTC
Cool. Not sure I understand, but okay : )