Package: packagekit
Version: 1.3.1-1
Severity: normal

Dear Maintainer,

I wanted to update a package (firefox, but this is irrelevant) using packagekit.

I used "pkcon update firefox". The command never terminated.

packagekit service log did not show any error messages or timeout.

pkcon update firefox
Resolving [=========================] Testing changes [=========================] Finished [ ] (0%) The following packages have to be updated:
 firefox-144.0~build2.amd64     Mozilla Firefox
 firefox-l10n-de-144.0~build2.all       Mozilla Firefox - Firefox Language Pack 
for Deutsch (de) – German
Proceed with changes? [N/y] y

[=========================] Updating packages [=========================] Loading cache [=========================] Running [=========================] ^C Finished [=========================]

Aborted after minutes. Nothing was updated.

Looking at the running processes I found "apt-listchanges" running:

root       30293  0.0  0.0   2680  1856 pts/4    S+   17:56   0:00 /bin/sh -c 
/usr/bin/apt-listchanges --apt || test $? -lt 10
root       30294  1.2  0.2  47600 33384 pts/4    S+   17:56   0:00 
/usr/bin/python3 /usr/bin/apt-listchanges --apt

So I suspected it being the cause.

I configured apt-listchanges some time ago and it worked fine when using plain apt. Apparently it is also triggered by packagekit. I would expect listchanges to be disabled or using a different configuration when apt is controlled by a non-interactive background process.

"Problematic" config:

cat /etc/apt/listchanges.conf
[apt]
frontend=xterm-browser
confirm=true
email_address=user
save_seen=/var/lib/apt/listchanges
which=changelogs
email_format=text
headers=true
reverse=true
no_network=false

Changed to the following working config:

cat /etc/apt/listchanges.conf
[apt]
frontend=mail
confirm=false
email_address=user
save_seen=/var/lib/apt/listchanges
which=changelogs
email_format=text
headers=true
reverse=true
no_network=false


Thank you.

Ben


-- System Information:
Debian Release: 13.1
  APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.48+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB
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.69~deb13u1
ii  libappstream5           1.0.5-1
ii  libapt-pkg7.0           3.0.3
ii  libc6                   2.41-12
ii  libgcc-s1               14.2.0-19
ii  libglib2.0-0t64         2.84.4-3~deb13u1
ii  libglib2.0-bin          2.84.4-3~deb13u1
ii  libgstreamer1.0-0       1.26.2-2
ii  libpackagekit-glib2-18  1.3.1-1
ii  libpolkit-gobject-1-0   126-2
ii  libsqlite3-0            3.46.1-7
ii  libstdc++6              14.2.0-19
ii  libsystemd0             257.8-1~deb13u2
ii  polkitd                 126-2

Versions of packages packagekit recommends:
ii  appstream         1.0.5-1
ii  packagekit-tools  1.3.1-1
ii  systemd           257.8-1~deb13u2

packagekit suggests no packages.

-- no debconf information

Reply via email to