Skip to content

Add python3-venv to autoinstall packages#56

Merged
peterjaap merged 2 commits intomainfrom
copilot/update-autoinstall-yaml
Mar 13, 2026
Merged

Add python3-venv to autoinstall packages#56
peterjaap merged 2 commits intomainfrom
copilot/update-autoinstall-yaml

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

The late-commands section creates a Python venv via python3 -m venv, but python3-venv was absent from the packages list, causing installation failure with ensurepip is not available.

Change

  • Added python3-venv to the packages list alongside python3-pip and python3-setuptools
Original prompt

This section details on the original issue you should resolve

<issue_title>Autoinstall yaml needs an update</issue_title>
<issue_description>This is a log generated during the ubuntu instal, it seems python3-venv is missing from the .

Last part of the error log:

Mar 13 12:32:06 ubuntu subiquity_log.7294[73540]: * Get stickers, t-shirts, coffee mugs and more: https://commitgoods.com/collections/oh-my-zsh
Mar 13 12:32:06 ubuntu subiquity_log.7294[73540]: Run zsh to try it out.
Mar 13 12:32:06 ubuntu subiquity_event.7294[7294]: subiquity/Late/run/command_10: curtin in-target --target=/target -- bash -c "wget -qO- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/ tools/install.sh | bash"
Mar 13 12:32:07 ubuntu subiquity_event.7294[7294]: subiquity/Late/run/command_11: curtin in-target --target=/target -- bash -c "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/ install.sh | bash"
Mar 13 12:32:07 ubuntu subiquity_log.7294[7294]: running curtin in-target --target=/target -- bash -c "wget -qO-  https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash"
Mar 13 12:32:07 ubuntu subiquity_log.7294[73612]: => Downloading nvm from git to '/.nvm'
Mar 13 12:32:07 ubuntu subiquity_log.7294[73612]: [3B blob data]
Mar 13 12:32:07 ubuntu subiquity_log.7294[73619]: Cloning into '/.nvm'...
Mar 13 12:32:09 ubuntu subiquity_log.7294[73656]: * (HEAD detached at FETCH_HEAD)
Mar 13 12:32:09 ubuntu subiquity_log.7294[73656]: master
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: => Compressing and cleaning up git repository
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: => Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zprofile, ~/.zshrc, and ~/.profile.
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: => Create one of them and run this script again
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: OR
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: => Append the following lines to the correct file yourself:
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: export NVM_DIR="$HOME/.nvm"
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" #This loads nvm
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: => Close and reopen your terminal to start using nvm or run the following to use it now:
Mar 13 12:32:09 ubuntu subiquity_log.7294[73612]: [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" #This loads nvm
Mar 13 12:32:09 ubuntu subiquity_event.7294[7294]: subiquity/Late/run/command_11: curtin in-target --target=/target -- bash -c "wget -qO https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/ install.sh | bash"
Mar 13 12:32:09 ubuntu subiquity_event.7294[7294]: subiquity/Late/run/command_12: curtin in-target --target=/target -- bash -c ' python3 -m venv /target/root/b2-venv && source /target/root/b2-venv/bin/activate && pip install --upgrade pip && pip install b2'
Mar 13 12:32:09 ubuntu subiquity_log.7294[7294]: running curtin in-target --target=/target -- bash -c ' python3 -m venv /target/root/b2-venv && source /target/root/b2-venv/bin/activate && pip install --upgrade pip && pip install b2'
Mar 13 12:32:09 ubuntu subiquity_log.7294[73719]: The virtual environment was not created successfully because ensurepip is not
Mar 13 12:32:09 ubuntu subiquity_log.7294[73719]: available. On Debian/Ubuntu systems, you need to install the python3-venv
Mar 13 12:32:09 ubuntu subiquity_log.7294[73719]: package using the following command.
Mar 13 12:32:09 ubuntu subiquity_log.7294[73719]: apt install python3.12-venv
Mar 13 12:32:09 ubuntu subiquity_log.7294[73719]: You may need to use sudo with that command. After installing the python3-venv
Mar 13 12:32:09 ubuntu subiquity_log.7294[73719]: package, recreate your virtual environment.
Mar 13 12:32:09 ubuntu subiquity_log.7294[73719]: Failing command: /target/root/b2-venv/bin/python3
Mar 13 12:32:10 ubuntu subiquity_event.7294[7294]: subiquity/Late/run/command_12: Command ['systemd-cat', '--level-prefix=false', '--identifier=subiquity_log.7294', 'sh', '-c', "curtin in- target --target=/target -- bash -c ' python3 -m venv /target/root/b2-venv && source /target/root/b2-
venv/bin/activate && pip install --upgrade pip && pip install b2'"] returned non-zero exit status 1. Mar 13 12:32:10 ubuntu subiquity_event.7294[7294]: subiquity/Late/run/command_12: Command ['systemd-cat', '--level-prefix=false', '--identifier=subiquity_log.7294', 'sh', '-c', "curtin in-target --target=/target -- bash -c ' python3 -m venv /target/root/b2-venv && source /target/root/b2- venv/bin/activate && pip install --upgrade pip && pip install b2'"] returned non-zero exit status 1.
Mar 13 12:32:10 ubuntu subiquity_event. 7294[7294]:
```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: peterjaap <431360+peterjaap@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix autoinstall yaml to include python3-venv Add python3-venv to autoinstall packages Mar 13, 2026
Copilot AI requested a review from peterjaap March 13, 2026 14:23
@peterjaap peterjaap marked this pull request as ready for review March 13, 2026 14:23
@peterjaap peterjaap merged commit d0a578d into main Mar 13, 2026
0 of 2 checks passed
@peterjaap peterjaap deleted the copilot/update-autoinstall-yaml branch March 13, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autoinstall yaml needs an update

2 participants