LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   What command to use in Package Update Indicator on Debian 10? (https://www.linuxquestions.org/questions/debian-26/what-command-to-use-in-package-update-indicator-on-debian-10-a-4175664416/)

linustalman 11-17-2019 04:16 AM

What command to use in Package Update Indicator on Debian 10?
 
2 Attachment(s)
Hi.

I usually update via the terminal but am wondering what command to use with the Package Update Indicator program.

I've tried these but when I click 'Install Updates', nothing happens:
Code:

sudo apt update && sudo apt upgrade
Code:

sudo apt-get update && sudo apt-get upgrade

PECONET009 11-17-2019 04:21 AM

Have you tried by just putting in; apt update?
 
Have you tried by just putting in;
apt update

linustalman 11-17-2019 04:24 AM

Quote:

Originally Posted by PECONET009 (Post 6058764)
Have you tried by just putting in;
apt update

Hi PECONET009. Just tried that - still nothing.

hazel 11-17-2019 06:27 AM

Maybe you have to close the preferences window before the buttons in the main window become active.

[rant]This is the kind of thing that seriously annoys me! Why add an extra layer of complication to updating? What's wrong with just using the identical commands in a terminal?[/rant]

PECONET009 11-17-2019 06:28 AM

That is very odd.
 
Quote:

Originally Posted by linustalman (Post 6058765)
Hi PECONET009. Just tried that - still nothing.

That is very odd indeed.
Try this site out and see if it gives you any answers, more info here:
Package: package-update-indicator (4-2 and others) :
https://packages.debian.org/sid/gnom...date-indicator

linustalman 11-17-2019 06:35 AM

IIRC, the update notifier in Debian 9 required no tweaking and just worked.

linustalman 11-17-2019 09:03 AM

1 Attachment(s)
The icon is now orange. It used to be red before when updates were available. Not sure what orange means.

Firerat 11-17-2019 10:50 AM

return it to the default

/usr/bin/gpk-update-viewer


and stop miss-configuring things

Firerat 11-17-2019 10:58 AM

Quote:

Originally Posted by hazel (Post 6058798)
[rant]This is the kind of thing that seriously annoys me! Why add an extra layer of complication to updating? What's wrong with just using the identical commands in a terminal?[/rant]



Code:

apt show package-update-indicator

Package: package-update-indicator
Version: 4-2
Priority: optional
<snip>
Tag: uitoolkit::gtk
Download-Size: 30.9 kB
APT-Sources: http://ftp.uk.debian.org/debian testing/main amd64 Packages
Description: Notify about available software updates
 This small utility which regularly checks for software updates and notifies
 the user about available updates using desktop notifications and either
 a status notifier icon or a system tray icon.
 .
It is primarily intended for desktops which do not already have this
 functionality built-in, such as Xfce.



#


linustalman 11-17-2019 11:41 AM

The command for installing updates was blank by default. I brought it back to that. I will just use the program to tell me of updates available and manually update then via the terminal.

Firerat 11-17-2019 11:55 AM

Quote:

Originally Posted by linustalman (Post 6058923)
The command for installing updates was blank by default. I brought it back to that. I will just use the program to tell me of updates available and manually update then via the terminal.

I installed it, and opened up the prefs

Code:

/usr/bin/gpk-update-viewer
was the default

maybe it is different in Buster

changes you make to the config will end up in

~/.config/package-update-indicator/


exit your DE
move ( or remove ) ~/.config/package-update-indicator/

log back in, and its defaults should be restored

linustalman 11-17-2019 12:11 PM

Quote:

Originally Posted by Firerat (Post 6058929)
I installed it, and opened up the prefs

Code:

/usr/bin/gpk-update-viewer
was the default

maybe it is different in Buster

changes you make to the config will end up in

~/.config/package-update-indicator/


exit your DE
move ( or remove ) ~/.config/package-update-indicator/

log back in, and its defaults should be restored

I simply deleted the line in the GUI app and it did the same thing. Thanks anyway.

linustalman 11-17-2019 12:39 PM

Re: https://www.linuxquestions.org/quest...6/#post6058850

From the terminal, I ran:

Code:

sudo apt update && sudo apt upgrade && sudo apt full-upgrade
and got this:

Code:

74 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 133 MB of archives.
After this operation, 15.4 kB of additional disk space will be used.
Do you want to continue? [Y/n]


Firerat 11-17-2019 02:27 PM

1 Attachment(s)
from https://debian-handbook.info/browse/...-upgrades.html

Quote:

...
...
These tools work very well for servers, but desktop users generally prefer a more interactive system. That is why the “Debian desktop environment” task installs gnome-packagekit (at least when you select GNOME as desktop environment). It provides an icon in the notification area of desktop environments when updates are available; clicking on this icon then runs gpk-update-viewer, a simplified interface to perform updates. You can browse through available updates, read the short description of the relevant packages and the corresponding changelog entries, and select whether to apply the update or not on a case-by-case basis.

linustalman 11-18-2019 02:18 PM

The icon was red just now and I got this output in the terminal:

from

Code:

sudo apt update && sudo apt upgrade && sudo apt full-upgrade
Code:

The following packages will be upgraded:
  lightning thunderbird
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.4 MB of archives.
After this operation, 32.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]


Firerat 11-18-2019 04:17 PM

Quote:

Originally Posted by linustalman (Post 6059374)
The icon was red just now and I got this output in the terminal:

from

Code:

sudo apt update && sudo apt upgrade && sudo apt full-upgrade

"blindly" doing full-upgrade is not always the best idea

from man apt
Quote:

upgrade (apt-get(8))
upgrade is used to install available upgrades of all packages currently installed on the system from the sources
configured via sources.list(5). New packages will be installed if required to satisfy dependencies, but existing packages
will never be removed. If an upgrade for a package requires the removal of an installed package the upgrade for this
package isn't performed.

full-upgrade (apt-get(8))
full-upgrade performs the function of upgrade but will remove currently installed packages if this is needed to upgrade
the system as a whole.
most of the time it is fine, but it could result in something unexpected.

best to
Code:

sudo apt update && sudo apt upgrade
note the end status report about the "not upgraded"
and review what is still outstanding ( if any ) with
Code:

apt list --upgradable
or you could go straight to

Code:

sudo apt full-upgrade
breaking it down like this means you are more informed about what is going on.

but as I said, most of the time it doesn't matter

Dx2 Ranged 04-29-2020 05:41 AM

Package updater indicator's default settings refers to gnome-packagekit's /usr/bin/gpk-update-viewer. If you are not using gnome, but another DE, you can use synaptic-exec if you have that installed.

linustalman 04-29-2020 06:33 AM

Quote:

Originally Posted by Dx2 Ranged (Post 6117205)
Package updater indicator's default settings refers to gnome-packagekit's /usr/bin/gpk-update-viewer. If you are not using gnome, but another DE, you can use synaptic-exec if you have that installed.

Hi Dx2 Ranged. I don't see 'gpk-update-viewer' package in my /usr/bin/. The updater is running fine - it ran today, informing me of 4 packages to update. I updated them via the terminal and the system tray update icon eventually went away.

Dx2 Ranged 04-29-2020 07:05 AM

I know but I mentioned it if you want to install via gui with package-update-indicator and not via a terminal. :)

linustalman 04-29-2020 07:15 AM

Quote:

Originally Posted by Dx2 Ranged (Post 6117241)
I know but I mentioned it if you want to install via gui with package-update-indicator and not via a terminal. :)

Ah, I see. :-)

BTW - what package needs to be installed to get '/usr/bin/gpk-update-viewer'?

Dx2 Ranged 04-29-2020 07:18 AM

Gnome-packagekit. Personally I don't like it and prefer Synaptic.

linustalman 04-30-2020 01:58 AM

Quote:

Originally Posted by Dx2 Ranged (Post 6117243)
Gnome-packagekit. Personally I don't like it and prefer Synaptic.

I just checked, the gnome-packagekit was already installed.


All times are GMT -5. The time now is 09:20 PM.