My suspicion is that this error is coming from some package that mosh depends on, instead of from mosh itself. Mosh doesn't try to run dpkg itself.
Do you see this error message if you remove the mosh package (dpkg --purge mosh) and then re-install mosh only? On Wed, Oct 28, 2015 at 5:30 AM, Jakub Wilk <jw...@debian.org> wrote: > Package: mosh > Version: 1.2.5-1+b1 > > I get this when I install mosh: > > Preparing to unpack .../mosh_1.2.5-1+b1_i386.deb ... > dpkg: error: --compare-versions takes three arguments: <version> > <relation> <version> > > Type dpkg --help for help about installing and deinstalling packages [*]; > Use 'apt' or 'aptitude' for user-friendly package management; > Type dpkg -Dhelp for a list of dpkg debug flag values; > Type dpkg --force-help for a list of forcing options; > Type dpkg-deb --help for help about manipulating *.deb files; > > Options marked [*] produce a lot of output - pipe it through 'less' or > 'more' ! > Unpacking mosh (1.2.5-1+b1) ... > > > -- System Information: > Debian Release: stretch/sid > APT prefers unstable > APT policy: (990, 'unstable'), (500, 'experimental') > Architecture: i386 (x86_64) > Foreign Architectures: amd64 > > Kernel: Linux 4.2.0-1-amd64 (SMP w/2 CPU cores) > Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: sysvinit (via /sbin/init) > > Versions of packages mosh depends on: > ii dpkg 1.18.3 > ii libc6 2.19-22 > ii libgcc1 1:5.2.1-22 > ii libprotobuf9v5 2.6.1-1.3 > ii libssl1.0.0 1.0.2d-1 > ii libstdc++6 5.2.1-22 > ii libtinfo5 6.0+20151024-1 > ii libutempter0 1.1.6-1 > ii openssh-client 1:6.9p1-2 > ii zlib1g 1:1.2.8.dfsg-2+b1 > > Versions of packages mosh recommends: > ii perl-base [libio-socket-ip-perl] 5.20.2-6 > > -- > Jakub Wilk >