[Bug 1963725] Re: subiquity curtin apt-get update fails
Chris Bianchetti
1963725 at bugs.launchpad.net
Fri May 3 23:56:37 UTC 2024
I was stuck on this for awhile with 22.04.4 but it turned out to be
permissions issue on my xorriso customized image iso. Here's how I was
able to clearly see what was causing the error:
For me the error was:
2024-05-03 23:38:22,203 ERROR root:30 finish: subiquity/Install/install/configure_apt: FAIL: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2237', '--property', 'PrivateMounts=yes', '--setenv', 'PATH=/snap/subiquity/5495/bin:/snap/subiquity/5495/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/5495/bin:/snap/subiquity/5495/sbin', '--setenv', 'PYTHONPATH=:/sn
ap/subiquity/5495/lib/python3.10/site-packages', '--setenv', 'PYTHON=/snap/subiquity/5495/usr/bin/python3.10', '--setenv', 'SNAP=/snap/subiquity/5495', '--', '/s
nap/subiquity/5495/usr/bin/python3.10', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_
event.2237.3"}}', 'in-target', '-t', '/tmp/tmpekbt6rtp/mount', '--', 'apt-get', 'update']' returned non-zero exit status 100.
Which translates to this command:
systemd-run \
--wait \
--same-dir \
--property SyslogIdentifier=subiquity_log.2237 \
--property PrivateMounts=yes \
--setenv PATH=/snap/subiquity/5495/bin:/snap/subiquity/5495/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/5495/bin:/snap/subiquity/5495/sbin \
--setenv PYTHONPATH=:/snap/subiquity/5495/lib/python3.10/site-packages \
--setenv PYTHON=/snap/subiquity/5495/usr/bin/python3.10 \
--setenv SNAP=/snap/subiquity/5495 \
-- \
/snap/subiquity/5495/usr/bin/python3.10 \
-m curtin \
--showtrace \
-vvv \
--set json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2237.3"}} \
in-target \
-t /tmp/tmpekbt6rtp/mount \
-- \
apt-get update
I took the "--set json:reporting={"subiquity": {"type": "journald",
"identifier": "curtin_event.2237.3"}} \" part out and ran it.
I get this:
Running as unit: run-u40.service
Finished with result: exit-code
Main processes terminated with: code=exited/status=100
Service runtime: 2.153s
CPU time consumed: 1.892s
I run systemctl status run-u40.service and which shows the unit file
"/run/systemd/transient/run-u40.service"
Unit file:
# This is a transient unit file, created programmatically via the systemd API. Do not edit.
[Unit]
Description=/snap/subiquity/5495/usr/bin/python3.10 -m curtin --showtrace -vvv in-target -t /tmp/tmpekbt6rtp/mount -- apt-get update
[Service]
SyslogIdentifier=subiquity_log.2237
PrivateMounts=yes
WorkingDirectory=/root
Environment="PATH=/snap/subiquity/5495/bin:/snap/subiquity/5495/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/5495/bin:/snap/subiquity/5495/sbin" "PYTHONPATH=:/snap/subiquity/5495/lib/python3.10/site-packages" "PYTHON=/snap/subiquity/5495/usr/bin/python3.10" "SNAP=/snap/subiquity/5495"
ExecStart=
ExecStart="/snap/subiquity/5495/usr/bin/python3.10" "-m" "curtin" "--showtrace" "-vvv" "in-target" "-t" "/tmp/tmpekbt6rtp/mount" "--" "apt-get" "update"
Set up environment:
export PATH=/snap/subiquity/5495/bin:/snap/subiquity/5495/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/5495/bin:/snap/subiquity/5495/sbin
export PYTHONPATH=:/snap/subiquity/5495/lib/python3.10/site-packages
export PYTHON=/snap/subiquity/5495/usr/bin/python3.10
export SNAP=/snap/subiquity/5495
Now run the command to see the error:
/snap/subiquity/5495/usr/bin/python3.10 -m curtin --showtrace -vvv in-target -t /tmp/tmpekbt6rtp/mount -- apt-get update
--
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