Hello,
I am trying to build a package for Debian Testing.
However, when I run
Code:
osc build
it fails with the following output:
Code:
[   15s] mv stamps/pxx stamps/patch 
[   15s] cat /etc/hosts 
[   15s] 127.0.0.1 meteor 
[   15s] 127.0.0.1 localhost 
[   15s] mkdir -p bin 
[   15s] /bin/uname -a 
[   15s] Linux meteor 5.11.6-1-default #1 SMP Thu Mar 11 16:11:36 UTC 2021 (7358b30) x86_64 GNU/Linux 
[   15s] lsb_release -a 
[   15s] Traceback (most recent call last): 
[   15s]   File "/usr/bin/lsb_release", line 95, in <module> 
[   15s]     main() 
[   15s]   File "/usr/bin/lsb_release", line 59, in main 
[   15s]     distinfo = lsb_release.get_distro_information() 
[   15s]   File "/usr/lib/python3/dist-packages/lsb_release.py", line 356, in get_distro_information 
[   15s]     distinfo = guess_debian_release() 
[   15s]   File "/usr/lib/python3/dist-packages/lsb_release.py", line 290, in guess_debian_release 
[   15s]     rinfo = guess_release_from_apt() 
[   15s]   File "/usr/lib/python3/dist-packages/lsb_release.py", line 195, in guess_release_from_apt 
[   15s]     releases = parse_apt_policy() 
[   15s]   File "/usr/lib/python3/dist-packages/lsb_release.py", line 174, in parse_apt_policy 
[   15s]     policy = subprocess.Popen(['apt-cache','policy'], 
[   15s]   File "/usr/lib/python3.9/subprocess.py", line 951, in __init__ 
[   15s]     self._execute_child(args, executable, preexec_fn, close_fds, 
[   15s]   File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child 
[   15s]     raise child_exception_type(errno_num, err_msg, err_filename) 
[   15s] FileNotFoundError: [Errno 2] No such file or directory: 'apt-cache' 
[   15s] make: *** [debian/rules:1000: stamps/configure] Error 1 
[   15s] dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 
[   15s]  
[   15s] meteor failed "build openjdk-8_8u275-b01-1~deb9u1.dsc" at Fri Apr 16 18:17:00 UTC 2021. 
[   15s]  

The buildroot was: /var/tmp/build-root/Debian_Testing-x86_64
Has anyone an idea how to fix this?
Thank you
~Jens