error: externally-managed-environment trying update OpenWebUI LXC #1382

Closed
opened 2026-02-05 00:35:08 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Anisotropic on GitHub (Aug 2, 2025).

Have you read and understood the above guidelines?

YES

📜 What is the name of the script you are using?

OpenWebUi

📂 What was the exact command used to execute the script?

"update" inside already created LXC container

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

Update fails with following error:

Run npm run preview to preview your production build locally.

Using @sveltejs/adapter-static
Wrote site to "build"
✔ done
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

[ERROR] in line 64: exit code 0: while executing command $STD pip install -r requirements.txt -U

🔄 Steps to reproduce the issue.

run "update" in already created LXC container

Paste the full error output (if available).

Run npm run preview to preview your production build locally.

Using @sveltejs/adapter-static
Wrote site to "build"
✔ done
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

[ERROR] in line 64: exit code 0: while executing command $STD pip install -r requirements.txt -U

🖼️ Additional context (optional).

LXC was created a while ago. Successfully updated several times before.

Originally created by @Anisotropic on GitHub (Aug 2, 2025). ### ✅ Have you read and understood the above guidelines? YES ### 📜 What is the name of the script you are using? OpenWebUi ### 📂 What was the exact command used to execute the script? "update" inside already created LXC container ### ⚙️ What settings are you using? - [ ] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. Update fails with following error: Run npm run preview to preview your production build locally. > Using @sveltejs/adapter-static Wrote site to "build" ✔ done error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. [ERROR] in line 64: exit code 0: while executing command $STD pip install -r requirements.txt -U ### 🔄 Steps to reproduce the issue. run "update" in already created LXC container ### ❌ Paste the full error output (if available). Run npm run preview to preview your production build locally. > Using @sveltejs/adapter-static Wrote site to "build" ✔ done error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. [ERROR] in line 64: exit code 0: while executing command $STD pip install -r requirements.txt -U ### 🖼️ Additional context (optional). LXC was created a while ago. Successfully updated several times before.
OVERLORD added the bug label 2026-02-05 00:35:08 +03:00
Author
Owner

@MickLesk commented on GitHub (Aug 2, 2025):

Read #555 - thats an Debian Special. Without UV Migration its Not other possible

@MickLesk commented on GitHub (Aug 2, 2025): Read #555 - thats an Debian Special. Without UV Migration its Not other possible
Author
Owner

@Anisotropic commented on GitHub (Aug 2, 2025):

I was wrong about my linux. I have ubuntu in LXC. But anyway, cause is the same. Removing /usr/lib/python3.*/EXTERNALLY-MANAGED helped.
Thanks @MickLesk

@Anisotropic commented on GitHub (Aug 2, 2025): I was wrong about my linux. I have ubuntu in LXC. But anyway, cause is the same. Removing /usr/lib/python3.*/EXTERNALLY-MANAGED helped. Thanks @MickLesk
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1382