(Recommended) Applications are reinstalled without warning

Hej,

I just switched to Opensuse from another Linux distribution. Apart from some positive things and some new different of doing things there is one problem I don’t know how to handle.

I use Opensuse 11.4, 32 Bit, Gnome desktop. I deinstalled quite a lot of the supplied software because I don’t have any use for it (all kind of software, like Orca, xchat, planner…).

When entering Yast the deinstalled software is listed in the “recommended” section. When I install other software from rpms all the software from this section gets reinstalled, silently (which is especially annoying when on a GPRS connection…).

How do I prevent this? How can I remove the recommendations?

Thanks.

When you remove a package it should be added to /var/lib/zypp/SoftLocks. Once there it will not be selected for installation just because it is a soft dependency.

If this is not the behavior you are seeing with the GTK frontend, please open a bug report in https://bugzilla.novell.com/. It works with the Qt frontend and zypper.

RedDwarf wrote:

>
> When you remove a package it should be added to /var/lib/zypp/SoftLocks.
> Once there it will not be selected for installation just because it is a
> soft dependency.
>
> If this is not the behavior you are seeing with the GTK frontend,
> please open a bug report in https://bugzilla.novell.com/. It works with
> the Qt frontend and zypper.
>
Beside that you can try to add a package lock with zypper as a workaround:

zypper al <packagename>

as root, this has to work definitely.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

The packages are added to the SoftLocks file, but that seems to be ignored. Next time the reinstall will happen (and it reinstalls each and every program I deinstalled) I will try the uninstall via the QT GUI which seems to be a little more powerful - there is a taboo option and no “recommended” group.

Thanks for your help.

On 2011-05-19 17:36, Hains wrote:
>
> The packages are added to the SoftLocks file, but that seems to be
> ignored. Next time the reinstall will happen (and it reinstalls each and
> every program I deinstalled)

Maybe there are dependencies involved that want those packages. Perhaps a
metapackage or pattern.

> I will try the uninstall via the QT GUI
> which seems to be a little more powerful - there is a taboo option and
> no “recommended” group.

The quick method to launch it:

yast2 --qt sw_single
yast2 --qt online_update


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Hm, it happened more than once. I was setting up the new system, so I did some manual installations. And I tried to deinstall more than once (not everything after the first two reinstalls, just partly to watch). The software I installed (and that triggered the reinstall) is different in nature (like Opera, CollabNet SVN client, Skype), the software I deinstalled likewise (Orca, xchat, all the games, everything related to scanning, evolution, totem, planner, cheese, gnucash…). As a Suse beginner I can’t see any connections. Are there metapackages like “desktop tools” that could fire? The “Schemes” that are visible in the QT GUI don’t seem to act like metapackages.

I switched the GUI toolkit permanently as shown here: Switch Yast Interface to QT

On 2011-05-19 22:36, Hains wrote:

> I switched the GUI toolkit permanently as shown here: ‘Switch Yast
> Interface to QT’ (http://tinyurl.com/2vhougk)

Try to uninstall those packages using YaST. If it says it can not because
some other thing needs it, you know the cause.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

The uninstalling works without problems in either GUI, the problem is the (silent, not announced, never acknowledged) reinstall. In the GUI all the uninstalled stuff is listed as “recommended”, I thought it may have to do something with this. How are these “recommendation” generated anyway? They are … completely off for me. In fact it can’t be more wrong than recommend what I deliberately uninstalled.

Thanks for your support.

On 2011-05-20 01:36, Hains wrote:
>
> robin_listas;2341973 Wrote:
>> Try to uninstall those packages using YaST. If it says it can not
>> because some other thing needs it, you know the cause.
>>
>
> The uninstalling works without problems in either GUI, the problem is
> the (silent, not announced, never acknowledged) reinstall. In the GUI
> all the uninstalled stuff is listed as “recommended”, I thought it may
> have to do something with this. How are these “recommendation” generated
> anyway? They are … completely off for me. In fact it can’t be more
> wrong than recommend what I deliberately uninstalled.

I have never seen that.

If you can uninstall a package without complaint, I don’t understand they
been automatically reinstalled.

All that in the QT YaST interface? Or with another program? You may have
found a bug.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

“Recommendations” are in the RPM packages themselves, stored as any other dependency. The packager decides what to recommend.
As said, if the GTK interface automatically selects for installations packages that are in the /var/lib/zypp/SoftLocks file it’s a bug.

If you test, you will see that an execution of “zypper install-new-recommends” will not select those packages. If you remove the package from /var/lib/zypp/SoftLocks and run “zypper install-new-recommends” again now it will be selected.

martin_helm advice is valid (supposing the GTK interface doesn’t ignore also locks), but you need to file a bug report if you want the problem to be fixed.

Hej,

thank you.

I will install Suse with a similar setup on another computer and will see if I can reproduce this behaviour.

Something fishy is happening here. I’ve tried to hunt down what’s causing the java-openjdk packages to reinstall whithout me being noticed, I’ve installed the sun java packages instead, I’ve even gone so far as to mark the openjdk packages as taboo, but that doesn’t seem to help either. Today I got two updates, first one was two packages marked as recommended, one mesa package and one xorg driver package, no change in yast of the taboo marked openjdk packages, Later there was an update for Google Earth, guess what, after that update the taboo marks were gone for the openjdk packages. And yes though I’m a Gnomer I use the QT interface for Yast. What’s going on?

hank se wrote:

>
> Something fishy is happening here. I’ve tried to hunt down what’s
> causing the java-openjdk packages to reinstall whithout me being
> noticed, I’ve installed the sun java packages instead, I’ve even gone so
> far as to mark the openjdk packages as taboo, but that doesn’t seem to
> help either. Today I got two updates, first one was two packages marked
> as recommended, one mesa package and one xorg driver package, no change
> in yast of the taboo marked openjdk packages, Later there was an update
> for Google Earth, guess what, after that update the taboo marks were
> gone for the openjdk packages. And yes though I’m a Gnomer I use the QT
> interface for Yast. What’s going on?
>
>
There seems to be a related discussion that kpackagekit ignores the locks
“KPackageKit will ignore package locks”
on the mailing list opensuse@opensuse.org


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

martin_helm wrote:
> There seems to be a related discussion that kpackagekit ignores the locks
> “KPackageKit will ignore package locks”
> on the mailing list opensuse@opensuse.org
>
Just to quote the essential part here

On 5/19/2011 2:42 PM, Marcus Meissner wrote:
> On Thu, May 19, 2011 at 02:36:18PM -0700, John Andersen wrote:
>> Just a word to the wise, if you have Locked locked packages in Yast/Zypp for what ever reason,
>> the little Updater tool KpackageKit that lives in your task bar will erase the locks
>> that are stored in /etc/zypp/locks and update packages that you may need to remain
>> back-level.
>>
>> Three is a bugzila report (690038) of this already but as of today it is still
>> malfunctioning.
>
> Yes, the PackageKit update is still in the works. :confused:
>
> Ciao, Marcus

For those that need their locks to survive well meaning staff updates
you can set /etc/zypp/locks immutable for the time being. Just remember
who did it and who to blame. :wink:

As root:
chattr +1 /etc/zypp/locks

This seems not to interfere with Yast software update process,
but removing the lock can’t be done in yast till you remove
the immutable.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce 9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia ION | 3GB Ram

martin_helm wrote:

> There seems to be a related discussion that kpackagekit ignores the locks
> “KPackageKit will ignore package locks”
> on the mailing list opensuse@opensuse.org

To summarize, the consensus was to not use KPackageKit - I gave up and
removed it from all default actions I could find as well as the toolbar.
Got tired of removing things every time it ran.


Will Honea

I’m on Gnome and don’t use KPackageKit, don’t have it installed, the problem must be deeper down the system, probably in zypper.

the command “chattr +1 /etc/zypp/locks” should of course be “chattr +i /etc/zypp/locks” and that works well on my system, thankyou!

hank se wrote:

>
> I’m on Gnome and don’t use KPackageKit, don’t have it installed, the
> problem must be deeper down the system, probably in zypper.
>
You still have packagekit on gnome - I guess - for the updates?


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

I see, yes we have packagekit, we just never notice that. And I only looked for KPackageKit.

Hopefully those issuses are solved with todays update:

softwaremgmt-201105 - PackageKit: Update to version 0.6.14 and various bugfixes

This patch upgrades PackageKit to the latest stable version (0.6.14) and fixes a crash in PackageKit which prevented the update viewer to get the list of pending updates.
Additionally it fixes a bug where the updates service (PackageKit) would not tell the update viewer application about the current download speed.
It should also resolve issues with lost package locks (bnc#690038) and improve the issue with packagekitd blocking zypper. (bnc#689627)