dpkg: warning: --compare-versions used with obsolete relation operator '>'

Bug #1480122 reported by dino99
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Invalid
High
Unassigned
Ubuntu
Invalid
Low
Unassigned

Bug Description

This is what i've seen while upgrading to systemd 223-1ubuntu1:

Processing triggers for systemd (222-2ubuntu1) ...
Processing triggers for initramfs-tools (0.103ubuntu16) ...
dpkg: warning: --compare-versions used with obsolete relation operator '>'

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: dpkg 1.18.1ubuntu1
ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
Uname: Linux 4.1.0-3-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.18-0ubuntu5
Architecture: i386
CurrentDesktop: GNOME
Date: Fri Jul 31 09:03:58 2015
SourcePackage: dpkg
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dino99 (9d9) wrote :
summary: - dpkg: warning: --compare-versions used with obsolete relation operator
- '>'
+ [systemd 223-1] dpkg: warning: --compare-versions used with obsolete
+ relation operator '>'
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: [systemd 223-1] dpkg: warning: --compare-versions used with obsolete relation operator '>'

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dpkg (Ubuntu):
status: New → Confirmed
Changed in dpkg (Ubuntu):
importance: Undecided → High
affects: dpkg (Ubuntu) → systemd (Ubuntu)
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
dino99 (9d9) wrote :

Today systemd has been upgraded to 224-2ubuntu2, and the error reported here has not been seen that time, nor logged.
So it seems a transitional issue that is now gone. Setting that report as 'incomplete' to start the countdown close timer.

Changed in systemd (Ubuntu):
status: Confirmed → Incomplete
Changed in hundredpapercuts:
status: Confirmed → Incomplete
Revision history for this message
dino99 (9d9) wrote :

This has probably solved this issue:

dpkg (1.18.2ubuntu1) wily; urgency=medium

  * Merge with Debian unstable, bringing in a whole host of new bugfixes.

 -- Adam Conrad <email address hidden> Thu, 13 Aug 2015 02:05:42 -0600

Revision history for this message
Martin Pitt (pitti) wrote :

Can you please run

  grep -r 'compare-version.*>' /var/lib/dpkg/info/

and copy&paste the output here? There is no hit on my current wily system, but perhaps you have some "weird" initramfs-tools version?

affects: systemd (Ubuntu) → initramfs-tools (Ubuntu)
summary: - [systemd 223-1] dpkg: warning: --compare-versions used with obsolete
- relation operator '>'
+ dpkg: warning: --compare-versions used with obsolete relation operator
+ '>'
Changed in initramfs-tools (Ubuntu):
importance: High → Low
Revision history for this message
dino99 (9d9) wrote :

Here is the output:

 grep -r 'compare-version.*>' /var/lib/dpkg/info/

/var/lib/dpkg/info/gparted.postinst:if [ "$1" = "configure" ] && dpkg --compare-versions "$2" ge "0.3.9-1" && dpkg --compare-versions "$2" lt "0.3.9-3" && [ -x "`which scrollkeeper-rebuilddb 2>/dev/null`" ]; then
/var/lib/dpkg/info/cups-daemon.postinst: if dpkg --compare-versions "$2" le "1.7.1-9~" && [ -x "`which logrotate 2>/dev/null`" ]; then

Revision history for this message
dino99 (9d9) wrote :

note: initramfs-tools is 0.120ubuntu3 (as expected)

Revision history for this message
Martin Pitt (pitti) wrote :

Hm, no hits then. If you can't reproduce this any more, then I figure the package which used the obsolete > operator has been upgraded away and got fixed?

If you can still find it (using the grep), please reopen and reassign to that package. I close this for now as we don't have any handle whose fault that was. Thanks!

affects: initramfs-tools (Ubuntu) → ubuntu
Changed in ubuntu:
status: Incomplete → Invalid
dino99 (9d9)
Changed in hundredpapercuts:
status: Incomplete → Invalid
Revision history for this message
Anisse Astier (anisse) wrote :

mosh is also affected by this issue, see debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803253

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.