self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Unable to locate package jq

Open golimer opened this issue 1 month ago • 3 comments

Self-Hosted Version

25.10.0

CPU Architecture

x86_64

Docker Version

26.1.2

Docker Compose Version

2.27.0

Machine Specification

  • [x] My system meets the minimum system requirements of Sentry

Steps to Reproduce

when truing to run install.sh

Expected Result

to work

Actual Result

#5 [2/2] RUN set -x   && apt-get update   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq   && apt-get clean   && rm -rf /var/lib/apt/lists/*
#5 0.160 + apt-get update
#5 6.183 Ign:1 http://deb.debian.org/debian bookworm InRelease
#5 12.19 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#5 18.20 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#5 24.20 Ign:1 http://deb.debian.org/debian bookworm InRelease
#5 30.21 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#5 36.22 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#5 42.23 Ign:1 http://deb.debian.org/debian bookworm InRelease
#5 48.23 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#5 54.24 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#5 60.25 Err:1 http://deb.debian.org/debian bookworm InRelease
#5 60.25   Temporary failure resolving 'deb.debian.org'
#5 66.25 Err:2 http://deb.debian.org/debian bookworm-updates InRelease
#5 66.25   Temporary failure resolving 'deb.debian.org'
#5 72.26 Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
#5 72.26   Temporary failure resolving 'deb.debian.org'
#5 72.26 Reading package lists...
#5 72.27 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'deb.debian.org'
#5 72.27 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'deb.debian.org'
#5 72.27 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'deb.debian.org'
#5 72.27 W: Some index files failed to download. They have been ignored, or old ones used instead.
#5 72.27 + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
#5 72.27 Reading package lists...
#5 72.28 Building dependency tree...
#5 72.28 Reading state information...
#5 72.28 E: Unable to locate package jq
#5 ERROR: process "/bin/sh -c set -x   && apt-get update   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq   && apt-get clean   && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
 > [2/2] RUN set -x   && apt-get update   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq   && apt-get clean   && rm -rf /var/lib/apt/lists/*:
72.26 Reading package lists...
72.27 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'deb.debian.org'
72.27 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'deb.debian.org'
72.27 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'deb.debian.org'
72.27 W: Some index files failed to download. They have been ignored, or old ones used instead.
72.27 + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
72.27 Reading package lists...
72.28 Building dependency tree...
72.28 Reading state information...
72.28 E: Unable to locate package jq
------
Dockerfile:5
--------------------
   4 |
   5 | >>> RUN set -x \
   6 | >>>   && apt-get update \
   7 | >>>   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq \
   8 | >>>   && apt-get clean \
   9 | >>>   && rm -rf /var/lib/apt/lists/*
  10 |

Event ID

No response

golimer avatar Nov 17 '25 09:11 golimer

jq --version jq-1.6

golimer avatar Nov 17 '25 10:11 golimer

I had the same error running install.h It was because dns was not accessed properly inside docker. I configured it in /etc/docker/daemon.json and restarted the docker service It now works properly for me

nloudjani-gg avatar Nov 19 '25 10:11 nloudjani-gg

We don't use jq that's installed on your system. This means your server can't connect to deb.debian.org, as seen here:

72.27 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'deb.debian.org'
72.27 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'deb.debian.org'
72.27 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'deb.debian.org'
72.27 W: Some index files failed to download. They have been ignored, or old ones used instead.
72.27 + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
72.27 Reading package lists...
72.28 Building dependency tree...
72.28 Reading state information...
72.28 E: Unable to locate package jq

What's probably the cause is that:

  1. You don't have an internet access and you require a proxy. You should configure that first: https://develop.sentry.dev/self-hosted/#installing-behind-a-proxy
  2. It's a flake and you have a bad internet. It's best to retry.

aldy505 avatar Nov 24 '25 14:11 aldy505

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Dec 16 '25 08:12 getsantry[bot]