Package: packagekit Version: 1.2.2-2 Severity: normal X-Debbugs-Cc: [email protected]
It seems, that packagekitʼs APT backend do not respect APT default release (aka
target release).
## Steps to reproduce
/etc/apt/sources.list
deb https://deb.debian.org/debian/ sid main
deb https://deb.debian.org/debian/ experimental main
/etc/apt/apt.conf.d/00default-release
APT::Default-Release "sid";
/etc/apt/preferences.d/20experimental-is-okay
Package: *
Pin: release a=experimental
Pin-Priority: 500
(would not be required for testing and unstable on stable system).
So that:
$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://deb.debian.org/debian experimental/main amd64 Packages
release
o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=amd64
origin deb.debian.org
990 https://deb.debian.org/debian sid/main amd64 Packages
release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
origin deb.debian.org
Pinned packages:
Compare
$ apt list --upgradeable
(no extra upgrades should be found) with
$ pkcon get-updates
which suggests to upgrade everything possible to experimental.
## Expected result
packagekit-based software (pkcon, plasma-discover, apper, etc) behaves mostly
the same way as apt(8), aptitude(8), libqapt3-based software (e. g. muon) does.
## Workaround
Emulate default release with apt_preferences(5):
/etc/apt/preferences.d/00emulate-default-release
Package: *
Pin: release n=sid
Pin-Priority: 990
-- System Information:
Debian Release: 11.0
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-7-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages packagekit depends on:
ii init-system-helpers 1.60
ii libappstream4 0.14.2-1
ii libapt-pkg6.0 2.2.3
ii libc6 2.31-12
ii libgcc-s1 10.2.1-6
ii libglib2.0-0 2.66.8-1
ii libglib2.0-bin 2.66.8-1
ii libgstreamer1.0-0 1.18.4-2
ii libpackagekit-glib2-18 1.2.2-2
ii libpolkit-gobject-1-0 0.105-30
ii libsqlite3-0 3.34.1-3
ii libstdc++6 10.2.1-6
ii libsystemd0 247.3-5
ii policykit-1 0.105-30
Versions of packages packagekit recommends:
ii packagekit-tools 1.2.2-2
ii systemd 247.3-5
Versions of packages packagekit suggests:
ii appstream 0.14.2-1
-- no debconf information
signature.asc
Description: PGP signature

