If a package is unavailable the apt layer retries forever
Bug #1705337 reported by
David Lawson
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apt layer |
Triaged
|
High
|
Unassigned | ||
Charm Helpers |
New
|
Undecided
|
Unassigned |
Bug Description
If a package doesn't exist, for example because it's not available on a particular architecture, the apt layer sees the failure as a failure to acquire the dpkg lock and retries forever, leading to a permanently running hook, effectively. It appears to time out after five minutes, but is invoked with update-status which is run once a minute or so it appears, leading to a situation where it falls further and further behind on processing its hooks. I eventually got it to uninstall after a substantial struggle.
https:/
Can we detect whether a package is unavailable and exit cleanly there?
Related branches
lp:~stub/charm-helpers/bug-1705337-lower-apt-retries
- Alex Kavanagh (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedcharmhelpers/fetch/ubuntu.py (+1/-1)
To post a comment you must log in.
Speaking of invoked during update-status hooks, any chance the apt layer can be updated to do nothing on update-status?
Even without any packages to install, reading the apt cache is quite I/O intensive. We've seen this with non-reactive charms having multiple subordinates firing at the same time.