unable to get repo-key in proxy-only environment

Bug #1996042 reported by Daniel Krambrock
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned

Bug Description

In ubuntu 22.04 autoinstall I'm trying to add an extra apt-repo with:

```
  apt:
    sources:
      reponame:
        source: "deb http://apt.puppetlabs.com $RELEASE puppet7"
        keyid: D681 1ED3 ADEE B844 1AF5 AA8F 4528 B6CD 9E61 EF26
```

curtin is trying to get the key from keyerver.ubuntu.com with gpg:

```
gpg --keyserver keyserver.ubuntu.com --recv "D681 1ED3 ADEE B844 1AF5 AA8F 4528 B6CD 9E61 EF26"
```

Since I'm installing in a proxy-only environment this fails with

```
gpg: keyserver receive failed: Connection timed out
```

The problem is that the proxy is not passed over to gpg like

```
gpg --keyserver keyserver.ubuntu.com --keyserver-options http-proxy="http://proxy.domain.de:3128" --recv "D681 1ED3 ADEE B844 1AF5 AA8F 4528 B6CD 9E61 EF26"
```

in gpg.py. Therefor install fails in curtin command apt-config.

description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.