Public bug reported:

On Ubuntu 26.04 (Resolute), PackageKit cannot refresh the package cache.

The system has a working Internet connection and apt works normally.

Observed behavior:

- apt update succeeds without errors.
- apt upgrade works normally.
- pkgcli list-updates correctly lists available updates.
- pkgcli backend reports the APT backend.
- Cockpit Software Updates displays "Cannot refresh cache whilst offline".
- Running "pkgcli refresh" always ends with:

Error: Cannot refresh cache whilst offline

The issue persists after:
- restarting packagekit
- removing third-party repositories (tested by disabling the Adoptium 
repository)
- verifying network connectivity
- verifying DNS resolution

Expected behavior:

pkgcli refresh should successfully refresh the package metadata instead
of reporting the system as offline.

Actual behavior:

The refresh operation always fails with "Cannot refresh cache whilst
offline" even though package management works correctly.

Additional information:

- Ubuntu 26.04 (Resolute)
- PackageKit backend: APT
- apt update works without errors
- pkgcli list-updates works correctly

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: packagekit 1.3.4-3ubuntu1.1
ProcVersionSignature: Ubuntu 7.0.0-27.27-generic 7.0.6
Uname: Linux 7.0.0-27-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Fri Jul  3 15:51:05 2026
InstallationDate: Installed on 2026-05-14 (50 days ago)
InstallationMedia: Ubuntu-Server 26.04 "Resolute Raccoon" - Release amd64 
(20260420.1)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
SourcePackage: packagekit
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.dbus-1.system.d.org.freedesktop.PackageKit.conf: 
[deleted]

** Affects: packagekit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2159048

Title:
  pkgcli refresh fails with "Cannot refresh cache whilst offline"
  although apt and network work correctly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/2159048/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to