[Bug 1897778] [NEW] DistUpgradeController to release apt lock during PostInstallScripts

Chad Smith 1897778 at bugs.launchpad.net
Tue Sep 29 17:33:12 UTC 2020


Public bug reported:

In order for custom PostInstallScript to add/remove apt packages and
call apt update, DistUpgradecontroller needs to release the apt cache
directory lock before that stage.

If the lock is still in place,
DistUpgradeController.runPostUpgradeScripts hits errors such as:


E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Undecided
     Assignee: Chad Smith (chad.smith)
         Status: In Progress

** Changed in: ubuntu-release-upgrader (Ubuntu)
     Assignee: (unassigned) => Chad Smith (chad.smith)

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1897778

Title:
  DistUpgradeController to release apt lock during PostInstallScripts

Status in ubuntu-release-upgrader package in Ubuntu:
  In Progress

Bug description:
  In order for custom PostInstallScript to add/remove apt packages and
  call apt update, DistUpgradecontroller needs to release the apt cache
  directory lock before that stage.

  If the lock is still in place,
  DistUpgradeController.runPostUpgradeScripts hits errors such as:

  
  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
  E: Unable to lock directory /var/lib/apt/lists/

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1897778/+subscriptions



More information about the foundations-bugs mailing list