Skip to content

packagekit can fail with "Cannot refresh cache whilst offline" on Ubuntu/Debian #930

Description

@jordansissel

Some error response from packagekit causes mgmt to get stuck, I think?
This particular use cases relies on --converged-timeout 10, so my expectation is that it exits shortly after or retries having not satisfied the pkg[] resource bits.

00:53:16 engine: pkg[qemu-guest-agent]: Apply: pkg[autogroup:(qemu-guest-agent,ptyxis,openssh-server,gnome,gdm3,accountsservice)]
00:53:16 engine: pkg[qemu-guest-agent]: Set(installed): pkg[autogroup:(qemu-guest-agent,accountsservice,gdm3,gnome,openssh-server,ptyxis)]...
00:53:16 engine: pkg[qemu-guest-agent]: Error: error during Process(): can't refresh cache: packagekit error 2: Cannot refresh cache whilst offline

<and then all that remains is an endless void of waiting>

I waited a few minutes before interrupting mgmt.

This error, to me, indicates something wrong with packagekit[1]. However, I don't think mgmt should get stuck. I can't say I know what the correct behavior is, though, maybe aborting the pkg step and trying again?

[1] Why does packagekit think it is offline? I dunnno. Modern linux is fascinatingly complex in perhaps unnecessary ways. The machine is, in fact, not "offline" so I don't know what this means. I'll do separate packagekit reserach outside the scope of this isue to try and figure out why packagekit is being foolish.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions