Bug 5770 - Visually deselected packages installs anyway (suggested packages)
Summary: Visually deselected packages installs anyway (suggested packages)
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard: MGA8TOO
Keywords:
: 6445 8055 10764 11029 12959 30434 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-06 11:48 CEST by Morgan Leijström
Modified: 2022-05-15 19:19 CEST (History)
9 users (show)

See Also:
Source RPM: rpmdrake-6.32-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Morgan Leijström 2012-05-06 11:48:20 CEST
Description of problem:
It installs packages that was automatically selected but which i had then deselected

Version-Release number: urpmi-6.48.1-1.mga2

How reproducible:  Both of tried installs in https://bugs.mageia.org/show_bug.cgi?id=5704#c6 )

Steps to Reproduce: follow instructions there, plus in mcc select firefox-sv, accept dependencies, then search and deselect hunspell-en, and locales-en.
(For unknown reason they got selected, Bug 5708)
Boxes get unchecked, but clicking execute it still wants them, listing:

- firefox-10.0.4-1.mga2.i586
- firefox-sv_SE-10.0.4-1.mga2.noarch
- hunspell-1.3.2-2.mga2.i586
- hunspell-en-0.20110318.1-5.mga2.noarch
- hunspell-sv-1.44-5.mga2.noarch
- indexhtml-1-7.mga2.noarch
- libmozjs185_1.0-1.85-3.mga2.i586
- libproxy-mozjs-0.4.7-6.mga2.i586
- libproxy1-0.4.7-6.mga2.i586
- locales-en-2.14.1-3.mga2.i586
- mailcap-2.0.4-27.mga2.noarch

The mechanincs why they are installed may be the same as Bug 5708,  -BUT:
Anyhow this bug is about that 
 * the checkboxes should display the same as it really is about to do! *
Comment 1 Manuel Hiebel 2012-05-06 12:03:58 CEST
that is because hunspell-en (which require locales-en) is a suggest of firefox, and rpmdrake install as default the suggested rpm.

Thierry maybe there is a way to not install the suggested one ?

Summary: Visually deselected packages installs anyway => Visually deselected packages installs anyway (suggested packages)
Source RPM: urpmi-6.48.1-1.mga2.src.rpm => rpmdrake
Assignee: bugsquad => thierry.vignaud

Comment 2 Marja Van Waes 2012-05-26 13:04:30 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 3 Manuel Hiebel 2012-06-17 15:09:32 CEST
*** Bug 6445 has been marked as a duplicate of this bug. ***

CC: (none) => LpSolit

Manuel Hiebel 2012-06-17 15:09:55 CEST

Whiteboard: (none) => MGA2TOO
Keywords: NEEDINFO => (none)

Comment 4 Marja Van Waes 2012-07-06 15:05:32 CEST
Please look at the bottom of this mail to see whether you're the assignee of this  bug, if you don't already know whether you are.


If you're the assignee:

We'd like to know for sure whether this bug was assigned correctly. Please change status to ASSIGNED if it is, or put OK on the whiteboard instead.

If you don't have a clue and don't see a way to find out, then please put NEEDHELP on the whiteboard.

Please assign back to Bug Squad or to the correct person to solve this bug if we were wrong to assign it to you, and explain why.

Thanks :)

**************************** 

@ the reporter and persons in the cc of this bug:

If you have any new information that wasn't given before (like this bug being valid for another version of Mageia, too, or it being solved) please tell us.

@ the reporter of this bug

If you didn't reply yet to a request for more information, please do so within two weeks from now.

Thanks all :-D
Comment 5 Alex Loginov 2012-09-28 16:54:47 CEST
Firefox falls always with libproxy-mozjs
Solution:
# rpm -e --nodeps libproxy-mozjs

CC: (none) => loginov_alex

Comment 6 Manuel Hiebel 2012-09-28 22:08:49 CEST
(In reply to comment #5)
> Firefox falls always with libproxy-mozjs
> Solution:
> # rpm -e --nodeps libproxy-mozjs

what ? this is nothing related to this bug.. (and was fixed by blino..)
Comment 7 Manuel Hiebel 2012-11-12 23:44:59 CET
*** Bug 8055 has been marked as a duplicate of this bug. ***

CC: (none) => inster.css

Manuel Hiebel 2012-11-12 23:45:24 CET

Whiteboard: MGA2TOO => MGA2TOO 3alpha3

Comment 8 Barry Jackson 2013-03-24 15:31:24 CET
This bug is still valid.

For example in rpmdrake search for "opencpn"

This suggests a plugin which rpmdrake wants to install.
Deselect the plugin and the next window shows it will still be installed.

After repeating this several times it is possible to get it to show that only the base package will be installed.

Proceeding with the install then finally shows that both packages are installed anyway.

It is then possible to deselect the plugin and uninstall it using rpmdrake.

CC: (none) => zen25000

Comment 9 James Kerr 2013-07-13 08:20:30 CEST
*** Bug 10764 has been marked as a duplicate of this bug. ***

CC: (none) => coburn

Comment 10 Manuel Hiebel 2013-08-19 11:08:59 CEST
*** Bug 11029 has been marked as a duplicate of this bug. ***

CC: (none) => oeai

Manuel Hiebel 2013-08-19 11:09:36 CEST

Whiteboard: MGA2TOO 3alpha3 => MGA2TOO MGA3TOO

Comment 11 ra oeai 2013-08-19 13:45:43 CEST
well i didn't select any package, i just wanted to see a list of files that it will install and it wasn't marked anyhow
Comment 12 ra oeai 2013-08-19 13:48:00 CEST
the mechanics of this can be different, because if package was downloaded in rpm/cache then this can be checked by some service and this can cause the installation process, not only internal markup in drakrpm tasks
Frédéric "LpSolit" Buclin 2013-08-19 14:37:50 CEST

CC: LpSolit => (none)

Comment 13 Morgan Leijström 2014-01-08 20:39:20 CET
still valid mga4 b2+ , drakrpm 6.7
Example: in update, deselected drakxtools, but it got updated anyway.
Alex Loginov 2014-01-20 11:46:33 CET

CC: loginov_alex => (none)

Comment 14 Florian Hubold 2014-08-24 17:47:32 CEST
*** Bug 12959 has been marked as a duplicate of this bug. ***
Florian Hubold 2014-08-24 17:47:55 CEST

CC: (none) => doktor5000

Comment 15 Morgan Leijström 2014-11-05 21:06:16 CET
still valid on cauldron
Comment 16 Thomas Andrews 2015-03-02 15:38:06 CET
Still valid as of this morning in Cauldron. Earlier today I had occasion to activate core updates testing to test the gtk=2.0 packages on one of my 32-bit installs of Mageia Beta 3. When I went to update, the libreoffice packages up for testing were also listed and selected. Not wanting to test those, I deselected them. But, when I went to install the packages I wanted, they were still shown to be selected.

CC: (none) => andrewsfarm

Comment 17 NOTMY NAME 2015-12-17 16:21:14 CET
This bug MIGHT be worse than you think.

My experience, reported in 

	https://forums.mageia.org/en/viewtopic.php?f=7&t=10571&p=61236&hilit=+extreme+#p61236  

shows that some packages that were about to be included in a "download/install" were not even "checked" (ie in the download box). 


I tested the following (each is part of the whole sequence) on randomly selected target packages:

1.  click on a package line to view it; 
2.  click on a package line, then click on another package line instead;
3.  click on a package line, then view some part of its finer details 
        (eg Details, Dependencies, Files, Changelog);
4.  on another package line, "check" to download, then "uncheck";
5.  on another package line, "check" to download, 
    then click "Apply" to commence download.

Instead of one package (and dependencies) it appears that ALL packages touched seem to be on the notification list.

So, to me, it seems that packages are included for install (at least in the advice box) whether they were "check-box" selected, or not.

I note too that during part of the sequence (described in the Forum) something WAS downloaded, but it happened unexpectedly and fast that I did not get to see what it was.  [I assumed it was "additional detail" about the package being looked at.  I suppose, the point here is that I didn't get to see or approve the download.]

Sorry, I am unclear exactly what "Cauldron" is.  I think I am using only Std official release packages for Mageia5.  (Exception: One or two very useful software were downloaded as rpms, and installed from the HD.)


FYI (for what it's worth)

I am using:
Mageia-5
kernel 4.1.13-desktop-2.mga5
32-bit
Mate

CC: (none) => temporary

Comment 18 Thomas Andrews 2015-12-17 16:51:25 CET
"Cauldron" is the set of repositories containing packages for the Mageia version currently under development. Once a version becomes "Official," the contents of Cauldron are moved into the "Official" repositories for that version.

Right now, Cauldron contains packages for Mageia 6. When I posted Comment 16, it contained what was to become Mageia 5 once enough bugs were worked out.

With regard to this particular bug, I haven't seen it in months. For me, it disappeared sometime before the Mageia 5 RC was released.
Comment 19 Thomas Andrews 2018-03-20 15:48:02 CET
This bug has re-appeared in Mageia 6. It was discovered as a result of recent tests of the Plasma 5.12.2 update.

To illustrate the problem, I used a VirtualBox Mageia 6 guest that was fully updated, but had not been updated from anything in the testing repositories, including Plasma 5.12.2.

After activating all updates testing repositories, including tainted and 32-bit, I ran Mageia Update from within MCC. A very long list of preselected packages came up, which included, among others, hundreds of packages involved in the Plasma update. 

I decided to simulate a test of a kernel update, using three of the packages on the list, cpupower, kernel-desktop-latest, and kernel-desktop. (Those packages had not yet been assigned to QA, but for purposes of this test that doesn't matter.)

After using the "select all" button to deselect all packages, I took more than usual care to select the three packages above, and ONLY those three packages. But, after clicking on the "update" button, the following message popped up:

The following 8 packages are going to be installed:

- cpupower-4.14.28-1.mga6.x86_64
- kernel-desktop-4.14.28-1.mga6-1-1.mga6.x86_64
- kernel-desktop-latest-4.14.28-1.mga6.x86_64
- lib64okularcore8-17.12.2-1.mga6.x86_64
- lib64qt5core5-5.9.4-1.1.mga6.x86_64
- okular-17.12.2-1.mga6.x86_64
- qtbase5-common-5.9.4-1.1.mga6.x86_64
- task-obsolete-6-126.mga6.noarch

59MB of additional disk space will be used.

61MB of packages will be retrieved.

Is it ok to continue?

The last five packages on the above list are all associated with the pending Plasma 5.12.2 update, but not with a kernel update.

I canceled the update and checked again - none of those last five packages were selected, according to the boxes in the gui. I closed Mageia update and tried again, with the same result.

Checking on real hardware that has been updated to Plasma 5.12.2, and therefore has a MUCH shorter list from testing, and I do not see the problem.

This bug was originally filed under an old Cauldron. Adding MGA6TOO to the Whiteboard, but perhaps the bug should also be re-filed under Mageia 6 to get the needed attention. Be aware that it only adds to the difficulty of properly testing the massive Plasma 5.12.2 update.

Whiteboard: MGA2TOO MGA3TOO => MGA2TOO MGA3TOO MGA6TOO

Comment 20 David Walser 2018-03-20 16:20:29 CET
Interesting!  I wonder if it is the presence of task-obsolete that is making the bug rear its head.  I.e. because it obsoletes something you have installed, it gets automatically selected by MageiaUpdate even if you don't select it.
Comment 21 Thomas Andrews 2018-03-20 18:07:57 CET
(In reply to David Walser from comment #20)
> Interesting!  I wonder if it is the presence of task-obsolete that is making
> the bug rear its head.  I.e. because it obsoletes something you have
> installed, it gets automatically selected by MageiaUpdate even if you don't
> select it.

Like maybe it obsoletes the installed versions of the other four packages that I didn't select?
Comment 22 Thomas Andrews 2018-03-20 18:32:09 CET
Yes, task-obsolete lists the other four as dependencies.

Well now something else is interesting. If I select just task-obsolete and OK the dependencies, the resultant update list shows task-obsolete TWICE!
Comment 23 David Walser 2018-03-20 23:28:14 CET
I think we're on to something :o)
Comment 24 Lewis Smith 2018-03-21 10:07:08 CET
Mageia 6 64-bit real hardware
MCC -> Update System (AKA MageiaUpdate)

I have seen this problem for a long time, but usually managed to get round it by multiple passes of the selected packages list until the final proposed list was correct. Sometimes this necessitated doing longish lists in sections.
I have only been aware of it when *ordering the pkg list by version*.

The recent huge Qt5-KF5-Plasma updates have brought this to a head, because MageiaUpdate makes them quasi-impossible to apply that way.
If you try to select a block of pkgs of same version, and work through ticking them (accepting offered dependancies), at the end you often see:
- some of those pkgs you selected become UNselected
- wildly irrelevant pkgs outside the wanted section selected
- trying to un-select those:
-- insistence on *installing* their dependant pkgs
-- other pkgs get arbitrarily selected
- trying to re-select wanted pkgs gives the same problems as initially
- if you do manage to coerce the visible tick list to what you want, the final offered pkgs list to update is a nonsense: including pkgs you do not want, omitting some you do want.
Comment 25 James Kerr 2018-03-21 11:11:09 CET
I always use rpmdrake's "All Updates" filter to select packages from testing and have not experienced the problems described here. 

I have installed the entire plasma stack update (about 500 packages) in a single transaction without any problems. I have done it three times - twice in VM's (64bit and 32bit) and once on real hardware, without any problems at all.

IMHO MageiaUpdate is the wrong tool to use when "cherry-picking" packages. It is not designed for that purpose.

CC: (none) => jim

Comment 26 David Walser 2018-03-22 12:19:39 CET
It's not fair to say that it's not designed for that purpose when the whole interface is built around allowing you to do that.  It's not designed well for that purpose, as it lets you cherry pick subpackages with the same SRPM, which is wrong, but rpmdrake isn't any better.  MageiaUpdate is just buggy and that's the problem here.

Apparently there's a dragoraUpdate in the manatools package.  It's worth checking to see if it works better too.
Comment 27 Thomas Andrews 2018-03-23 02:21:07 CET
I have just discovered that in at least two completed real hardware Plasma updates, when lib64okularcore8-17.12.2-1.mga6.x86_64 (one of the packages pulled in by task-obsolete) was installed, lib64okularcore7-16.12.3-2.mga6.x86_64 was not removed. 

Shouldn't it have been? And if it should have been, is this a bug in Mageia Update, or a Plasma update bug?
Comment 28 Morgan Leijström 2018-03-24 17:23:26 CET
This is as it should be. Citing replies i got on dev mail list:
----------------8<-------------------

>> a feature of libification. If library is properly libified, it
>> stays installed until it's not needed by any other pkg and you remove it
>> with 'urpme --auto-orphans'.
Just tested with --auto-orphans (but not accepting)
and it so not want to remove any lib64okularcore
I do not remember history of the *3 and *5 versions, i may have marked then during some upgrade.

But also, it do not want to remove either *7 nor *8
And maybe that is good, at least it is safe.

>> Old libs are removed from mirrors, but not from users' machines.
> Note also that urpmq queries your enabled repos, so this tells you that:
>
> lib64okularcore3-4.12.5-1.mga4
> lib64okularcore5-4.14.3-2.mga5
>
> are not in the Mageia 6 repos, which makes sense are they're from
> Mageia 4 & 5 respectively, and:
>
> lib64okularcore8-17.12.2-1.mga6
>
> is not in your enabled repo - given the version number I guess it
> comes from the KDE update currently in Core Updates Testing, and you
> likely have this repo disabled by default. If you query `urpmq
> --searchmedia testing okularcore`, it should find it too.
Yep

# urpmq --searchmedia testing okularcore --fuzzy
lib64okularcore8
libokularcore8
> Cheers,
> Rémi
Yes i have installed from testing, and it is was disabled.

Now i enabled testing, and try:

# LC_ALL=C urpmq --whatrequires lib64okularcore8
lib64okularcore8
okular
okular-devel

# LC_ALL=C urpmq --whatrequires lib64okularcore7
lib64kookularGenerator_odp15
lib64kookulargenerator_odt15
lib64okularcore7
okular
okular-devel
Comment 29 Thomas Andrews 2018-03-24 18:08:50 CET
I raised the red flag because I'm having a printing problem that only seems to involve Okular, not Gwenview or the other Plasma apps that I have tried. Gwenview doesn't have an old library like this, so when Okular did it looked very suspicious. So I asked a few questions.

I raised a bug about the printing problem elsewhere. It's most likely an upstream bug. But, discussion on that doesn't belong here.
Comment 30 Morgan Leijström 2018-03-26 02:56:47 CEST
Duplicate? :
Bug 22831 - Mageia Control Center - Install packages: Fails to unselect pkgs if task-obsoletes forces to do
Comment 31 Thomas Andrews 2018-03-26 21:47:00 CEST
(In reply to Morgan Leijström from comment #30)
> Duplicate? :
> Bug 22831 - Mageia Control Center - Install packages: Fails to unselect pkgs
> if task-obsoletes forces to do

I'm not so sure. It could be that we sidetracked ourselves with this task-obsolete observation, and there may be two (or more I suppose) bugs at work.

Testing in my vbox test Plasma 5.8 install.. 

After getting pending approved updates, 6-10 (I forget exactly), I activated testing repositories, and once again tried selecting just those related to the kernel, as I did in Comment 19. This time the vbox additions were there too, so I also selected those. Everything seemed normal. When I clicked on "Update" task-obsolete and the others had not been selected - just the ones I had wanted. Just as was supposed to be.

I canceled it, selected all, then sorted the list by version, highest first, and deselected all. Then I went through the list again, looking for the kernel packages. The vbox additions came up first, and I selected the "-latest" package. Up popped the message about selecting the additions themselves, and the kernel. as should be, but when I OKed that and went back, the box next to the additions was still unchecked. Clicking on that, a box popped up telling me that the "-latest" and the kernel had to be deselected. When I OKed that and went back, BOTH boxes were checked. More checks, and more discrepancies - whatever state was showing in the checkboxes did not agree with the dependencies notices.

Scrolling down to the kernel packages, and the same thing was happening. Neither showed as selected. I clicked on the kernel-latest package, and the window popped up, telling me that the kernel and additions packages had to be deselected - when the boxes indicated they weren't selected at all. And, well, you get the idea.

Selecting all once more, and sorting according to name once more, and selection and deselection worked as it should. And no matter what, if I didn't have task-obsolete selected, it was ignored.

I think my head is starting to hurt.
Marja Van Waes 2018-03-27 12:47:07 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=22831

Comment 32 Aurelien Oudelet 2020-08-29 19:08:59 CEST
This misbehavior is still observed with an example package:
systemd-246 (Cauldron).

Before https://bugs.mageia.org/show_bug.cgi?id=27046 was resolved, I do not want systemd version 246 to be installed. I DO want to unchek these updates and sometimes, I believed all 246-related packages were deselected but sometimes they were still listed on confirmation dialog after clicking Update and before really applying.

All I must do was to relaunch mgaonline or rpmdrake.

This is still valid on Cauldron (Mageia 7 too).

Whiteboard: MGA2TOO MGA3TOO MGA6TOO => MGA7TOO

Comment 33 Morgan Leijström 2020-11-30 09:17:48 CET
Experienced it again yesterday this way in drakrpm (launced from MCC) in mga7-64:

Decided to try some updates_testing.  Enabled update testing repo, in updated media, selected some packages, but realised i should try less at a time so I selected menu File > Reset the selection.  I observed it said "Selected: 0B" at bottom of its window.

Selected mesa, microcode, firmware. When about to update i noticed a x11- something package was listed but i had not selected it, nor had it asked for to add it like it use to for dependencies.

I closed and reopened drakrpm, selected same packages and now the x11-something was not selected.

So not all is cleared by  File > Reset the selection - seem to remember some dependency it detected in choices made before that action.
Comment 34 Morgan Leijström 2022-05-01 01:09:19 CEST
Assuming nothing have changed, but ought to be tested.
Morgan Leijström 2022-05-01 01:09:42 CEST

Whiteboard: MGA7TOO => MGA8TOO

Comment 35 sturmvogel 2022-05-15 19:07:39 CEST
*** Bug 30434 has been marked as a duplicate of this bug. ***

CC: (none) => LpSolit

Comment 36 Morgan Leijström 2022-05-15 19:19:58 CEST
rpmdrake version per bug 30434

Source RPM: rpmdrake => rpmdrake-6.32-1.mga8.src.rpm


Note You need to log in before you can comment on or make changes to this bug.