Error map
error: externally-managed-environment (Debian/Ubuntu pip) error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz
Linux · layer 6, Platform & cloud
Centre: this error. First ring: errors it is linked with (10). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (10)
Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...')))
The `requests` call failed during the TLS step and exhausted its retries; the real reason is in the nested SSLError text.
Python: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396)
The server closed the TLS connection abruptly without a proper shutdown, usually because it rejected the handshake or dropped the…
E: Unable to locate package (apt / apt-get install)
apt can’t find the package name in its package lists — the lists are stale, the repository isn’t enabled, or the name is wrong fo…
error: externally-managed-environment
Your system Python (Debian 12+, Ubuntu 23.04+, Homebrew) refuses pip installs into the OS-managed environment (PEP 668).
requests SSLError: CERTIFICATE_VERIFY_FAILED because certifi is outdated (missing a new root CA)
An old `certifi` bundle doesn't contain the root that now signs the site's certificate.
Python/OpenSSL: SSLV3_ALERT_HANDSHAKE_FAILURE or CA_MD_TOO_WEAK — OpenSSL security level 2 rejects legacy servers
A modern Python/OpenSSL (Debian/Ubuntu security level 2) refuses weak keys, SHA-1 or small DH from an older server.
Python on macOS: SSL: CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate (run Install Certificates.command)
The python.org installer doesn't use the system keychain, so HTTPS requests fail until you install its CA bundle.
- hook id: end-of-file-fixer - exit code: 1 - files were modified by this hook
A pre-commit hook auto-fixed files and aborted the commit.
ERROR: The Python zlib extension was not compiled. Missing the zlib?
pyenv can't compile Python without development libraries.
gyp ERR! find Python Python is not set from command line or npm configuration
node-gyp can't locate a compatible Python.
Two steps away (30)
SSL: CERTIFICATE_VERIFY_FAILED / unable to get local issuer certificate
The client couldn’t verify the server’s TLS certificate chain, so it refused the HTTPS connection.
Cloudflare Error 1003: Direct IP access not allowed
The request went to a Cloudflare IP address directly (or with a Host header for a domain not on Cloudflare).
Cloudflare Error 1013: HTTP hostname and TLS SNI hostname mismatch
The TLS SNI (the hostname used for the certificate) differs from the HTTP Host header in the same request.
cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to host:443
The TLS handshake failed — protocol/cipher mismatch, a proxy interfering, or the server closed the connection.
OpenSSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (SSL alert number 40)
The server aborted the handshake with alert 40 — no acceptable parameters (cipher, signature algorithm, client certificate or SNI…
OpenSSL: SSL alert number 112 — tlsv1 unrecognized name
The server did not recognise the hostname sent in SNI and rejected the handshake (or an alert/warning is logged).
E: Could not get lock /var/lib/dpkg/lock-frontend — is another process using it?
apt can’t run because another package operation (often automatic updates) holds the dpkg lock.
failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1
A RUN step in your Dockerfile failed. The real error is printed in the lines just above this message.
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package’s install/configure script failed, so dpkg aborted. The real error is a few lines above this message.
ModuleNotFoundError: No module named 'x'
Python can’t find the module you import — it isn’t installed in the interpreter/virtualenv that’s running, or the import path is…
AttributeError: 'X' object has no attribute 'y'
You accessed an attribute or method that doesn’t exist on that object type.
ConnectionRefusedError: [Errno 111] Connection refused
Nothing is listening on the host/port Python tried to connect to.
Python: smtplib.SMTPServerDisconnected: Connection unexpectedly closed
The server closed the connection before your script finished the SMTP conversation — a timeout, blocked IP, TLS mismatch or rate…
Python: smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted')
`smtp.login()` was rejected by the server — wrong credentials, wrong password type, or authentication not allowed for that accoun…
Python: ConnectionRefusedError: [Errno 111] Connection refused — smtplib connect to localhost:25
Nothing is listening on the SMTP host and port your script connected to — often `localhost:25` because no host was given and no l…
OpenSSL: error:num=20:unable to get local issuer certificate / SSL: CERTIFICATE_VERIFY_FAILED
The client could not build a chain from the server's certificate to a CA it trusts — the issuer is missing locally or the server…
OpenSSL: error:0A00018E:SSL routines::ca md too weak / error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
OpenSSL's security level rejected a certificate signed with a weak hash (MD5/SHA-1) or with a small key (RSA < 2048).
unsafe legacy renegotiation disabled (OpenSSL 3) when connecting to an old server
OpenSSL 3 refuses to connect to servers that lack RFC 5746 secure renegotiation support.
Let's Encrypt: Fetching http://example.com/.well-known/acme-challenge/token: Timeout during connect (likely firewall problem)
The ACME validation server could not reach your server on port 80 within the timeout.
CloudFront can't use my ACM certificate: it must be requested in us-east-1 (N. Virginia)
The certificate you want to attach to CloudFront isn't listed, because it was created in another region.
Apple Mail: Cannot Send Message — the SMTP server connection failed / password incorrect
Apple Mail can't use the outgoing server for an account, often because of a stale password, wrong SMTP entry or app-specific pass…
Certbot renewed the certificate but the server still serves the old one (deploy hook / reload failed)
Renewal succeeded on disk, but nginx/Apache wasn't reloaded, so clients keep seeing the expiring certificate.
husky - pre-commit hook exited with code 1 (error)
A pre-commit hook returned a failure so the commit was stopped.
hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable.
Git skipped your hook because it lacks exec permission.
COPY failed: file not found in build context / "/app/x": not found
The Dockerfile COPY refers to a path outside the build context, excluded by .dockerignore, or relative to the wrong directory.
Error: error:0308010C:digital envelope routines::unsupported
An old build tool (webpack 4, old react-scripts) uses a hash algorithm that OpenSSL 3 in Node 17+ disables.
Error: @prisma/client did not initialize yet. Please run "prisma generate"
The generated Prisma Client is missing or out of date.
macOS: “App” is damaged and can’t be opened. You should move it to the Trash.
Gatekeeper blocked an app that isn’t properly signed/notarized or was modified after download (quarantine attribute).
Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app'
A cask install failed because the app is already installed manually (or a leftover exists).
macOS (Apple Silicon): zsh: bad CPU type in executable: ./tool
You ran an Intel (x86_64) program on an Apple Silicon Mac without Rosetta 2 (or an arm64 binary on an Intel Mac).