franglais125 / apt-update-indicator

Apt Update Indicator
https://extensions.gnome.org/extension/1139/apt-update-indicator/
GNU General Public License v3.0
44 stars 17 forks source link

Apply updates not working on Ubuntu 18.04 #20

Open orschiro opened 6 years ago

orschiro commented 6 years ago

Clicking on Apply Updates doesn't have any action on Ubuntu 18.04.

Settings > Advanced > is set to Update-manager (Ubuntu only)

franglais125 commented 6 years ago

Thanks a lot for opening this issue. I'll try to investigate this soon! Any new info on this would be appreciated.

Just to be sure, do you see any errors in the logs: sudo journalctl /usr/bin/gnome-shell ?

orschiro commented 6 years ago

Dear @franglais125,

Thank you so much for looking into this!

I hope this output is of use:

-- Logs begin at Mon 2017-11-20 09:22:27 CET, end at Mon 2017-11-20 10:05:58 CET. --
Nov 20 09:22:30 x230 org.gnome.Shell.desktop[901]: glamor: EGL version 1.4 (DRI2):
Nov 20 09:22:31 x230 gnome-shell[901]: JS WARNING: [resource:///org/gnome/shell/ui/main.js 315]: reference to undefined property "MetaStage"
Nov 20 09:22:31 x230 gnome-shell[901]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 221]: reference to undefined property "MetaWindow
Nov 20 09:22:31 x230 gnome-shell[901]: JS WARNING: [resource:///org/gnome/shell/ui/osdMonitorLabeler.js 59]: reference to undefined property "
Nov 20 09:22:32 x230 gnome-shell[901]: JS WARNING: [resource:///org/gnome/shell/ui/slider.js 38]: reference to undefined property "CallyActor"
Nov 20 09:22:32 x230 gnome-shell[901]: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freede
Nov 20 09:22:32 x230 org.gnome.Shell.desktop[901]: Window manager warning: "XF86RFKill" is not a valid accelerator
Nov 20 09:22:32 x230 gnome-shell[901]: JS WARNING: [resource:///org/gnome/shell/ui/windowManager.js 1471]: reference to undefined property "Me
Nov 20 09:22:38 x230 org.gnome.Shell.desktop[1229]: glamor: EGL version 1.4 (DRI2):
Nov 20 09:22:39 x230 gnome-shell[1229]: JS WARNING: [resource:///org/gnome/shell/ui/main.js 315]: reference to undefined property "MetaStage"
Nov 20 09:22:39 x230 gnome-shell[1229]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 221]: reference to undefined property "MetaWindo
Nov 20 09:22:39 x230 gnome-shell[1229]: JS WARNING: [resource:///org/gnome/shell/ui/osdMonitorLabeler.js 59]: reference to undefined property 
Nov 20 09:22:39 x230 gnome-shell[1229]: JS WARNING: [resource:///org/gnome/shell/ui/slider.js 38]: reference to undefined property "CallyActor
Nov 20 09:22:39 x230 gnome-shell[1229]: Telepathy is not available, chat integration will be disabled.
Nov 20 09:22:40 x230 gnome-shell[1229]: JS WARNING: [/home/orschiro/.local/share/gnome-shell/extensions/drop-down-terminal@gs-extensions.zzrou
Nov 20 09:22:40 x230 gnome-shell[1229]: Some code accessed the property 'SettingsSchema' on the module 'prefs'. That property was defined with
Nov 20 09:22:40 x230 gnome-shell[1229]: Some code accessed the property 'Fields' on the module 'prefs'. That property was defined with 'let' o
Nov 20 09:22:40 x230 gnome-shell[1229]: JS WARNING: [/home/orschiro/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/extens
Nov 20 09:22:40 x230 gnome-shell[1229]: Some code accessed the property 'dump' on the module 'dump'. That property was defined with 'let' or '
Nov 20 09:22:40 x230 gnome-shell[1229]: Some code accessed the property 'KeyEnableIndicator' on the module 'config'. That property was defined
Nov 20 09:22:40 x230 gnome-shell[1229]: Some code accessed the property 'Indicator' on the module 'indicator'. That property was defined with 
Nov 20 09:22:40 x230 gnome-shell[1229]: Some code accessed the property 'IndicatorName' on the module 'config'. That property was defined with
Nov 20 09:22:40 x230 gnome-shell[1229]: Some code accessed the property 'KeyEnableUploadImgur' on the module 'config'. That property was defin
Nov 20 09:22:40 x230 gnome-shell[1229]: Some code accessed the property 'KeyShortcuts' on the module 'config'. That property was defined with 
Nov 20 09:22:40 x230 gnome-shell[1229]: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/extension.js 43]: assignment to 
Nov 20 09:22:40 x230 gnome-shell[1229]: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freed
Nov 20 09:22:41 x230 gnome-shell[1229]: JS ERROR: TypeError: content is null
                                        ClipboardIndicator<._updateButtonText@/home/orschiro/.local/share/gnome-shell/extensions/clipboard-ind
                                        wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                        ClipboardIndicator<._onPrivateModeSwitch/<@/home/orschiro/.local/share/gnome-shell/extensions/clipboar
Nov 20 09:22:41 x230 org.gnome.Shell.desktop[1229]: Window manager warning: "XF86RFKill" is not a valid accelerator
Nov 20 09:22:42 x230 gnome-shell[1229]: GNOME Shell started at Mon Nov 20 2017 09:22:39 GMT+0100 (CET)
Nov 20 09:22:43 x230 gnome-shell[1229]: Allocating size to ShellEmbeddedWindow 0x55d5530f82a0 without calling gtk_widget_get_preferred_width/h
Nov 20 09:27:13 x230 org.gnome.Shell.desktop[1229]: Archive:  /tmp/M77W9Y.shell-extension.zip
Nov 20 09:27:13 x230 org.gnome.Shell.desktop[1229]:   inflating: /home/orschiro/.local/share/gnome-shell/extensions/update-extensions@franglai
Nov 20 09:27:13 x230 org.gnome.Shell.desktop[1229]:   inflating: /home/orschiro/.local/share/gnome-shell/extensions/update-extensions@franglai
lines 1-37
orschiro commented 6 years ago

Found a workaround. The custom method is working!

image

Shemzone commented 6 years ago

Hi @franglais125, I confirm the issue also on Ubuntu 17.10 The workaround from @orschiro works fine

franglais125 commented 6 years ago

Thanks for confirming this bug, and sorry I couldn't address this yet.

Can you perhaps confirm for me what the command for the "Update Manager" on Ubuntu actually is?

This extension assumes the binary is at /usr/bin/update-manager, but apparently this is failing.

orschiro commented 6 years ago

Not with Ubuntu at the moment, @Shemzone can you check?

Shemzone commented 6 years ago

@orschiro and @franglais125 , I can't verify right now, I'll check in a few hours

Shemzone commented 6 years ago

@franglais125 and @orschiro, update-manager is located at the right place. The commands are described at http://manpages.ubuntu.com/manpages/precise/man8/update-manager.8.html Wha do you want I do now?

franglais125 commented 6 years ago

I guess i'll have to test it myself at some point. Just to be sure, can you run /usr/bin/update-manager in a terminal and confirm that it works?

rypz79 commented 6 years ago

@franglais125 yes that what I do. Open terminal->sudo apt upgrade. Unfortunately the extension can only updates with the GNOME software manager. Is there a fix/workaround for that ?

HanifCarroll commented 5 years ago

I'm on 19.04 and the indicator would always say I have 2 pending updates for gonome-shell and gnome-shell-common, I believe. When I would click apply updates, it would go through the process, but the notifications remained. After I switched to the method from @orschiro, though, the updates actually seemed to happen.

pigsflew commented 5 years ago

I'm not 100% sure this is the same issue, but it looks like update-manager on Ubuntu uses phased updates, while they left apt/apt-get/synaptic alone for powerusers to always pull the latest.

See this askubuntu post

I don't know how to fetch the phased update list (or filter them out of the apt list) but that's what i found.

franglais125 commented 4 years ago

@pigsflew that's a good point. Anyone else still experiencing this? I know it's been a while..

tmhall99 commented 4 years ago

I'm using the latest version of the extension on a fresh install of 20.04 and have the issue. When I click "Apply Updates" the software updater runs and says I'm up to date, but I still have these notifications. Screenshot from 2020-05-09 07-31-20