I did a git bisect on the source and it identified this upstream commit
as being the potential culprit: https://salsa.debian.org/apt-
team/apt/commit/1adcf56bec7d2127d83aa423916639740fe8e586

I can confirm that this is the culprit by testing the output of `apt-
cdrom add` before and after reverting that specific commit from the tip
of master.

On further analysis, the following diff is the problematic one:
-      for (std::vector<APT::Configuration::Compressor>::const_iterator c = 
compressor.begin();
-          c != compressor.end(); ++c)
+      for (auto const &ext: APT::Configuration::getCompressorExtensions())
      {
-        if (stat((file + c->Extension).c_str(), &Buf) != 0)
+        if (stat((file + ext).c_str(), &Buf) != 0)

Reverting that diff and that diff only fixes `apt-cdrom add`.

Julian, could you take a look at why this is problematic? I'm afraid I
don't have the expertise to proceed.

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

Title:
  18.04 daily installer fails missing kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1746807/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to