← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2069274] Re: dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>

 

In salsa.debian.org the problem is already fixed:

tools/autopkgtest-build-lxd:256:
if [ "$COMMAND" = incus ] || dpkg --compare-versions "$(lxc version | awk '/Client version:/{print$3}')" ge 5.14; then

-- 
You received this bug notification because you are a member of
Canonical's Ubuntu QA, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/2069274

Title:
  dpkg: error: --compare-versions takes three arguments: <version>
  <relation> <version>

Status in autopkgtest package in Ubuntu:
  New

Bug description:
  I used autopkgtest 5.34ubuntu2 on Oracular

     sh -x /usr/bin/autopkgtest-build-lxd ubuntu-daily:noble/amd64

  It fails with

  + REUSE=
  + [ lxc = incus ]
  + lxc version
  + sed -ne s/Client version: // p
  + dpkg --compare-versions 5.21.1 LTS ge 5.14
  dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>

  We need to remove the LTS postfix.
  --- 
  ProblemType: Bug
  ApportVersion: 2.28.1-0ubuntu4
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: KDE
  DistroRelease: Ubuntu 24.10
  InstallationDate: Installed on 2021-07-01 (1078 days ago)
  InstallationMedia: Kubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
  NonfreeKernelModules: zfs
  Package: autopkgtest 5.34ubuntu2
  PackageArchitecture: all
  ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
  Tags: oracular
  Uname: Linux 6.8.0-31-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dialout dip libvirt lpadmin lxd plugdev sambashare sbuild sispmctl sudo
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/2069274/+subscriptions



References