LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-04-2015, 12:08 AM   #1
userzero
Member
 
Registered: May 2013
Posts: 56

Rep: Reputation: Disabled
Debian Jessie/Xfce 4.10 no package update notifier


Just installed Debian Jessie/Xfce 4.10 and see there is no package update notifier (little icon in upper panel). So I installed update-notifier but despite new updates coming down the pipe, no reports from this program; it remains silent. Any ideas on how to kick start it or perhaps can someone suggest an aplett alternative?

Thanks Much,

uid:0
 
Old 02-04-2015, 07:21 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
You should use the command line instead -- APT gives a lot of information that is lost in the GUI.

Run this every day:
Code:
# apt-get update
# apt-get upgrade
If there are any "packages not upgraded" (unlikely now jessie has been frozen), you should use:
Code:
# apt-get dist-upgrade
 
Old 02-04-2015, 08:11 AM   #3
sudowtf
Member
 
Registered: Nov 2013
Posts: 205

Rep: Reputation: 46
do you use/like conky?

if so I have this in my ~/.conkyrc which updates every 5 minutes showing available updates count:
Code:
Updates: ${execi 360 aptitude search "~U" | wc -l | tail}
3rd line in this graphic:
Attached Thumbnails
Click image for larger version

Name:	2015-02-04_Selection_001.png
Views:	136
Size:	8.0 KB
ID:	17511  
 
1 members found this post helpful.
Old 05-15-2015, 05:23 AM   #4
rhpv
LQ Newbie
 
Registered: May 2015
Distribution: Debian, xfce-desktop
Posts: 2

Rep: Reputation: Disabled
I have had the same problem. Not having an update notifier is really annoying.
Fortunately, apt does update regularly without user intervention (see the apt entry in cron). Therefore a simple script that sends a message when there are updates available is sufficient.

Quote:
Originally Posted by sudowtf View Post
if so I have this in my ~/.conkyrc which updates every 5 minutes showing available updates count:
Code:
Updates: ${execi 360 aptitude search "~U" | wc -l | tail}
I used this code in a script (included below) to count the number of updates. It uses the "notify-send" function to send a notice to the desktop. You get a notice that says: "There are x updates available." It will stay on the desktop until you click on it (to make sure you know there are updates). It will only appear if there are more than 0 updates.

I called the script update-notify.sh and made it executable with "chmod u+x update-notify.sh". I scheduled it to run at every system start. But you could schedule it to run every hour using cron. It should work for all desktops since it uses libnotify. The message is in English, but it is easy to translate to other languages. It is a very simple script but I hope it helps to solve your problem.

kind regards,
rhpv

Code:
#!/bin/bash

# Written by rhpv. 14-5-2015
# Update notify script to be run in cron as update notifier in Debian Jessie 8.0
# I hope gpk-update-icon will be ported to Debian stable soon.

# Text variables to allow for easy translation
there_are="There are"
updates_available="updates available."

# Count the number of updates by using the aptitude search for upgradable packages and counting the number of lines in the list
number_of_updates=$(aptitude search "~U" | wc -l)

# For testing purposes enable line below.
# number_of_updates=2

if [ $number_of_updates -gt 0 ] ;
	then
		notify-send "$there_are $number_of_updates $updates_available" -i system-software-update --urgency=critical ;

fi
 
Old 07-18-2015, 03:12 PM   #5
rhpv
LQ Newbie
 
Registered: May 2015
Distribution: Debian, xfce-desktop
Posts: 2

Rep: Reputation: Disabled
Also an excellent alternative is to download the pk-update-icon package (available from testing/stretch). It works with packagekit (so you need to have that installed) and provides update notifications when apt is configured to update package lists automatically.

https://packages.debian.org/stretch/pk-update-icon

I made a mistake in my last post:
Quote:
Originally Posted by rhpv View Post
Fortunately, apt does update regularly without user intervention (see the apt entry in cron). Therefore a simple script that sends a message when there are updates available is sufficient.
Apparently it does not do so anymore in debian jessie. To enable automatic apt updates create the following file

/etc/apt/apt.conf.d/02periodic

containing the following code:
Code:
APT::Periodic::Enable "1";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

Last edited by rhpv; 07-18-2015 at 03:16 PM.
 
2 members found this post helpful.
Old 07-19-2015, 05:49 AM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by rhpv View Post
Also an excellent alternative is to download the pk-update-icon package (available from testing/stretch). It works with packagekit (so you need to have that installed) and provides update notifications when apt is configured to update package lists automatically.

https://packages.debian.org/stretch/pk-update-icon
Anybody wanting to use packages from stretch/sid in jessie should backport them by following this simple guide:
https://wiki.debian.org/SimpleBackportCreation

Read this to understand why: https://wiki.debian.org/DontBreakDeb..._FrankenDebian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XDG_DATA_DIRS not always set in XFCE 4.10.1-8/Debian Jessie goumba Linux - Desktop 0 09-05-2014 09:44 AM
LXer: Should Xfce or GNOME be the default desktop in Debian Jessie? LXer Syndicated Linux News 0 08-08-2014 10:10 PM
[SOLVED] update notifier for xfce - desktop independent Andy Alt Programming 1 04-30-2013 11:51 AM
Package update notifier xfce aquaboot Debian 1 09-29-2012 03:27 PM
debian update-notifier sycamorex Linux - Software 1 01-27-2008 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration