Announcement

Collapse
No announcement yet.

No update notifications since upgrade

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #61
    Re: No update notifications since upgrade

    Did you watch it for 24 hours?

    It will pop up and stay open for a while, then go away. Did it pop up while you weren't looking?
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #62
      Re: No update notifications since upgrade

      Oh yes, it definitely could have popped up when I wasn't looking. Assuming it doesn't leave behind a little "1" when it goes away (which it should if it's defined as a persistent notification), then it could have come and gone w/o me ever seeing it. If that is indeed the case though, it's a pretty useless notification.

      Comment


        #63
        Re: No update notifications since upgrade

        Originally posted by GreyGeek
        Did you watch it for 24 hours?

        It will pop up and stay open for a while, then go away. Did it pop up while you weren't looking?
        That's not how it's supposed to behave...

        Comment


          #64
          Re: No update notifications since upgrade

          Originally posted by Adrian
          Originally posted by GreyGeek
          Did you watch it for 24 hours?

          It will pop up and stay open for a while, then go away. Did it pop up while you weren't looking?
          That's not how it's supposed to behave...
          no it's not............it allwase leaves a little 1 for me

          next time it's thare I'll get a screeney of the 1 and the window when I click the 1

          VINNY
          i7 4core HT 8MB L3 2.9GHz
          16GB RAM
          Nvidia GTX 860M 4GB RAM 1152 cuda cores

          Comment


            #65
            Re: No update notifications since upgrade

            OK, I had an idea. I've updated all my KPackageKit and Update Notification Daemon settings to log to a file in addition to showing a popup. Lets see what shows up in the file.

            Attached Files

            Comment


              #66
              Re: No update notifications since upgrade

              Very interesting problem, and sorry I don't have anything further to report aside I'm not gettng notifications on my computer (in the midst of running aptitude now to correct the situation).

              Comment


                #67
                Re: No update notifications since upgrade

                That is not upgrade problem v9.04 to V9.10 because that affecting all Karmic Koala owners. No mater its upgraded to old or fresh install. I tested that all situations (upgrade; fresh; wmvare; Virtualbox; and used 9 different computers). Update notifier not worked any situation. That means bug is made Kubuntu team or KDE team himself. I not tested yet different distros (Mandriva example) but i do that and then we found out who made that crap (Kubuntu or KDE himself)
                Current situation is update notifier not working and not way get it work right now.

                Comment


                  #68
                  Re: No update notifications since upgrade

                  Originally posted by GreyGeek
                  In Systemsettings, under the General Tab, is the "Notifications" icon. It displays a dialog which allows you to choose "System Notifications". On its dialog is the "Event Source". Chose KPackageKit.
                  Impossible! There no KpackageKit at all! How i add it there?

                  EDIT
                  Ouch i stupid! there is scrollbar.

                  Comment


                    #69
                    Re: No update notifications since upgrade

                    Got little info what going on but i no have skills resolve that.
                    Bug:

                    root@www1:~# update-notifier-kde -c
                    Traceback (most recent call last):
                    File "/usr/bin/update-notifier-kde", line 168, in aptDirectoryChanged
                    result = apt_check.run()
                    File "/usr/lib/update-notifier/apt_check.py", line 84, in run
                    if options.security_updates_unattended:
                    AttributeError: 'NoneType' object has no attribute 'security_updates_unattended'

                    Comment


                      #70
                      Re: No update notifications since upgrade

                      So founded work around!
                      Fix that we mast downgrade. So lets start.

                      1. Navigate in /usr/lib/update-notifier
                      2. Make backup /usr/lib/update-notifier/apt_check.py
                      3. Make new file apt_check.py inside:

                      #-----------------------------start copy at next line-----------------------------------------------
                      #!/usr/bin/python


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

                      import apt_pkg
                      import os
                      import sys
                      from optparse import OptionParser
                      import gettext

                      SYNAPTIC_PINFILE = "/var/lib/synaptic/preferences"

                      def _(msg):
                      return gettext.dgettext("update-notifier", msg)

                      class OpNullProgress(object):
                      def update(self, percent):
                      pass
                      def done(self):
                      pass

                      def clean(cache,depcache):
                      # mvo: looping is too inefficient with the new auto-mark code
                      #for pkg in cache.Packages:
                      # depcache.MarkKeep(pkg)
                      depcache.Init()

                      def saveDistUpgrade(cache,depcache):
                      """ this functions mimics a upgrade but will never remove anything """
                      depcache.Upgrade(True)
                      if depcache.DelCount > 0:
                      clean(cache,depcache)
                      depcache.Upgrade()

                      def _handleException(type, value, tb):
                      sys.stderr.write("E: "+ _("Unkown Error: '%s' (%s)") % (type,value))
                      sys.exit(-1)


                      def isSecurityUpgrade(ver):
                      " check if the given version is a security update (or masks one) "
                      for (file, index) in ver.FileList:
                      if (file.Archive.endswith("-security") and
                      file.Origin == "Ubuntu"):
                      return True
                      return False

                      def run(options=None):
                      # be nice
                      os.nice(19)
                      # FIXME: do a ionice here too?

                      # init
                      apt_pkg.init()

                      # force apt to build its caches in memory for now to make sure
                      # that there is no race when the pkgcache file gets re-generated
                      apt_pkg.Config.Set("Dir::Cache:kgcache","")

                      # get caches
                      try:
                      cache = apt_pkg.GetCache(OpNullProgress())
                      except SystemError, e:
                      sys.stderr.write("E: "+ _("Error: Opening the cache (%s)") % e)
                      sys.exit(-1)
                      depcache = apt_pkg.GetDepCache(cache)

                      # read the pin files
                      depcache.ReadPinFile()
                      # read the synaptic pins too
                      if os.path.exists(SYNAPTIC_PINFILE):
                      depcache.ReadPinFile(SYNAPTIC_PINFILE)

                      # init the depcache
                      depcache.Init()

                      if depcache.BrokenCount > 0:
                      sys.stderr.write("E: "+ _("Error: BrokenCount > 0"))
                      sys.exit(-1)

                      # do the upgrade (not dist-upgrade!)
                      try:
                      saveDistUpgrade(cache,depcache)
                      except SystemError, e:
                      sys.stderr.write("E: "+ _("Error: Marking the upgrade (%s)") % e)
                      sys.exit(-1)

                      # check for upgrade packages, we need to do it this way
                      # because of ubuntu #7907
                      upgrades = 0
                      security_updates = 0
                      for pkg in cache.Packages:
                      if depcache.MarkedInstall(pkg) or depcache.MarkedUpgrade(pkg):
                      inst_ver = pkg.CurrentVer
                      cand_ver = depcache.GetCandidateVer(pkg)
                      # check if this is really a upgrade or a false positive
                      # (workaround for ubuntu #7907)
                      if cand_ver != inst_ver:
                      # check for security upgrades
                      upgrades = upgrades + 1
                      if isSecurityUpgrade(cand_ver):
                      security_updates += 1
                      # now check for security updates that are masked by a
                      # canidate version from another repo (-proposed or -updates)
                      for ver in pkg.VersionList:
                      if (inst_ver and apt_pkg.VersionCompare(ver.VerStr, inst_ver.VerStr) <= 0):
                      #print "skipping '%s' " % ver.VerStr
                      continue
                      if isSecurityUpgrade(ver):
                      security_updates += 1
                      break

                      # print the number of upgrades
                      if options and options.show_package_names:
                      pkgs = filter(lambda pkg: depcache.MarkedInstall(pkg) or depcache.MarkedUpgrade(pkg), cache.Packages)
                      sys.stderr.write("\n".join(map(lambda p: p.Name, pkgs)))
                      elif options and options.readable_output:
                      print gettext.dngettext("update-notifier",
                      "%i package can be updated.",
                      "%i packages can be updated.",
                      upgrades) % upgrades
                      print gettext.dngettext("update-notifier",
                      "%i update is a security update.",
                      "%i updates are security updates.",
                      security_updates) % security_updates
                      else:
                      # print the number of regular upgrades and the number of
                      # security upgrades
                      sys.stderr.write("%s;%s" % (upgrades,security_updates))

                      # return the number of upgrades (if its used as a module)
                      return(upgrades,security_updates)


                      if __name__ == "__main__":
                      # setup a exception handler to make sure that uncaught stuff goes
                      # to the notifier
                      sys.excepthook = _handleException

                      # gettext
                      APP="update-notifier"
                      DIR="/usr/share/locale"
                      gettext.bindtextdomain(APP, DIR)
                      gettext.textdomain(APP)

                      # check arguments
                      parser = OptionParser()
                      parser.add_option("-p",
                      "--package-names",
                      action="store_true",
                      dest="show_package_names",
                      help=_("Show the packages that are going to be installed/upgraded"))
                      parser.add_option("--human-readable",
                      "--human-readable",
                      action="store_true",
                      dest="readable_output",
                      help=_("Show human readable output on stdout"))
                      (options, args) = parser.parse_args()

                      # run it
                      run(options)

                      #-------------------------------copy ended previous line----------------------------------------------

                      Notice! no copy "#-----------------------" and end mast be 1 empty line!

                      4. Make that file executable.
                      5. If upgrade aviable you can test it running in terminal :
                      update-notifier-kde -c

                      Notice! you ma by need sudo also (i use root account)
                      sudo update-notifier-kde -c

                      6. Send me whisky

                      WHY developers not testing when they change something!!! Bad work Kubuntu!

                      Comment


                        #71
                        Re: No update notifications since upgrade

                        Dear all,

                        I was having the same problem as many of you here till yesterday.
                        Yesterday there were many updates including among other packages python, update-notifier-kde and no it works. There was first update notofication after the update for me with the little "1" staying in the system tray forever!

                        BUT. I have ppa backports repository enabled, so it might be that those updates were from that repository.

                        Comment


                          #72
                          Re: No update notifications since upgrade

                          Originally posted by miraaz
                          Got little info what going on but i no have skills resolve that.
                          Bug:

                          root@www1:~# update-notifier-kde -c
                          Traceback (most recent call last):
                          File "/usr/bin/update-notifier-kde", line 168, in aptDirectoryChanged
                          result = apt_check.run()
                          File "/usr/lib/update-notifier/apt_check.py", line 84, in run
                          if options.security_updates_unattended:
                          AttributeError: 'NoneType' object has no attribute 'security_updates_unattended'
                          Yeah, I found that error some time ago, but it's not related to the problem because update-notifier-kde isn't what's supposed to check for package updates anymore nor is it responsible for notification (of updates). All that is supposed to be under KPackageKit. I want my KK update Notifications to work they are supposed to under KK, not go back to the way it was in previous releases.

                          Comment


                            #73
                            Re: No update notifications since upgrade

                            OK as promesed hears how it dose for me.
                            This is what I got within 5min of turning on my box this afternoon.

                            [img width=400 height=300]http://i29.photobucket.com/albums/c291/vinnywright/kpackagekit.png[/img]

                            so it would seem to work hear 8)

                            VINNY
                            i7 4core HT 8MB L3 2.9GHz
                            16GB RAM
                            Nvidia GTX 860M 4GB RAM 1152 cuda cores

                            Comment


                              #74
                              Re: No update notifications since upgrade

                              When the update notification "goes away" does it leave a little "1" in the "Notifications Icon" or does it just disappear?

                              I was just thinking about it, and it seems like the difference here is those people who cut off their laptop daily and those who leave it on. I leave mine on all the time and the one time I got a notification was right after a restart.

                              Comment


                                #75
                                Re: No update notifications since upgrade

                                Originally posted by tnorris
                                When the update notification "goes away" does it leave a little "1" in the "Notifications Icon" or does it just disappear?
                                yes the 1 stays untill I finaley click it

                                in fact to get the screeney thats what I did and it had ben thare for at least 10min.

                                VINNY
                                i7 4core HT 8MB L3 2.9GHz
                                16GB RAM
                                Nvidia GTX 860M 4GB RAM 1152 cuda cores

                                Comment

                                Users Viewing This Topic

                                Collapse

                                There are 0 users viewing this topic.

                                Working...
                                X