JQ error with Bullseye

Hello,

The issue is the same for me on a raspbian:

pihole -up                                                                                                                                                                     
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.3.31-1~deb10u1
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for dialog
  [✓] Checking for ca-certificates

  [i] Checking for updates...
  [i] Pi-hole Core:	up to date
  [i] Web Interface:	up to date
  [i] FTL:		update available

  [i] FTL out of date, it will be updated by the installer.

  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [i] SELinux not detected
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.3.31-1~deb10u1

  [✓] Checking apt-get for upgraded packages... up to date!

  [i] Checking for / installing Required dependencies for OS Check...
  [✓] Checking for grep
  [✓] Checking for dnsutils

  [✓] Supported OS detected
  [i] Checking for / installing Required dependencies for this install script...
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for dialog
  [✓] Checking for ca-certificates

  [i] Performing unattended setup, no dialogs will be displayed
  [i] Performing reconfiguration, skipping download of local repos
  [✓] Resetting repository within /etc/.pihole...
  [✓] Resetting repository within /var/www/html/admin...
  [i] Checking for / installing Required dependencies for Pi-hole software...
  [✓] Checking for cron
  [✓] Checking for curl
  [✓] Checking for iputils-ping
  [✓] Checking for psmisc
  [✓] Checking for sudo
  [✓] Checking for unzip
  [✓] Checking for idn2
  [✓] Checking for libcap2-bin
  [✓] Checking for dns-root-data
  [✓] Checking for libcap2
  [✓] Checking for netcat-openbsd
  [✓] Checking for procps
  [i] Checking for jq (will be installed)
  [✓] Checking for lighttpd
  [✓] Checking for php7.3-common
  [✓] Checking for php7.3-cgi
  [✓] Checking for php7.3-sqlite3
  [✓] Checking for php7.3-xml
  [✓] Checking for php7.3-intl
  [✓] Checking for php7.3-json
  [i] Waiting for package manager to finish (up to 30 seconds)
  [i] Processing apt-get install(s) for: jq, please wait...
----------------------------------------------------------------------
E: Le paquet « jq » n'a pas de version susceptible d'être installée

  Unable to complete update, please contact Pi-hole Support
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Here is the log:
https://tricorder.pi-hole.net/55w7a0I0/

When I try to install it manually:

~ » sudo apt install jq                                                                                                                                                                 haux49@raspberrypi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package jq is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'jq' has no installation candidate
apt-cache policy jq                                                                                                                                                           
jq:
  Installed: (none)
  Candidate: (none)
  Version table:
     1.6-2.1 -1
         -1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
~ » cat /etc/apt/sources.list                                                                                                                                                          
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi

Apparently, this is due to bullseye release who is broken ...

Sorry, my mistake mixing two issues.
Have deleted my initial reply.
@RSickenberg, please create your own thread as your distro major release version is different.

Please upload a new debug token. Your original token expired in 48 hours.

EDIT: I moved below edit up here because its the most likely candidate for your issue if it shows pinning of the jq package
Maybe you've also got some pinning going on.
Whats output for below?

grep . -R /etc/apt/preferences*

Also the sources.list file is missing the rpi component but is of less importance:

pi@ph5b:~ $ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi

Did you alter the sources.list file in the past or maybe some extra software installed that did this?
If not, that could be an indicator for a corrupted file.

Can you try run below one first and see if it runs without errors or warnings?

sudo apt update

If it runs without errors, what does below one show after?

apt policy jq

And what does below one show?

file /etc/apt/sources.list

And because its a Pi, could you check below?

The rpi component is obsolete/nearly empty since Stretch already.

Has my post here been deleted or moved? The jq package is there, but it has been pinned to priority -1, so APT doesn't take it as candidate.

Nice oneliner to find the culprit config :slightly_smiling_face::

1 Like

Yes but how come its missing and not on mine?

I pointed that out already:

Jep, and I like the oneliner, much shorter than what I posted before :+1:. Just making clear that the apt-cache policy jq output is undoubtedly showing this as reason, so no need to check in any other direction. The pinning is not default (of course), so I don't wonder that the sources.list isn't default either.

EDIT: Ah found my other post in the split issue, removed it there.

1 Like

Blast, now you broke my linking :smiley:

I already moved my EDIT to the top of my reply before :wink:

1 Like

Ow yeah I'm prety sure its pinned because of the "-1" pin priority in front of above URL.
Should have spotted that earlier :wink:

My below comment was now still lingering in the original topic:

That is some strange output: It's reporting no installation candidate, but the referenced repository is correctly listed in your sources.list:

Please share the outpout of:

ls -lah /var/lib/apt/lists

@MichaIng already figured this out:

Below you see pin priority -1 configured just before the URL:

pi@ph5b:~ $ man apt_preferences
[..]
   How APT Interprets Priorities
       Priorities (P) assigned in the APT preferences file must be
       positive or negative integers. They are interpreted as follows
       (roughly speaking):

       P >= 1000
           causes a version to be installed even if this constitutes a
           downgrade of the package

       990 <= P < 1000
           causes a version to be installed even if it does not come from
           the target release, unless the installed version is more recent

       500 <= P < 990
           causes a version to be installed unless there is a version
           available belonging to the target release or the installed
           version is more recent

       100 <= P < 500
           causes a version to be installed unless there is a version
           available belonging to some other distribution or the installed
           version is more recent

       0 < P < 100
           causes a version to be installed only if there is no installed
           version of the package

       P < 0
           prevents the version from being installed

       P = 0
           has undefined behaviour, do not use it.

I don't think so? I don't see anything in audit logs that shows post changes.

Mystery already solved:

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.