Wrong result/count in update-notifier depending of the python version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
New
|
Undecided
|
Unassigned |
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@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@xx ~ # /usr/bin/python3 /usr/lib/
0;0
root@xx ~ # /usr/bin/python2 /usr/lib/
4;0
root@xx ~ # head /usr/lib/
#!/usr/bin/python3
#nice apt-get -s -o Debug::
import apt
import apt_pkg
import os
import sys
from optparse import OptionParser
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: update-
ProcVersionSign
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
PackageArchitec
SourcePackage: update-notifier
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: xenial |
thank you for your bug report, did you forget to include the output for the upgrade command or does it return nothing?