Pihole -up error: Unsupported file /tmp/pihole-meta.rpm given on commandline

I've been using Debian Trixie with Pi-hole 6 beta
pihole -up error-ed out

$sudo pihole -up
  [✓] Update local cache of available packages
   Error: Unable to find Pi-hole dependency meta package.

$sudo pihole -r

  [✓] Root user check

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

  [i] SELinux not detected
  [✓] Update local cache of available packages

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

dpkg-deb: building package 'pihole-meta' in 'pihole-meta.deb'.
Building target platforms: noarch
Building for target noarch
Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.umMCyi
+ umask 022
+ cd /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ test -d /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ /usr/bin/rm -rf /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ /usr/bin/mkdir -p /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ /usr/bin/mkdir -p /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build/SPECPARTS
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Gtq995
+ umask 022
+ cd /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ChIAMO
+ umask 022
+ cd /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.H7ONpu
+ umask 022
+ cd /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ /usr/bin/rm -rf /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build/BUILDROOT
+ /usr/bin/mkdir -p /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ /usr/bin/mkdir /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build/BUILDROOT
+ /usr/lib/rpm/brp-compress /usr
+ /usr/lib/rpm/brp-elfperms
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-remove-la-files
Processing files: pihole-meta-0.1-1.noarch
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build/BUILDROOT
Wrote: /tmp/pihole-meta_AAqhR/RPMS/noarch/pihole-meta-0.1-1.noarch.rpm
Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.K1s2hI
+ umask 022
+ cd /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ test -d /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ rm -rf /tmp/pihole-meta_AAqhR/BUILD/pihole-meta-0.1-build
+ RPM_EC=0
+ jobs -p
+ exit 0
  [i] Installing required dependencies ...
E: Unsupported file /tmp/pihole-meta.rpm given on commandline

Your debug token is: https://tricorder.pi-hole.net/Sk6O8gef/

This is strange. It tries to build an *.rpm package on an Debian OS.
What is the output of command -v apt-get and command -v dnf?

This is related to the most recent development update.

Probably @yubiuser knows what is wrong.

EDIT:
We typed at the same time...

$command -v apt-get
/usr/bin/apt-get

$command -v dnf
/usr/bin/dnf

$sudo apt list dnf
dnf/testing,now 4.22.0-1 all [installed]

$sudo apt list apt
apt/testing,now 2.9.16 amd64 [installed]
$cat /etc/debian_version
trixie/sid

$lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux trixie/sid
Release:        n/a
Codename:       trixie

Thanks. The issue is the presence of two package managers.
It will be fixed by

1 Like

That PR was merged, can you try again @dowden23 please?

I un-installed dnf and tried again.
getting same error

$sudo pihole -up
  [✓] Update local cache of available packages
   Error: Unable to find Pi-hole dependency meta package.

$sudo pihole -r

  [✓] Root user check

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

  [i] SELinux not detected
  [✓] Update local cache of available packages

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

dpkg-deb: building package 'pihole-meta' in 'pihole-meta.deb'.
Building target platforms: noarch
Building for target noarch
Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.9oPlos
+ umask 022
+ cd /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ test -d /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ /usr/bin/rm -rf /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ /usr/bin/mkdir -p /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ /usr/bin/mkdir -p /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build/SPECPARTS
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.t98x7E
+ umask 022
+ cd /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nVhXXv
+ umask 022
+ cd /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.PhekEo
+ umask 022
+ cd /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ /usr/bin/rm -rf /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build/BUILDROOT
+ /usr/bin/mkdir -p /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ /usr/bin/mkdir /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build/BUILDROOT
+ /usr/lib/rpm/brp-compress /usr
+ /usr/lib/rpm/brp-elfperms
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-remove-la-files
Processing files: pihole-meta-0.1-1.noarch
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build/BUILDROOT
Wrote: /tmp/pihole-meta_6OkXc/RPMS/noarch/pihole-meta-0.1-1.noarch.rpm
Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.XH75Tu
+ umask 022
+ cd /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ test -d /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ rm -rf /tmp/pihole-meta_6OkXc/BUILD/pihole-meta-0.1-build
+ RPM_EC=0
+ jobs -p
+ exit 0
  [i] Installing required dependencies ...
E: Unsupported file /tmp/pihole-meta.rpm given on commandline

same error with dnf installed

should i have dnf installed or not ?
initially dnf was not installed

No. Not on Debian.

looks like it's fixed now.

$sudo pihole checkout dev

$sudo pihole -up
[✓] Update local cache of available packages
dpkg-deb: building package 'pihole-meta' in 'pihole-meta.deb'.

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

[✓] Everything is up to date!

$sudo pihole -v
Core
Version is v5.18.3-581-gd0304926 (Latest: null)
Branch is development
Hash is d0304926 (Latest: d0304926)
Web
Version is v5.21-1042-g87b19772 (Latest: null)
Branch is development
Hash is 87b19772 (Latest: 87b19772)
FTL
Version is vDev-91ea8d4 (Latest: null)
Branch is development
Hash is 91ea8d49 (Latest: 91ea8d49)

2 Likes