[Bug 1595154] Re: Wrong result/count in update-notifier depending of the python version
Hassan El Jacifi
1595154 at bugs.launchpad.net
Thu Jun 23 11:03:32 UTC 2016
Hi Guys,
I don't know if the bug affect 16.04 too.
The result is shown after the command apt-check. As you can see when you run it with:
- python3 you have 0,0 that means no package to update.
- python2 you have 4,0 that means 4 packages to update.
Start-Date: 2016-06-22 15:03:38
Commandline: apt dist-upgrade -uV
Upgrade: grub-common:amd64 (2.02~beta2-9ubuntu1.7, 2.02~beta2-9ubuntu1.8), grub2-common:amd64 (2.02~beta2-9ubuntu1.7, 2.02~beta2-9ubuntu1.8), grub-pc-bin:amd64 (2.02~beta2-9ubuntu1.7, 2.02~beta2-9ubuntu1.8), grub-pc:amd64 (2.02~beta2-9ubuntu1.7, 2.02~beta2-9ubuntu1.8)
End-Date: 2016-06-22 15:03:49
--
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