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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1897778

Title:
  DistUpgradeController to release apt lock during PostInstallScripts

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

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

Reply via email to