[Bug 1963725] Re: subiquity curtin apt-get update fails

L1 1963725 at bugs.launchpad.net
Thu Apr 13 15:47:18 UTC 2023


Dunno if it helps, but I'm trying to create a custom autoinstall ubuntu
22.04.2 image and I'm experiencing this error. Inside the shell, by
running

curtin in-target -t ... -- apt-get update

I get a file not found and permission denied errors on
/cdrom/dists/jammy Packages files. When I look at the CDROM content
there is only the Packages.gz file and the apt user is not allowed to
read the file anyway.

I'm fixing it (brutally) by unpacking the Packages.gz files and by
allowing _apt to read it

```
for f in $BUILD/dists/jammy/*/*/Packages.gz; do
  if [[ ! -f ${f/.gz/} ]]; then
    gunzip -k $f
    chmod o+r $f
    chmod o+r ${f/.gz/}
  fi
done
```

The custom ISO is built with the parameters obtained by running xorriso
-indev ubuntu-22.04.2-live-server-amd64.iso report_el_torito as_mkisofs.
The autoinstall user-data doesn't configure apt in any way.

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

Title:
  subiquity curtin apt-get update fails

Status in subiquity package in Ubuntu:
  Triaged

Bug description:
  CI/CD pipeline was functional until I switch over to using 20.04.4
  ISO. When it gets to Curtin in-target apt-get update, it crashes with
  error code 100. Google has not been useful in providing an answer. I
  checked NTP on the ESXi host, and it is synced. Attached is the
  subiquity crash report.

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




More information about the foundations-bugs mailing list