Package: apt-show-versions
Version: 0.22.7
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Willem Basson <kern...@hetzner.co.za>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: apt-show-versions is wrong about the status of some third-party 
packages e.g. docker-ce
Message-ID: 
<154287660879.4947.3652908988455149171.report...@pmm-staging1.jnb1.host-h.net>
X-Mailer: reportbug 7.1.7
Date: Thu, 22 Nov 2018 10:50:08 +0200

Package: apt-show-versions
Version: 0.22.7
Severity: normal

Dear Maintainer,

I installed docker-ce using their documentation:
https://docs.docker.com/install/linux/docker-ce/debian/#install-docker-ce-1

Afterwards, apt-show-versions thinkgs that the installed version is
newer than the latest available version:

apt-show-versions docker-ce -a
docker-ce:amd64 5:18.09.0~3-0~debian-stretch install ok installed
docker-ce:amd64 18.06.1~ce~3-0~debian stretch download.docker.com
No stable version
No stable-updates version
docker-ce:amd64 5:18.09.0~3-0~debian-stretch newer than version in archive

Other tools believe that the right version is intalled:
apt-cache policy docker-ce
docker-ce:
  Installed: 5:18.09.0~3-0~debian-stretch
  Candidate: 5:18.09.0~3-0~debian-stretch
  Version table:
 *** 5:18.09.0~3-0~debian-stretch 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
        100 /var/lib/dpkg/status
     18.06.1~ce~3-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     18.06.0~ce~3-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     18.03.1~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     18.03.0~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.12.1~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.12.0~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.09.1~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.09.0~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.06.2~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.06.1~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.06.0~ce-0~debian 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.03.3~ce-0~debian-stretch 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.03.2~ce-0~debian-stretch 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.03.1~ce-0~debian-stretch 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages
     17.03.0~ce-0~debian-stretch 990
        990 https://download.docker.com/linux/debian stretch/stable amd64 
Packages

apt-cache madison docker-ce
 docker-ce | 5:18.09.0~3-0~debian-stretch | 
https://download.docker.com/linux/debian stretch/stable amd64 Packages
 docker-ce | 18.06.1~ce~3-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 18.06.0~ce~3-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 18.03.1~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 18.03.0~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 17.12.1~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 17.12.0~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 17.09.1~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 17.09.0~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 17.06.2~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 17.06.1~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 17.06.0~ce-0~debian | https://download.docker.com/linux/debian 
stretch/stable amd64 Packages
 docker-ce | 17.03.3~ce-0~debian-stretch | 
https://download.docker.com/linux/debian stretch/stable amd64 Packages
 docker-ce | 17.03.2~ce-0~debian-stretch | 
https://download.docker.com/linux/debian stretch/stable amd64 Packages
 docker-ce | 17.03.1~ce-0~debian-stretch | 
https://download.docker.com/linux/debian stretch/stable amd64 Packages
 docker-ce | 17.03.0~ce-0~debian-stretch | 
https://download.docker.com/linux/debian stretch/stable amd64 Packages

It looks like apt-show-versions gets tripped up by the inclusion of the epoch 
in the version name, or maybe by something else in the totally valid, although 
strange version system employed by docker-ce

I would prefer to be able to trust apt-show-versions to be right about what 
version is the highest, since that is its function.
-- System Information:
Debian Release: 9.6
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_ZA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages apt-show-versions depends on:
ii  apt                             1.4.8
ii  libapt-pkg-perl                 0.1.32
ii  libperl5.24 [libstorable-perl]  5.24.1-3+deb9u4
ii  perl                            5.24.1-3+deb9u4

apt-show-versions recommends no packages.

apt-show-versions suggests no packages.

-- no debconf information

-- System Information:
Debian Release: 9.6
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_ZA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages apt-show-versions depends on:
ii  apt                             1.4.8
ii  libapt-pkg-perl                 0.1.32
ii  libperl5.24 [libstorable-perl]  5.24.1-3+deb9u4
ii  perl                            5.24.1-3+deb9u4

apt-show-versions recommends no packages.

apt-show-versions suggests no packages.

-- no debconf information

Reply via email to