[Bug 1871424] [NEW] oem-kernel-flavour install is incomplete offline
Dimitri John Ledkov
launchpad at surgut.co.uk
Tue Apr 7 15:21:48 UTC 2020
Public bug reported:
oem-kernel-flavour install is incomplete offline
if self.db.get('ubiquity/install_oem') == 'true':
try:
# If we installed any OEM metapackages, we should try to update /
# upgrade them to their versions in the OEM archive.
with open('/run/ubuntu-drivers-oem.autoinstall', 'r') as f:
oem_pkgs = set(f.read().splitlines())
for oem_pkg in oem_pkgs:
target_sources_list = self.target_file("etc/apt/sources.list.d/{}.list".format(oem_pkg))
if not os.path.exists(target_sources_list):
continue
try:
cache.update(sources_list=target_sources_list)
cache.open()
except FetchFailedException:
syslog.syslog("Failed to apt update {}".format(target_sources_list))
oem_pkgs.discard(oem_pkg)
self.do_install(oem_pkgs)
except FileNotFoundError:
pass
Code seems to emply to me that oem-meta package is removed from oem_pkgs
set, if we fail to update it. It also means that we do not call
"do_install()" on it, when update fails. I.e. offline?
** Affects: ubiquity (Ubuntu)
Importance: Undecided
Status: New
** Tags: oem-kernel-flavour
--
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/1871424
Title:
oem-kernel-flavour install is incomplete offline
Status in ubiquity package in Ubuntu:
New
Bug description:
oem-kernel-flavour install is incomplete offline
if self.db.get('ubiquity/install_oem') == 'true':
try:
# If we installed any OEM metapackages, we should try to update /
# upgrade them to their versions in the OEM archive.
with open('/run/ubuntu-drivers-oem.autoinstall', 'r') as f:
oem_pkgs = set(f.read().splitlines())
for oem_pkg in oem_pkgs:
target_sources_list = self.target_file("etc/apt/sources.list.d/{}.list".format(oem_pkg))
if not os.path.exists(target_sources_list):
continue
try:
cache.update(sources_list=target_sources_list)
cache.open()
except FetchFailedException:
syslog.syslog("Failed to apt update {}".format(target_sources_list))
oem_pkgs.discard(oem_pkg)
self.do_install(oem_pkgs)
except FileNotFoundError:
pass
Code seems to emply to me that oem-meta package is removed from
oem_pkgs set, if we fail to update it. It also means that we do not
call "do_install()" on it, when update fails. I.e. offline?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1871424/+subscriptions
More information about the foundations-bugs
mailing list