[Bug 1991813] [NEW] Subiquity crashes when using local apt mirror created with aptly

Launchpad Bug Tracker 1991813 at bugs.launchpad.net
Tue Oct 11 14:29:34 UTC 2022


You have been subscribed to a public bug by Dan Bungert (dbungert):

Instead of simply mirroring an apt repository (such as what apt-mirror
does), aptly will download the debs, create its own structure and then
generate new Release/InRelease files and sign them with its own locally
generated gpg-key

If you use subiquity to install a server and points it to a local mirror
created with aptly, there's no way for you to provide the gpg key and
pass apt.conf.d arguments to let it install.

As a consequence, subiquity crashes when attempting to run "apt-get
update" in-target:

2022-10-05 13:50:18,233 ERROR root:39 finish:
subiquity/Install/install/configure_apt: FAIL: Command
'['/snap/subiquity/3119/usr/bin/python3.8', '-m', 'curtin', '--
showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type":
"journald", "identifier": "curtin_event.1978.2"}}', 'in-target', '-t',
'/tmp/tmpwpa9zwq_/mount', '--', 'apt-get', 'update']' returned non-zero
exit status 100.

More details:

https://pastebin.ubuntu.com/p/Mb7VDBk2WS/

Crash report:

https://paste.ubuntu.com/p/sWtkbdNsqt/

Attempt to manually run the command (trying to mimic what subiquity
does):

https://pastebin.ubuntu.com/p/PFytv3Ph5r/

Using the following information in a user-data through an automated
install will work:

apt:
  primary:
  - arches: [amd64, i386, default]
    uri: http://192.168.123.237/ubuntu
  security:
  - arches: [amd64, i386, default]
    uri: http://192.168.123.237/ubuntu
  geoip: false
  disable_suites: [backports, proposed]
  disable_components: [restricted, universe, multiverse]
  conf: | # APT config
    Acquire::Check-Valid-Until "false";
    Acquire::AllowInsecureRepositories "true";
    Acquire::AllowDowngradeToInsecureRepositories "true";
    Acquire::AllowReleaseInfoChange "true";
  sources:
    additional-repo.list:
      source: "deb http://192.168.123.237/ bionic main"
    localrepokey:
      key: | # full key as block

** Affects: subiquity
     Importance: Wishlist
         Status: Triaged

-- 
Subiquity crashes when using local apt mirror created with aptly
https://bugs.launchpad.net/bugs/1991813
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to the bug report.



More information about the foundations-bugs mailing list