python3-stdeb depends on python-all which no longer exists on focal

Bug #1916551 reported by Marcus Furlong on 2021-02-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
stdeb (Ubuntu)

Bug Description

$ ./ --command-packages=stdeb.command bdist_deb
running bdist_deb
running sdist_dsc
running egg_info


dpkg-query: no packages found matching python-all
ERROR running: /usr/bin/dpkg-query --show --showformat=${Version} python-all
Traceback (most recent call last):
  File "./", line 32, in <module>
  File "/usr/lib/python3/dist-packages/setuptools/", line 144, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.8/distutils/", line 148, in setup
  File "/usr/lib/python3.8/distutils/", line 966, in run_commands
  File "/usr/lib/python3.8/distutils/", line 985, in run_command
  File "/usr/lib/python3/dist-packages/stdeb/command/", line 22, in run
  File "/usr/lib/python3.8/distutils/", line 313, in run_command
  File "/usr/lib/python3.8/distutils/", line 985, in run_command
  File "/usr/lib/python3/dist-packages/stdeb/command/", line 135, in run
  File "/usr/lib/python3/dist-packages/stdeb/", line 1369, in build_dsc
    python_defaults_version_str = get_version_str('python-all')
  File "/usr/lib/python3/dist-packages/stdeb/", line 268, in get_version_str
    stdout = get_cmd_stdout(args)
  File "/usr/lib/python3/dist-packages/stdeb/", line 243, in get_cmd_stdout
    raise RuntimeError('returncode %d', returncode)
RuntimeError: ('returncode %d', 1)

To fix it, just need to change python-all to python3-all:

$ sudo sed -i -e "s/python-all/python3-all/g" /usr/lib/python3/dist-packages/stdeb/

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers