[GH-ISSUE #3732] NPM Update error #773

Closed
opened 2026-02-26 12:46:36 +03:00 by kerem · 2 comments
Owner

Originally created by @0xRedd on GitHub (Apr 7, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/3732

Have you read and understood the above guidelines?

yes

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

Nginx Proxy Manager

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

update

📝 Provide a clear and concise description of the issue.

update failed after ✔️ Downloaded NPM v2.12.3

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Step 1: Login to LXC console
Step 2: type "update" then enter
Step 3: choose option 2

Paste the full error output (if available).

_   __      _               ____                           __  ___

/ | / /___ ()___ _ __ / __ _________ _ ____ __ / |/ /___ _____ ____ _____ ____ _____
/ |/ / __ / / __ \| |/_/ / /_/ / ___/ __ \| |/_/ / / / / /|_/ / __ / __ / __ / __ / _ / /
/ /| / /
/ / / / / /> < / / / / // /> </ // / / / / / // / / / / // / /
/ / __/ /
/
/ |/_, /// ///|| // // _//||_, / // //_,// //_,/_, /___//
/
/ // /___/

✔️ Stopped Services
✔️ Cleaned Old Files
✔️ Downloaded NPM v2.12.3
⠹ Setting up Enviromenterror: 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.11/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.
⠼ Setting up Enviroment
[ERROR] in line 102: exit code 0: while executing command $STD python3 -m pip install --no-cache-dir certbot-dns-cloudflare

🖼️ Additional context (optional).

No response

Originally created by @0xRedd on GitHub (Apr 7, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/3732 ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Nginx Proxy Manager ### 📂 What was the exact command used to execute the script? update ### 📝 Provide a clear and concise description of the issue. update failed after ✔️ Downloaded NPM v2.12.3 ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Step 1: Login to LXC console Step 2: type "update" then enter Step 3: choose option 2 ### ❌ Paste the full error output (if available). _ __ _ ____ __ ___ / | / /___ _(_)___ _ __ / __ \_________ _ ____ __ / |/ /___ _____ ____ _____ ____ _____ / |/ / __ `/ / __ \| |/_/ / /_/ / ___/ __ \| |/_/ / / / / /|_/ / __ `/ __ \/ __ `/ __ `/ _ \/ ___/ / /| / /_/ / / / / /> < / ____/ / / /_/ /> </ /_/ / / / / / /_/ / / / / /_/ / /_/ / __/ / /_/ |_/\__, /_/_/ /_/_/|_| /_/ /_/ \____/_/|_|\__, / /_/ /_/\__,_/_/ /_/\__,_/\__, /\___/_/ /____/ /____/ /____/ ✔️ Stopped Services ✔️ Cleaned Old Files ✔️ Downloaded NPM v2.12.3 ⠹ Setting up Enviromenterror: 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.11/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. ⠼ Setting up Enviroment [ERROR] in line 102: exit code 0: while executing command $STD python3 -m pip install --no-cache-dir certbot-dns-cloudflare ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:46:36 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@michelroegl-brunner commented on GitHub (Apr 8, 2025):

Search in discussions for python externaly managed for the solution.

<!-- gh-comment-id:2785272925 --> @michelroegl-brunner commented on GitHub (Apr 8, 2025): Search in discussions for python externaly managed for the solution.
Author
Owner

@fgordilloz commented on GitHub (Jul 8, 2025):

One solution is:

rm /usr/lib/python3.*/EXTERNALLY-MANAGED

and after that,

update

<!-- gh-comment-id:3049523485 --> @fgordilloz commented on GitHub (Jul 8, 2025): One solution is: # rm /usr/lib/python3.*/EXTERNALLY-MANAGED and after that, # update
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#773
No description provided.