intel / lkp-tests

Linux Kernel Performance tests
GNU General Public License v2.0
248 stars 153 forks source link

Package *python-dev* not available in Debian suite *sid*/*unstable* #373

Open paulmenzel opened 3 months ago

paulmenzel commented 3 months ago

Trying to install the dependencies for, for example,

https://github.com/intel/lkp-tests/blob/5bc63dcd9fab3485f0a56210525dcaaa58ce1005/programs/perf/pkg/depends#L36

an error is show, that the package cannot be installed. I guess it should be python3-dev?

rli9 commented 3 months ago

Thanks, there's a step like map_packages during lkp install, which would convert python-dev name to python3-dev when detecting the debian os is debian 11 or higher. If you want to directly install the packages in depends file, could you give a try with

tools/test-packages.sh programs/perf/pkg/depends
paulmenzel commented 3 months ago

Thank you for the prompt response. The mapping does not work then:

$ lkp split-job jobs/ycsb.yaml
jobs/ycsb.yaml => ./ycsb-1-uniform-cs-localhost-1SSD-ext4-127.0.0.1-true-1-1-0-10000000-1-80878041-0-0-2-32-1-0-0-debian-11-x86_64.cgz.yaml
$ sudo lkp install ./ycsb-1-uniform-cs-localhost-1SSD-ext4-127.0.0.1-true-1-1-0-10000000-1-80878041-0-0-2-32-1-0-0-debian-11-x86_64.cgz.yaml
distro=debian
version=trixie_sid
[…]
Use: /home/pmenzel/src/lkp-tests/distro/installer/debian install curl libgssapi-krb5-2 libkrb5-dbg libldap-2.5-0 liblzma5 libpcap0.8 libsasl2-2 openssl snmp libcurl4-openssl-dev liblzma-dev libssl-dev lld python-dev python-pip python-venv scons
Hit:1 http://debian.charite.de/debian sid InRelease
Hit:2 http://debian.charite.de/debian experimental InRelease                                                                                                                                                      
Hit:3 http://deb.debian.org/debian sid InRelease                                                                                                                                                                  
Hit:4 http://deb.debian.org/debian-debug unstable-debug InRelease                                                                                                                                                 
Hit:5 https://download.docker.com/linux/debian bullseye InRelease                                                                                                                                
Hit:6 http://deb.debian.org/debian-debug experimental-debug InRelease                                                                                                  
Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                          
Hit:8 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.30/deb  InRelease                   
Get:9 https://packages.microsoft.com/repos/code stable InRelease [3,590 B]
Fetched 3,590 B in 2s (1,573 B/s)    
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
Package python-pip 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
However the following packages replace it:
  python3-pip

Package python-dev 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
However the following packages replace it:
  python-dev-is-python3

E: Package 'python-dev' has no installation candidate
E: Package 'python-pip' has no installation candidate
E: Unable to locate package python-venv
Cannot install some packages of mongodb depends
rli9 commented 3 months ago

Sorry, this is a bug that doesn't do the map of python to python3 when it is debian trixie_sid. I just add a fix, can you try the latest code?