Blocked updates?

Questions about software.
dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Blocked updates?

Postby dclement » 08 Sep 2019 16:21

Hello all,

For a couple of days, my update manager keeps showing me 2 "blocked updates", namely
- GNU privacy guard (gnupg-agent);
- GNU privacy guard localization files (gnupg-l10n)
Their check boxes are grayed out. This does not prevent other updates from taking place, but the system never shows "up to date".

Searching a bit further, I found (in Synaptic) several (10?) other gpg-related packages which are waiting to be updated (gnupg, gnupg-utils, gpg...), bit they don't appear in the update manager.

Should I worry and do something about that?

TIA - best regards, Daniel

User avatar
Arjen Balfoort
Site Admin
Posts: 9333
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Blocked updates?

Postby Arjen Balfoort » 08 Sep 2019 16:46

Please, open a terminal.

First, I'd like to see which repositories are configured:

Code: Select all

inxi -r
Select and copy the output to use in your post.

Now, update apt cache:

Code: Select all

sudo apt-get update
After that, I want to see what's going wrong:

Code: Select all

sudo apt-get upgrade
Select and copy the output to use in your post.


SolydXK needs you!
Development | Testing | Translations

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: Blocked updates?

Postby dclement » 09 Sep 2019 13:05

Here we go:
Arjen Balfoort wrote:
08 Sep 2019 16:46
First, I'd like to see which repositories are configured:

Code: Select all

$ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb https://repository.solydxk.com/ solydxk-9 main upstream import
           deb http://deb.debian.org/debian/ stretch main contrib non-free
           deb http://security.debian.org/ stretch/updates main contrib non-free
           deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
           deb http://deb.debian.org/debian/ stretch-backports main contrib non-free
           deb https://download.01.org/syncevolution/apt stable main
           Active apt sources in file: /etc/apt/sources.list.d/graphics:darktable.list
           deb http://download.opensuse.org/repositories/graphics:/darktable/Debian_9.0/ /
The last 2 are for Syncevolution (syncML sync software) and Darktable (not set up in my PC at work). I tried to disable the Syncevolution repo., only one added by me on the latter PC. It did not remove the "blocked updates".
Now, update apt cache:

Code: Select all

sudo apt-get update
Done, nothing special.
After that, I want to see what's going wrong:

Code: Select all

$ sudo apt-get upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  gnupg-agent hfsprogs inotify-tools libcairo-gobject-perl
  libextutils-depends-perl libextutils-pkgconfig-perl
  libglib-object-introspection-perl libgtk3-perl libinotifytools0
  linux-headers-4.9.0-8-amd64 linux-headers-4.9.0-8-common
  linux-image-4.9.0-8-amd64 python-beautifulsoup xfce4-dict
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets suivants ont été conservés :
  dirmngr firefox-esr firefox-esr-l10n-fr firefox-solydxk-adjustments gnupg
  gnupg-agent gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
  gpg-wks-server gpgconf gpgsm gpgv scdaemon
0 mis à jour, 0 nouvellement installés, 0 à enlever et 16 non mis à jour.
(It's in French, but it should be clear.)

I'd rather not use autoremove, on occasions I've seen it try to remove quite important packages.

It looks like Synaptic would let me "select for update" these packages that did not get updated. I have not tried to apply the changes yet, though.

User avatar
Arjen Balfoort
Site Admin
Posts: 9333
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Blocked updates?

Postby Arjen Balfoort » 09 Sep 2019 13:55

You should execute the last command or else we won't see what exactly goes wrong.


SolydXK needs you!
Development | Testing | Translations

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: Blocked updates?

Postby dclement » 09 Sep 2019 14:50

That is, upgrading from Synaptic? After switching to my secondary (backup) PC, I tried with...
- gnupg-agent (one of the "blocked updates". But as soon as I select it, it's shown as "broken";
- gnupg-l10n: I can select it for upgrading, but it wants to uninstall evolution, seahorse, and many other important packages.

In case it helps, here's a link to a screenshot of my update manager (I can't manage to post the image within the message).

Should I run the autoremove command? It seems that I could suppress gnupg-agent (not gnupg-l10n).

User avatar
Arjen Balfoort
Site Admin
Posts: 9333
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Blocked updates?

Postby Arjen Balfoort » 09 Sep 2019 18:58

Please, run these in terminal (as you found out, a GUI won't help you here):

Code: Select all

sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get upgrade
The first two will hopefully fix what is broken.
The last one will upgrade your system and when it fails, you need to copy the output in your post so that we can see what's wrong.


SolydXK needs you!
Development | Testing | Translations

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: Blocked updates?

Postby dclement » 10 Sep 2019 10:02

I know these commands, I hadn't run them so far because nothing is really shown as "broken". Now:

Code: Select all

sudo dpkg --configure -a
produces no output (probably normal IIRC). Then:

Code: Select all

$ sudo apt-get install -f
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  gnupg-agent hfsprogs inotify-tools libcairo-gobject-perl
  libextutils-depends-perl libextutils-pkgconfig-perl
  libglib-object-introspection-perl libgtk3-perl libinotifytools0
  linux-headers-4.9.0-8-amd64 linux-headers-4.9.0-8-common
  linux-image-4.9.0-8-amd64 python-beautifulsoup
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 13 non mis à jour.
doesn't really seem to have "fixed" anything, whereas:

Code: Select all

sudo apt-get upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  gnupg-agent hfsprogs inotify-tools libcairo-gobject-perl
  libextutils-depends-perl libextutils-pkgconfig-perl
  libglib-object-introspection-perl libgtk3-perl libinotifytools0
  linux-headers-4.9.0-8-amd64 linux-headers-4.9.0-8-common
  linux-image-4.9.0-8-amd64 python-beautifulsoup
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets suivants ont été conservés :
  dirmngr gnupg gnupg-agent gnupg-l10n gnupg-utils gpg gpg-agent
  gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv scdaemon
0 mis à jour, 0 nouvellement installés, 0 à enlever et 13 non mis à jour.
... that's about the same result.

For good measure, I repeated the test after disabling the repos. that I had added manually (Syncevolution and Darktable), but it doesn't change the result at all.

Note that I have backports enabled (for LyX and Libreoffice)... I doubt that can be the reason, but why not? Also, perhaps deborphan could help?

User avatar
ilu
Posts: 2542
Joined: 09 Oct 2013 12:45

Re: Blocked updates?

Postby ilu » 10 Sep 2019 10:21

Please try

Code: Select all

aptitude --why-not <packagename>
on the blocked packages. Very useful command. Just don't use the aptitude interface without being very careful. It will force the installation of a lot of packages.

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: Blocked updates?

Postby dclement » 10 Sep 2019 13:55

I just tested what you suggested (without sudo). For gnupg-agent (a so-called "dummy transitional package", which I suppose I could remove):

Code: Select all

$ aptitude why-not gnupg-agent
i   python-apt       Dépend              gnupg                               
p   gnupg:i386       Fournit             gnupg                               
p   gnupg:i386       Dépend              gnupg-agent:i386 (= 2.1.18-8~deb9u4)
p   gnupg-agent:i386 Est en conflit avec gnupg-agent
Hmm...
And for gnupg-l10n, the second blocked update:

Code: Select all

$ aptitude why-not gnupg-l10n
Manually installed, current version 2.2.12-1~bpo9+1, priority optionnel
The candidate version 2.2.12-1+deb10u1~bpo9+1 has priority optionnel
No dependencies require to remove gnupg-l10n
BTW, I can see (e.g. with apt-cache policy) that the proposed updates for these two packages are from Debian backports. They were certainly installed as dependencies. But I still have backports enabled, so I'd expect them to upgrade just fine...

User avatar
Arjen Balfoort
Site Admin
Posts: 9333
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Blocked updates?

Postby Arjen Balfoort » 10 Sep 2019 15:32

Have you tried to just purge gnupg-agent in terminal?

Code: Select all

sudo apt-get purge gnupg-agent
Note: gnupg-agent is a transitional package for gpg-agent.


SolydXK needs you!
Development | Testing | Translations

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: Blocked updates?

Postby dclement » 10 Sep 2019 16:09

I had not purged it yet. Now it's done. For good measure, I re-run the commands from your previous post afterwards.

Unsurprisingly, there is now only one package in the blocked updates, namely gnupg-l10n.

gpg-agent is also one of the programs asking for updating (in Synaptic), but which I can't update (too many things to suppress).

Then I had the idea of disabling the backports again. And indeed this time, the "blocked updates" disappeared completely.

But I can't disable it permanently, if I'm to keep LyX and Libreoffice up to date.

User avatar
Arjen Balfoort
Site Admin
Posts: 9333
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Blocked updates?

Postby Arjen Balfoort » 10 Sep 2019 16:48

I think, in your case, it's backports causing these problems and makes it very difficult to solve your issue.


SolydXK needs you!
Development | Testing | Translations

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: Blocked updates?

Postby dclement » 11 Sep 2019 09:32

I've come to think it is hopeless.

With some searching I came across this thread (5 years old) which describes exactly the same issue. The bottom line was that Debian backports not necessarily contains all the dependencies for the backported packages!

Well, I'd rather live with this (now single) blocked update for now, and keep backports enabled: as today's updates reminded me, Libreoffice gets updated pretty regularly. And also, I'm awaiting LyX 2.3.3.

Maybe if I update to Buster one day (no hurry!) the new package base will solve this dependency problem.

Thanks to you (and Ilu) for your support - Daniel

User avatar
ilu
Posts: 2542
Joined: 09 Oct 2013 12:45

Re: Blocked updates?

Postby ilu » 11 Sep 2019 10:26

The gnupg stuff is important for system security. I would not leave that un-updated.

You could deinstall the offending package. On the other hand, you could also deactivate backports. Since your system is now oldstable I don't think there will be many more updates for OpenOffice. Your system will quickly grow old. The best solution: deactivate backports, update offending package, update to buster.

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: Blocked updates?

Postby dclement » 11 Sep 2019 12:08

Ah, Ilu, you don't give up easily, do you? :)
ilu wrote:
11 Sep 2019 10:26
The gnupg stuff is important for system security. I would not leave that un-updated.
I couldn't agree more. OTTH, I reckon that between the two versions: 2.2.12-1~bpo9+1 (current) and 2.2.12-1+deb10u1~bpo9+1 (proposed update, which I can't do) there should not be much difference, given the numbers.
You could deinstall the offending package.
I'd rather avoid that, because it would remove (if only temporarily) packages that are very important for me (e.g. Evolution, see above).
On the other hand, you could also deactivate backports.
That's my workaround for now.
[...] The best solution: deactivate backports, update offending package, ...
(Just a remark: once I disable the backports, no update is proposed for gnupg-agent and the likes. The newer versions are definitely in backports.)
... update to buster.
Hmm... I thought that the SolydX update manager would offer this update at one point. Do I have to explicitly tell my system to update, like I would do with a "pure" Debian, changing the repos. and all?

No problem then, but I wouldn't risk such a large upgrade during a school year. These systems (3 in total) will have to run Stretch until next summer!

User avatar
ilu
Posts: 2542
Joined: 09 Oct 2013 12:45

Re: Blocked updates?

Postby ilu » 12 Sep 2019 00:01

dclement wrote:
11 Sep 2019 12:08
Hmm... I thought that the SolydX update manager would offer this update at one point. Do I have to explicitly tell my system to update, like I would do with a "pure" Debian, changing the repos. and all?
No it doesn't and yes, you have to. Actually, this is Debian, just ... pimped :mrgreen: Arjen has a update script posted somewhere but I don't think it's well tested, I haven't used it.

And you are right, the package is already uptodate.

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: Blocked updates?

Postby dclement » 12 Sep 2019 08:18

ilu wrote:
12 Sep 2019 00:01
[...]No it doesn't and yes, you have to. Actually, this is Debian, just ... pimped :mrgreen: [...]
Well, good to know that one can choose when to upgrade! (I remember that when I was under Linux Mint Debian, it was a different story.) I'll do it when I have some time ahead of me.

I like the "pure but pimped Debian" style.


Return to “Software”

Who is online

Users browsing this forum: No registered users and 1 guest