Bug 481261 - Package errors when updating from stable to unstable
Summary: Package errors when updating from stable to unstable
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages Unstable Edition (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-12 11:54 UTC by Akseli Lahtinen
Modified: 2024-02-19 09:47 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
dist-upgrade with --force-override log (655.73 KB, text/plain)
2024-02-13 12:22 UTC, Akseli Lahtinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Akseli Lahtinen 2024-02-12 11:54:50 UTC
SUMMARY

Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 202667 files and directories currently installed.)
Preparing to unpack .../kf6-kwallet_5.245.0+p22.04+vunstable+git20240210.0126-0_amd64.deb ...
Unpacking kf6-kwallet (5.245.0+p22.04+vunstable+git20240210.0126-0) ...
dpkg: error processing archive /var/cache/apt/archives/kf6-kwallet_5.245.0+p22.04+vunstable+git20240210.0126-0_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/kwallet-query', which is also in package libkf5wallet-bin 5.114.0-0xneon+22.04+jammy+release+build43
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/kf6-kwallet_5.245.0+p22.04+vunstable+git20240210.0126-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

STEPS TO REPRODUCE
1. Install neon user edition https://neon.kde.org/download
2. Change /etc/apt/sources.list.d/neon.list to
```
deb http://archive.neon.kde.org/unstable jammy main
deb-src http://archive.neon.kde.org/unstable jammy main
```
3. create /etc/apt/preferences.d/40-switch with
```
Package: *
Pin: release l=KDE neon - Unstable Edition
Pin-Priority: 1100
```
4. run sudo apt update && sudo apt dist-upgrade
5. remove /etc/apt/preferences.d/40-switch again
6. run sudo apt update && sudo apt dist-upgrade again


OBSERVED RESULT
Update process fails at part 4

EXPECTED RESULT
successful update

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.12
Kernel Version: 6.5.0-17-generic (64-bit)
Graphics Platform: X11
Processors: 2 × AMD Ryzen 5 3600 6-Core Processor
Memory: 3,8 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: QEMU
Product Name: Standard PC (Q35 + ICH9, 2009)
System Version: pc-q35-8.1
Comment 1 Akseli Lahtinen 2024-02-13 09:44:12 UTC
Updating works with following command:

sudo apt update && sudo apt dist-upgrade -o DPkg::options::="--force-overwrite"
Comment 2 Akseli Lahtinen 2024-02-13 12:21:32 UTC
Going through the packages one-by-one to find all broken ones:

kf6-baloo
kf6-baloowidgets
kf6-plasma5support
kwin-common
libkpimgapi5-data


I found these by piping the force-override dist upgrade to a log file and then listing anything that raises a dpkg: warning
Comment 3 Akseli Lahtinen 2024-02-13 12:22:18 UTC
Created attachment 165805 [details]
dist-upgrade with --force-override log
Comment 4 Jonathan Riddell 2024-02-19 09:47:54 UTC
This isn't supported by us but there's obviously demand so maybe we should work out how.

The problem is files moves around in unstable first and then there are clashes with testing and user editions on upgrades.

I think to do it we need to just advise to turn on force-overwrite

`echo force-overwrite > /etc/dpkg/dpkg.cfg.d/neon-edition-change`