PDA

View Full Version : New Update Notifier in Hoary!



piedamaro
November 18th, 2004, 05:55 AM
It's neat ;) Did anyone know anything about it? I was like: "what? this is an update notify icon and a simplified synaptic!"

knappen
November 18th, 2004, 06:07 AM
Never seen it before. Where did you find it?

oseb
November 18th, 2004, 07:24 AM
$ sudo apt-get install upgrade-notifier
$ sudo apt-get install gnome-app-install

This is new package. I like manually update. ^^;

Jspired
November 18th, 2004, 09:24 AM
Thanks for the tip. Going to check it out now.

HiddenWolf
November 18th, 2004, 02:50 PM
Hmm. Very Fedora. :-)

piedamaro
November 18th, 2004, 03:27 PM
Hmm. Very Fedora. :-)
It's good, I was missing a update notifier which works well (unlike apt-watch).
Also the new add/remove interface will help newbies a lot.


Never seen it before. Where did you find it?
I was poking with the ubuntu wiki, when I've found a chapter called PackageMangement or something, and there was written that they have these nice applications ready for hoary.

Jspired
November 18th, 2004, 10:22 PM
Hmm. Very Fedora. :-)


:grin:
That was exactly my thought after installing, though it does serve its purpose for some people and kudos to those who find it useful!

Sensebend
November 18th, 2004, 10:50 PM
It's neat ;) Did anyone know anything about it? I was like: "what? this is an update notify icon and a simplified synaptic!"
Whoa very useful thanks :D

Magneto
November 18th, 2004, 11:14 PM
Hmm. Very Fedora. :-)
except that it probably works ;)

panickedthumb
November 18th, 2004, 11:17 PM
I don't really dig apt-watch, but I don't yet understand how to get upgrade-notifier to work. I see it running in the process manager, but I've purposefully left upgrades waiting to see if the upgrade-notifier will actually notify me, and so far it's a bust.

Magneto
November 18th, 2004, 11:20 PM
do you have a notification area on your gnome-panel?

panickedthumb
November 18th, 2004, 11:35 PM
do you have a notification area on your gnome-panel?
yyyyup

Magneto
November 18th, 2004, 11:39 PM
yyyyup
then it is like fedora! :)

piedamaro
November 19th, 2004, 11:15 PM
then it is like fedora! :)
*LOL* No, it's not. This one works (at least for me), see the screenshot, there is the nice update icon in the notification area.

HungSquirrel
November 20th, 2004, 12:19 AM
Will this work with any repository?

I ask because I'd like to add hoary to my sources.list, get just this package (if possible), and use it to monitor warty-security without actually doing a full hoary upgrade.

jdong
November 20th, 2004, 12:25 AM
Has anyone gotten it to work? I can't get the upgrade notifier to show updates!

panickedthumb
November 20th, 2004, 12:30 AM
I purposefully left it without upgrading, as I stated earlier, and 4 hours later when I went to bed, it still hadn't shown up. This morning when I woke up, there were updates.

ubuntu-geek
November 20th, 2004, 12:49 AM
Has anyone gotten it to work? I can't get the upgrade notifier to show updates!
Same for me..

castrojo
November 20th, 2004, 01:43 AM
Doesn't work for me either, but it does for a friend of mine. :(

jdong
November 20th, 2004, 01:54 AM
ok, I'll leave my desktop on overnight and see if any updates show tomorrow... Hoary has plenty of updates, so that won't be an issue!

Magneto
November 20th, 2004, 02:00 AM
I can now add my 2 hoary cents- no work here either-

zenwhen
November 20th, 2004, 02:45 AM
Looks slick. It should make a lot of newbies happy if it works correctly.

piedamaro
November 20th, 2004, 04:11 PM
Weird. It works for me. It should follow any repository specified in sources.list and pop up the icon when there are available updates.

knappen
November 21st, 2004, 08:05 AM
Looks slick. It should make a lot of newbies happy if it works correctly.

Why only newbies?

WiLLiE
December 8th, 2004, 01:56 PM
Where is it?

I installed:

update-manager
upgrade-notifier
gnome-app-install

and there's no icon in the systray.
I even rebooted, still no joy.

(I am however up-to-date)

adbak
December 8th, 2004, 04:35 PM
You probably need to add it to your panel. Right-click on your panel, click Add To Panel, and search for the Upgrade Notifier.

WiLLiE
December 8th, 2004, 06:19 PM
You probably need to add it to your panel. Right-click on your panel, click Add To Panel, and search for the Upgrade Notifier.

I just checked (again). There's nothing (new) there.
Do I need to start the daemon manually? I don't see anything new in /etc/init.d/

I do however have some new stuff in the program menu:
Program-->System Settings-->Software Properties
Program-->System Tools-->Ubuntu Update Manager

But none of them launches the systray icon.

panickedthumb
December 8th, 2004, 07:02 PM
Icon doesn't just "launch." You'll only see it if there are available updates.

That being said, it used to come up when there were available updates for me, but not anymore.

WiLLiE
December 8th, 2004, 07:18 PM
ok.
I thought it behaved like the one in fedora.

macewan
December 9th, 2004, 01:23 AM
ok.
I thought it behaved like the one in fedora.
gksudo /usr/sbin/gnome-app-install

WiLLiE
December 9th, 2004, 01:43 AM
gksudo /usr/sbin/gnome-app-install

Yes? That pops up Add/Remove (which is empty under the System Services), not the icon in the systray.
Oh well, I guess it will show itself when there are some new packages then.. (if its not broken) :wink:

stoffe
February 21st, 2005, 01:54 AM
Is there anything I have to do for this to work? I've had these installed for quite some time, and there never pops up any notifications, no matter what...?

machiner
February 21st, 2005, 03:15 AM
Seems to work fine for me. Any repositories in my list...

I don't see the icon unless an appy I have installed needs updating. I hover over the notification area icon and it tells me the number of updates. Click it and it'll open my default package manager (synaptic in my case) or choose to install or download the updates.

Works a charm for me. Yeah - a la Fedora, ey - that's terrific. I like it.

Too bad it seems sketchy for so many other posters.

stoffe
February 21st, 2005, 03:24 AM
Seems to work fine for me. Any repositories in my list...

I don't see the icon unless an appy I have installed needs updating. I hover over the notification area icon and it tells me the number of updates. Click it and it'll open my default package manager (synaptic in my case) or choose to install or download the updates.

Works a charm for me. Yeah - a la Fedora, ey - that's terrific. I like it.

Too bad it seems sketchy for so many other posters.

So I take it you didn't need to activate it somehow then?

jdong
February 21st, 2005, 03:52 AM
Here's the deal: Upgrade-notifier relies on a nightly cron job to perform "apt-get update".


jdong@omega:~$ cat /etc/cron.daily/apt
#!/bin/sh
#

#set -e

check_stamp()
{
stamp="$1"
interval="$2"

if [ $interval -eq 0 ]; then
return 1
fi

if [ ! -f $stamp ]; then
return 0
fi

# compare midnight today to midnight the day the stamp was updated
stamp=$(date --date=$(date -r $stamp --iso-8601) +%s)
now=$(date --date=$(date --iso-8601) +%s)
delta=$(($now-$stamp))

if [ $delta -ge $interval ]; then
return 0
fi

return 1
}

update_stamp()
{
stamp="$1"

touch $stamp
}

UpdateInterval=0
DownloadUpgradeableInterval=0
eval $(apt-config shell UpdateInterval APT::Periodic::Update-Package-Lists DownloadUpgradeableInterval APT::Periodic::Download-Upgradeable-Packages)
AutocleanInterval=$DownloadUpgradeableInterval
eval $(apt-config shell AutocleanInterval APT::Periodic::Autoclean)

# laptop check, on_ac_power returns:
# 0 (true) System is on mains power
# 1 (false) System is not on mains power
# 255 (false) Power status could not be determined
# Desktop systems always return 255 it seems
if which on_ac_power >/dev/null; then
on_ac_power
if [ $? -eq 1 ]; then
exit 0
fi
fi

UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
if check_stamp $UPDATE_STAMP $UpdateInterval; then
if apt-get -qq update 2>/dev/null; then
if which dbus-send >/dev/null; then
dbus-send --system / app.apt.dbus.updated boolean:true
fi
update_stamp $UPDATE_STAMP
fi
fi

DOWNLOAD_UPGRADEABLE_STAMP=/var/lib/apt/periodic/download-upgradeable-stamp
if check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $DownloadUpgradeableInterval; then
apt-get -qq -d dist-upgrade 2>/dev/null
update_stamp $DOWNLOAD_UPGRADEABLE_STAMP
fi

AUTOCLEAN_STAMP=/var/lib/apt/periodic/autoclean-stamp
if check_stamp $AUTOCLEAN_STAMP $AutocleanInterval; then
apt-get -qq autoclean
update_stamp $AUTOCLEAN_STAMP
fi


If this isn't performed, then you'll have no luck with the tool.

ALSO:

This applet only performs the safe "apt-get upgrade" command, not the deeper, potentially riskier "apt-get dist-upgrade" command. So, especially in development branches like Hoary, it may not catch all upgrades.

stoffe
February 21st, 2005, 10:56 AM
Here's the deal: Upgrade-notifier relies on a nightly cron job to perform "apt-get update".
[...]
If this isn't performed, then you'll have no luck with the tool.Yep, yep, I understood as much, and I do have that exact file too, in that very place. If that is all it should take, then I have no idea what is up...

Is there something I could check for? Is there some daemon that should be running, or is it just a once-a-night cron job that will pop the icon then, and only then? Any suggestions for debugging this situation, in other words. :)

piedamaro
February 21st, 2005, 11:55 AM
Yep, yep, I understood as much, and I do have that exact file too, in that very place. If that is all it should take, then I have no idea what is up...

Is there something I could check for? Is there some daemon that should be running, or is it just a once-a-night cron job that will pop the icon then, and only then? Any suggestions for debugging this situation, in other words. :)
Cron should update the apt database, then the upgrade-notifier should notice the available updates.