Paperless-ngx - in line 61: exit code 0: while executing command $STD pip install -r requirements.txt #1734

Closed
opened 2025-11-20 05:16:20 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @schneider-de-com on GitHub (Aug 19, 2025).

Have you read and understood the above guidelines?

yes

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

Paperless-ngx

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

update and bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)"

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

The error occurs because the system Python environment is marked as externally managed (PEP 668), which blocks pip install from modifying system packages.

🔄 Steps to reproduce the issue.

open lxc container

update

and

open lxc container
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)"

I then checked whether the system was up to date using: apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y

But even after that I got the same error

Paste the full error output (if available).

____                        __                                     

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

✔️ Stopped all Paperless-ngx Services
Updating to v2.18.1
[notice] A new release of pip is available: 24.3.1 -> 25.2
[notice] To update, run: python3 -m pip install --upgrade pip
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.
hint: See PEP 668 for the detailed specification.

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

🖼️ Additional context (optional).

apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Originally created by @schneider-de-com on GitHub (Aug 19, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Paperless-ngx ### 📂 What was the exact command used to execute the script? update and bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)" ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. The error occurs because the system Python environment is marked as externally managed (PEP 668), which blocks pip install from modifying system packages. ### 🔄 Steps to reproduce the issue. open lxc container # update and open lxc container bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)" I then checked whether the system was up to date using: apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y But even after that I got the same error ### ❌ Paste the full error output (if available). ____ __ / __ \____ _____ ___ _____/ /__ __________ ____ ____ __ __ / /_/ / __ `/ __ \/ _ \/ ___/ / _ \/ ___/ ___/_____/ __ \/ __ `/ |/_/ / ____/ /_/ / /_/ / __/ / / / __(__ |__ )_____/ / / / /_/ /> < /_/ \__,_/ .___/\___/_/ /_/\___/____/____/ /_/ /_/\__, /_/|_| /_/ /____/ ✔️ Stopped all Paperless-ngx Services ⏳ Updating to v2.18.1 [notice] A new release of pip is available: 24.3.1 -> 25.2 [notice] To update, run: python3 -m pip install --upgrade pip 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. hint: See PEP 668 for the detailed specification. [ERROR] in line 61: exit code 0: while executing command $STD pip install -r requirements.txt ### 🖼️ Additional context (optional). apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://security.debian.org bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
saavagebueno added the bug label 2025-11-20 05:16:20 -05:00
Author
Owner

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

#555

@MickLesk commented on GitHub (Aug 19, 2025): #555
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1734