Error map

[: too many arguments / unary operator expected line 8: [: too many arguments

Linux · layer 6, Platform & cloud

Open the full error page →

Centre: this error. First ring: errors it is linked with (7). 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.

[: too many arguments / unary operator expected — line 8: [: too many arguments (Linux)[: too many…E: Failed to fetch ... Hash Sum mismatch — E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/main/binary-amd64/Packages.gz Hash Sum mismatch Hashes of expected file: SHA256:... (Linux)E: Failed to fetch …syntax error: unexpected end of file (bash script) — script.sh: line 25: syntax error: unexpected end of file (Linux)syntax error: unexp…E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1234 (unattended-upgr) — E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1234 (unattended-upgr) (Linux)E: Could not get lo…bash: x: unbound variable (set -u) — script.sh: line 12: DB_HOST: unbound variable (Linux)bash: x: unbound va…The following packages have been kept back — The following packages have been kept back: linux-generic linux-headers-generic 0 upgraded, 0 newly installed (Linux)The following packa…bash: ./script.sh: Permission denied — bash: ./script.sh: Permission denied (Linux)bash: ./script.sh: …bash: ./script: /bin/bash^M: bad interpreter — -bash: ./script.sh: /usr/bin/python3\r: bad interpreter: No such file or directory (Linux)bash: ./script: /bi…Unable to locate package — E: Unable to locate package (apt / apt-get install) (Linux)Unable to locate pa…Sub-process /usr/bin/dpkg returned an error code (1) — E: Sub-process /usr/bin/dpkg returned an error code (1) (Linux)Sub-process /usr/bi…dpkg was interrupted — E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem (Linux)dpkg was interruptedunknown instruction — Dockerfile parse error line N: unknown instruction (Docker)unknown instructionnginx: [emerg] unexpected end of file, expecting ";" or "}" — Nginx: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/conf.d/site.conf:42 (Nginx / Apache)nginx: [emerg] unex…nginx: directive is not terminated by ";" — Nginx: nginx: [emerg] directive "proxy_pass" is not terminated by ";" in /etc/nginx/sites-enabled/app:15 (Nginx / Apache)nginx: directive is…dpkg lock — E: Could not get lock /var/lib/dpkg/lock-frontend — is another process using it? (Linux)dpkg lockNO_PUBKEY — The following signatures couldn't be verified because the public key is not available: NO_PUBKEY (Linux)NO_PUBKEYRepository does not have a Release file — E: The repository '...' does not have a Release file (Linux)Repository does not…held broken packages — Unmet dependencies / E: Unable to correct problems, you have held broken packages (Linux)held broken packageserror: no such partition. Entering rescue mode... (grub) — error: no such partition. Entering rescue mode... grub rescue> (Linux)error: no such part…E: Release file is not valid yet (invalid for another 2h) — E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 2h 15min). Updates for this repository will not be applied. (Linux)E: Release file is …daemon — Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (Docker)daemonsudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoersdata directory permissions — FATAL: data directory "/var/lib/postgresql/data" has invalid permissions — Permissions should be u=rwx (0700) or u=rwx,g=rx (0750). (PostgreSQL)data directory perm…cannot execute binary file — cannot execute binary file: Exec format error (Linux)cannot execute bina…bad end line — PEM routines: bad end line / no start line — Windows CRLF line endings or truncated PEM file (SSL / TLS)bad end line/bin/bash^M: bad interpreter — /usr/bin/env: 'bash\r': No such file or directory (Git)/bin/bash^M: bad in…

Directly related (7)

Two steps away (18)

Unable to locate packageLinux

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…

Sub-process /usr/bin/dpkg returned an error code (1)Linux

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.

dpkg was interruptedLinux

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem

A previous package operation stopped halfway (closed terminal, reboot, power loss), and apt refuses to continue until it’s finish…

unknown instructionDocker

Dockerfile parse error line N: unknown instruction

A line in the Dockerfile doesn’t start with a valid instruction — usually a broken line continuation or a typo.

nginx: [emerg] unexpected end of file, expecting ";" or "}"Nginx / Apache

Nginx: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/conf.d/site.conf:42

The config ends while a block or directive is still open — a missing `}` or `;`.

nginx: directive is not terminated by ";"Nginx / Apache

Nginx: nginx: [emerg] directive "proxy_pass" is not terminated by ";" in /etc/nginx/sites-enabled/app:15

A directive's arguments run into the next line because the `;` is missing (or a quote is unbalanced).

dpkg lockLinux

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.

NO_PUBKEYLinux

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

apt can’t verify a repository’s signature because the repo’s signing key isn’t installed (or has expired/rotated).

Repository does not have a Release fileLinux

E: The repository '...' does not have a Release file

apt can’t find index files for a source — the repo doesn’t support your Ubuntu/Debian release, the URL is wrong, or the release r…

held broken packagesLinux

Unmet dependencies / E: Unable to correct problems, you have held broken packages

apt can’t find a set of package versions that satisfies all dependencies — usually mixed repositories or a package from another r…

error: no such partition. Entering rescue mode... (grub)Linux

error: no such partition. Entering rescue mode... grub rescue>

GRUB can't find its boot partition.

E: Release file is not valid yet (invalid for another 2h)Linux

E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 2h 15min). Updates for this repository will not be applied.

The system clock is behind the repository's timestamp.

daemonDocker

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

The docker CLI can’t talk to the Docker engine — it isn’t running, or your user can’t access the socket.

sudoersLinux

user is not in the sudoers file. This incident will be reported.

Your account isn’t allowed to use sudo.

data directory permissionsPostgreSQL

FATAL: data directory "/var/lib/postgresql/data" has invalid permissions — Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).

PostgreSQL refuses to start because the data directory is too open or owned by the wrong user.

cannot execute binary fileLinux

cannot execute binary file: Exec format error

The program was built for a different CPU architecture or OS — e.g. an x86_64 binary on an ARM machine (Raspberry Pi, Graviton, A…

bad end lineSSL / TLS

PEM routines: bad end line / no start line — Windows CRLF line endings or truncated PEM file

OpenSSL can't parse a PEM file because it has Windows line endings, missing newlines or a damaged BEGIN/END line.

/bin/bash^M: bad interpreterGit

/usr/bin/env: 'bash\r': No such file or directory

A shell script has Windows line endings, so the interpreter name includes a carriage return.