[Bug 1891599] Re: installation stopped by an random exception from mark_install() in Cache class of python3-apt

Yuan-Chen Cheng 1891599 at bugs.launchpad.net
Mon Aug 31 07:55:43 UTC 2020


https://git.launchpad.net/ubuntu/+source/ubiquity/tree/ubiquity/install_misc.py?h=ubuntu
/focal-updates#n534

** Changed in: oem-priority
     Assignee: Alex Tu (alextu) => Yuan-Chen Cheng (ycheng-twn)

** Description changed:

- An exception is randomly happening while ubiquity calling cachedpkg.mark_install() [1].
- cachedpkg.mark_install() came from Cache class of python3-apt package.
+ This happen in oem project because we have lots pkg to upgrade during
+ installtion becuase the design of factory process need it.
  
- It looks a timing issue while ubiquity calling cachedpkg.mark_install(),
- and a retry can workaround it.
+ As package list have certain dependency, and the the order that we get
+ the pkg from the python set object is not good for underlying apt
+ engine, then exception will raise.
  
- The reproduce rate is be about 1/15.
- 
- Looks there're 2 things can be improved.
- 1. improve the fault tolerance of Ubiquity while it calling external library.
- 2. impvove the fault tolerance of python3-apt.
- 
- [1]
- https://git.launchpad.net/ubuntu/+source/ubiquity/tree/ubiquity/install_misc.py?h=ubuntu
- /focal-updates#n534
+ A workaround fix is move those failed to next iteration and the fix test
+ pass as we try it in installation for like 50 times.

** Description changed:

  This happen in oem project because we have lots pkg to upgrade during
- installtion becuase the design of factory process need it.
+ installation because the design of factory process need it.
  
  As package list have certain dependency, and the the order that we get
  the pkg from the python set object is not good for underlying apt
  engine, then exception will raise.
  
  A workaround fix is move those failed to next iteration and the fix test
  pass as we try it in installation for like 50 times.

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

Title:
  installation stopped by an random exception from mark_install() in
  Cache class of python3-apt

Status in OEM Priority Project:
  New
Status in ubiquity package in Ubuntu:
  New

Bug description:
  This happen in oem project because we have lots pkg to upgrade during
  installation because the design of factory process need it.

  As package list have certain dependency, and the the order that we get
  the pkg from the python set object is not good for underlying apt
  engine, then exception will raise.

  A workaround fix is move those failed to next iteration and the fix
  test pass as we try it in installation for like 50 times.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1891599/+subscriptions



More information about the foundations-bugs mailing list