[Bug 1595154] Re: Wrong result/count in update-notifier depending of the python version

Sebastien Bacher seb128 at ubuntu.com
Wed Jun 22 21:41:07 UTC 2016


thank you for your bug report, did you forget to include the output for
the upgrade command or does it return nothing?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1595154

Title:
  Wrong result/count in update-notifier depending of the python version

Status in update-notifier package in Ubuntu:
  New

Bug description:
  Hi Guys,

  I have seen a strange behavior regarding the update notifier. Our
  monitoring system isn't able to show missing updates.

  After starting looking closer, the script apt-check is not providing
  the correct result depending the python version. Changing python from
  3 to 2 or changing the shebang solve the issue.

  Details:

  root at xx ~ # ls -al /usr/bin/pytho*
  lrwxrwxrwx 1 root root       9 Dec 21  2013 /usr/bin/python -> python2.7
  lrwxrwxrwx 1 root root       9 Dec 21  2013 /usr/bin/python2 -> python2.7
  -rwxr-xr-x 1 root root 3345416 Jun 22  2015 /usr/bin/python2.7
  lrwxrwxrwx 1 root root       9 Mar 23  2014 /usr/bin/python3 -> python3.4
  -rwxr-xr-x 2 root root 3709944 Oct 14  2015 /usr/bin/python3.4
  -rwxr-xr-x 2 root root 3709944 Oct 14  2015 /usr/bin/python3.4m
  lrwxrwxrwx 1 root root      10 Mar 23  2014 /usr/bin/python3m -> python3.4m

  
  root at xx ~ # /usr/bin/python3 /usr/lib/update-notifier/apt-check
  0;0

  root at xx ~ # /usr/bin/python2 /usr/lib/update-notifier/apt-check
  4;0

  
  root at xx ~ #  head /usr/lib/update-notifier/apt-check
  #!/usr/bin/python3

  
  #nice apt-get -s -o Debug::NoLocking=true upgrade | grep ^Inst

  import apt
  import apt_pkg
  import os
  import sys
  from optparse import OptionParser

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: update-notifier-common 0.154.1ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-53.89-generic 3.13.11-ckt19
  Uname: Linux 3.13.0-53-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.21
  Architecture: amd64
  Date: Wed Jun 22 13:42:22 2016
  PackageArchitecture: all
  SourcePackage: update-notifier
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1595154/+subscriptions



More information about the foundations-bugs mailing list