community-scripts / ProxmoxVE

Proxmox VE Helper-Scripts (Community Edition)
https://Helper-Scripts.com
MIT License
3.73k stars 207 forks source link

Error attempting to update Nginx Proxy Manager #21

Closed ajtatum closed 1 week ago

ajtatum commented 1 week ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

I tried updating an existing NPM container from tteck using the command bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/nginxproxymanager.sh)" but when it runs, I get the following:

 ✓ Stopped Services
 ✓ Cleaned Old Files
 ✓ Downloaded NPM v2.12.1
 \ Setting up Enviroment   
[ERROR] in line 137: exit code 0: while executing command python3 -m pip install --no-cache-dir certbot-dns-cloudflare &> /dev/null

When I try to run the command python3 -m pip install --no-cache-dir certbot-dns-cloudflare I get the following error message:

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.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.

This makes the LXC unusable and I have to revert to a backup.

What settings are you currently utilizing?

Advanced Settings

Which Linux distribution are you employing?

Debian 12

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

No response

Please provide detailed steps to reproduce the issue.

No response

Mellowlynx commented 1 week ago

7