Bug 20750

Summary: Upgrade Mageia5>Mageia6 fails with the error message:"42 transactions failed, the packages installation failed"
Product: Mageia Reporter: André DESMOTTES <lebarhon>
Component: InstallerAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: critical    
Priority: Normal CC: mageiatools, marja11, pkg-bugs, yvesbrungard
Version: CauldronKeywords: 6RC
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: compressed report.bug, the original one is 5.5 MB
Screenshot from an update Mga5>Mga6
report from an upgrade mga5>mga6
report.bug from an upgrade mga5>mga6

Description André DESMOTTES 2017-04-29 09:19:31 CEST
Description of problem:
During the Installation step, an error windows popped up:
"42 transactions failed, the packages installation failed :"
followed by the list of problems, 18 lines of the form
"file /usr/include/X11/Xdmccp.h from install of lib64xdmcp-devel-1.1.2-5.mga6.x86_64 conflicts with file from package libxdmcp-devel-1.1.1-7.mga5.i586
and more than one thousand lines of the form
devel(libcurl(64bit)) is needed by (installed) lib64raptor2-devel-2.0.15-1.mga5.x86_64

I clicked on OK and I had a message:
"An error occured, Installation failed"

Second try, same problem but it was "43 transactions failed". 

Version-Release number of selected component (if applicable):
Mageia-6-rc-x86_64-DVD.iso from Thu Apr 27 21:23:40 CEST 2017
Comment 1 André DESMOTTES 2017-04-29 09:25:39 CEST
Created attachment 9236 [details]
compressed report.bug, the original one is 5.5 MB
Comment 2 Marja Van Waes 2017-04-29 12:41:40 CEST
(In reply to André DESMOTTES from comment #0)
> Description of problem:
> During the Installation step, an error windows popped up:
> "42 transactions failed, the packages installation failed :"
> followed by the list of problems, 18 lines of the form
> "file /usr/include/X11/Xdmccp.h from install of
> lib64xdmcp-devel-1.1.2-5.mga6.x86_64 conflicts with file from package
> libxdmcp-devel-1.1.1-7.mga5.i586
> and more than one thousand lines of the form
> devel(libcurl(64bit)) is needed by (installed)
> lib64raptor2-devel-2.0.15-1.mga5.x86_64
> 

Can you please remove your 32bit packages before upgrading? See bug 15780 (and bug 13538, in which it is explained we don't really support installing both arches of a devel package)

There are many conflicts between files from 32 and 64 bit devel packages:
file <file name> from install of lib64xdmcp-devel-1.1.2-5.mga6.x86_64 conflicts with file from package libxdmcp-devel-1.1.1-7.mga5.i586
file <file name> from install of lib64xau-devel-1.0.8-7.mga6.x86_64 conflicts with file from package libxau-devel-1.0.8-5.mga5.i586
file <file name> from install of lib64lzma-devel-5.2.3-1.mga6.x86_64 conflicts with file from package liblzma-devel-5.2.0-1.mga5.i586
file <file name> from install of lib64audit1-2.7.5-1.mga6.x86_64 conflicts with file from package libaudit1-2.4.4-1.mga5.i586

You can find all 32bit packages with
   rpm -qa --last | grep i586 | sort

If it is possible to add online (32 bit) media, then only removing the 32bit devel packages is probably enough. However, IINM the traditional iso only offers to add online media when doing an install instead of an upgrade :-/

(Bug 20484 requests to add that option for upgrade installs with the iso.)

Please report back whether upgrading works well after having removed the 32bit devel packages, and, if not, whether it worked well after having removed all 32bit packages.

CC: (none) => mageiatools, marja11
Keywords: (none) => 6RC, NEEDINFO

Comment 3 André DESMOTTES 2017-04-29 17:41:26 CEST
I uninstalled all the libxxx-devel-i586 packages (30) and re-tried the installation. I had another error message about "22 transactions failed", later during the installation. The problem is that the upgrade let the computer half way between Mageia5 and Mageia6 and that it can't work any more, not even the console. Typing keys like backspace, enter or arrows print numbers !

I think we should warn users about this problem in the documentation.
Comment 4 Marja Van Waes 2017-04-30 11:59:52 CEST
(In reply to André DESMOTTES from comment #3)

> 
> I think we should warn users about this problem in the documentation.

Absolutely!

Afaik the advice here is wrong
https://wiki.mageia.org/en/Mageia_6_Release_Notes#Using_the_traditional_Mageia_6_DVD_to_Upgrade
(unless I missed something, we can not add additional online media during an upgrade)

Would you be willing and have time to improve our documentation?
Comment 5 André DESMOTTES 2017-04-30 12:36:04 CEST
I am going to re-install Magea 5, add some applications (eg RawTherapee 5.0 and Geneweb that aren't in the Mageia repositories) and upgrade to Mageia 6. Do that in Legacy and UEFI modes and then write some changes to the release notes and the official documentation.
The questions to answer are :
- Can we upgrade a 64 bit OS that contains 32 bit packages (it should be yes)
- Can we upgrade a 64 bit OS that contains 32 bit devel packages (the answer is known: NO)
- Can we upgrade a 64 bit OS that contains packages installed out of the Mageia repositories? (no idea)
- Can we add additional online media during an upgrade? (no idea)
- What else?

I will do that next week.
Comment 6 papoteur 2017-04-30 13:12:38 CEST
Our documentation says that we can add media just after the partitionning step.
https://doc.mageia.org/installer/5/en/content/add_supplemental_media.html
Is it no more the case?
Papoteur

CC: (none) => yves.brungard_mageia

Comment 7 Marja Van Waes 2017-04-30 13:31:30 CEST
(In reply to papoteur from comment #6)
> Our documentation says that we can add media just after the partitionning
> step.
> https://doc.mageia.org/installer/5/en/content/add_supplemental_media.html
> Is it no more the case?
> Papoteur

i don't remember getting that screen when upgrading, and I'm not the only one who missed it, see bug #20484
Comment 8 Frédéric "LpSolit" Buclin 2017-04-30 18:43:19 CEST
(In reply to Marja van Waes from comment #7)
> i don't remember getting that screen when upgrading, and I'm not the only
> one who missed it

I definitely remember this screen. I don't see why upgrade vs clean install would make a difference. In previous Mageia versions, the installer asked for remote media, which it clearly no longer does. I just tried with a clean install using the DVD, and it doesn't ask to add remote media either. So something is broken in the installer. See also bug 20754.

CC: (none) => LpSolit

Comment 9 Marja Van Waes 2017-05-01 09:13:11 CEST
(In reply to Frédéric Buclin from comment #8)
> (In reply to Marja van Waes from comment #7)
> > i don't remember getting that screen when upgrading, and I'm not the only
> > one who missed it
> 
> I definitely remember this screen.

I'm convinced now that my memory is wrong.

> I don't see why upgrade vs clean install
> would make a difference.
> In previous Mageia versions, the installer asked
> for remote media, which it clearly no longer does. I just tried with a clean
> install using the DVD, and it doesn't ask to add remote media either. 

Ouch! I had noticed it was skipped in boot.iso installs, even if done with a local repository, but always assumed that was intentional, because boot.iso installs are intended for use with remote repositories :-/

> So
> something is broken in the installer. See also bug 20754.

Indeed. I increased bug 20484 to release blocker.

We should probably wait with adjusting our documentation.
Comment 10 André DESMOTTES 2017-05-01 11:23:14 CEST
Created attachment 9247 [details]
Screenshot from an update Mga5>Mga6

It is possible to add non-free release during an update, it is the only one.
Comment 11 André DESMOTTES 2017-05-01 11:24:23 CEST
Sorry, by update, I meant UPGRADE
Comment 12 Frédéric "LpSolit" Buclin 2017-05-01 16:25:49 CEST
(In reply to André DESMOTTES from comment #10)
> It is possible to add non-free release during an update, it is the only one.

Yes, but non-free is on the DVD itself.
Comment 13 André DESMOTTES 2017-05-01 18:34:27 CEST
Created attachment 9256 [details]
report from an upgrade mga5>mga6

Did the upgrade on a UEFI computer. During the mga 5 installation, the add media screen was there, but it was not there any longer during the upgrade.
Fine upgrade, without any problem, but:
No i586 devel files in mga 5, there was i586 files (no devel) they were not a problem,
Genewed is working fine in mga 6, 
Rawtherapee totally disappeared ! :(
Comment 14 Marja Van Waes 2017-05-03 11:38:12 CEST
Comment on attachment 9256 [details]
report from an upgrade mga5>mga6

(In reply to André DESMOTTES from comment #13)
> Created attachment 9256 [details]
> report from an upgrade mga5>mga6

That seems to  be the log from the original Mga5 install, sorry 

[marja@localhost ~]$ ls -al Downloads/20750report.bug.xz
-rw-rw-r-- 1 marja marja 156680 mei  3 11:27 Downloads/20750report.bug.xz
[marja@localhost ~]$ xzcat Downloads/20750report.bug.xz | grep DrakX
* second stage install running (DrakX v16.105)
[marja@localhost ~]$ 

That's an old stage2

The logs you attached in comment #1 (attachment #9236 [details] had:

 * second stage install running (DrakX v17.79)



> 
> Did the upgrade on a UEFI computer. During the mga 5 installation, the add
> media screen was there, but it was not there any longer during the upgrade.
> Fine upgrade, without any problem, but:
> No i586 devel files in mga 5, there was i586 files (no devel) they were not
> a problem,
> Genewed is working fine in mga 6, 
> Rawtherapee totally disappeared ! :(

Rawtherapee is not on the iso.

Apart from that, our rawtherapee is old, see bug #20690

Attachment 9256 is obsolete: 0 => 1

Comment 15 Marja Van Waes 2017-05-03 11:40:05 CEST
@ André

But, of course, thanks a lot for you tests!
Comment 16 André DESMOTTES 2017-05-03 16:11:43 CEST
(In reply to Marja van Waes from comment #14)
> Comment on attachment 9256 [details]
> report from an upgrade mga5>mga6
> 
> (In reply to André DESMOTTES from comment #13)
> > Created attachment 9256 [details]
> > report from an upgrade mga5>mga6
> 
> That seems to  be the log from the original Mga5 install, sorry 
> 
> [marja@localhost ~]$ ls -al Downloads/20750report.bug.xz
> -rw-rw-r-- 1 marja marja 156680 mei  3 11:27 Downloads/20750report.bug.xz
> [marja@localhost ~]$ xzcat Downloads/20750report.bug.xz | grep DrakX
> * second stage install running (DrakX v16.105)
> [marja@localhost ~]$ 
> 
> That's an old stage2
> 
> The logs you attached in comment #1 (attachment #9236 [details] had:
> 
>  * second stage install running (DrakX v17.79)
> 
> 
I don't understand anything :(
I made a clean install of Mageia 5 ( / and /home formatted) and then an upgrade to Mageia 6, and you are telling me that Mageia 6 upgrade didn't overwrite report.bug.xz ! is that possible ? 


> 
> > 
> > Did the upgrade on a UEFI computer. During the mga 5 installation, the add
> > media screen was there, but it was not there any longer during the upgrade.
> > Fine upgrade, without any problem, but:
> > No i586 devel files in mga 5, there was i586 files (no devel) they were not
> > a problem,
> > Genewed is working fine in mga 6, 
> > Rawtherapee totally disappeared ! :(
> 
> Rawtherapee is not on the iso.
> 
> Apart from that, our rawtherapee is old, see bug #20690

It was the brand new Rawtherapee 5.0 build by Vigen from MLO forum. Both RawTherapee and Geneweb weren't from Mageia repositories. Geneweb was installed from a .tgz file. After the Mageia 6 upgrade Geneweb was still working but RawTherapee was uninstalled, I couldn't find out the binary /usr/bin/rawtherapee, why that?
What is an upgrade supposed to do with unknown applications?
Comment 17 Marja Van Waes 2017-05-03 23:12:08 CEST
(In reply to André DESMOTTES from comment #16)

> I don't understand anything :(
> I made a clean install of Mageia 5 ( / and /home formatted) and then an
> upgrade to Mageia 6, and you are telling me that Mageia 6 upgrade didn't
> overwrite report.bug.xz ! is that possible ? 


It is, see the 2nd "Please note!" here: https://wiki.mageia.org/en/Triage_guide#Traditional_installer
 

> > 
> > Rawtherapee is not on the iso.
> > 
> > Apart from that, our rawtherapee is old, see bug #20690
> 
> It was the brand new Rawtherapee 5.0 build by Vigen from MLO forum. Both
> RawTherapee and Geneweb weren't from Mageia repositories. Geneweb was
> installed from a .tgz file. After the Mageia 6 upgrade Geneweb was still
> working but RawTherapee was uninstalled, I couldn't find out the binary
> /usr/bin/rawtherapee, why that?

The logs should tell... maybe it had to be removed to enable upgrading another package? 
 
> What is an upgrade supposed to do with unknown applications?

I assume nothing (so leave them untouched) if they don't cause conflicts and don't depend on older versions of packages than exist after the upgrade.
Comment 18 André DESMOTTES 2017-05-04 08:58:05 CEST
Created attachment 9264 [details]
report.bug from an upgrade mga5>mga6

Sorry, I am very stubborn
Comment 19 Marja Van Waes 2017-05-04 09:12:50 CEST
(In reply to André DESMOTTES from comment #18)
> Created attachment 9264 [details]
> report.bug from an upgrade mga5>mga6

Thanks :-)

The rawtherapee mystery is solved:

* installed rawtherapee-5.0-1.mga5.x86_64 is conflicting because of unsatisfied libcanberra-gtk.so.0()(64bit)
* set_rejected: rawtherapee-5.0-1.mga5.x86_64

It's a pity there's no clue in the logs about why the screen to add online media is skipped.

> 
> Sorry, I am very stubborn

??

I fail to understand why you're saying that :-(

Afaik you don't and didn't do anything wrong :-)

Keywords: NEEDINFO => (none)

Comment 20 André DESMOTTES 2017-05-04 12:21:16 CEST
(In reply to Marja van Waes from comment #19)

> 
> The rawtherapee mystery is solved:
> 
> * installed rawtherapee-5.0-1.mga5.x86_64 is conflicting because of
> unsatisfied libcanberra-gtk.so.0()(64bit)
> * set_rejected: rawtherapee-5.0-1.mga5.x86_64
>
Rawtherapee 5.0 was working with Mga 5, so libcanberra-gtk.so.0()(64bit) was there (Rawtherapee 5.0 need it), why did the installer erase it to ask afterwards it is missing? 

Unfortunately my brain is analogical and can't understand the digital word.  


 
> It's a pity there's no clue in the logs about why the screen to add online
> media is skipped.

What else could we do ?

> 
> > 
> > Sorry, I am very stubborn
> 
> ??
> 
> I fail to understand why you're saying that :-(
> 
> Afaik you don't and didn't do anything wrong :-)

Because I knew about report.bug for upgrades, I wrote it in the  "Troubleshooting_section_for_the_manual" wiki page !
Comment 21 Marja Van Waes 2017-05-04 17:04:45 CEST
(In reply to André DESMOTTES from comment #20)
> (In reply to Marja van Waes from comment #19)
> 
> > 
> > The rawtherapee mystery is solved:
> > 
> > * installed rawtherapee-5.0-1.mga5.x86_64 is conflicting because of
> > unsatisfied libcanberra-gtk.so.0()(64bit)
> > * set_rejected: rawtherapee-5.0-1.mga5.x86_64
> >
> Rawtherapee 5.0 was working with Mga 5, so libcanberra-gtk.so.0()(64bit) was
> there (Rawtherapee 5.0 need it), why did the installer erase it to ask
> afterwards it is missing? 

IIUC:

/usr/lib64/libcanberra-gtk.so.0 is provided by
 lib64canberra-gtk0
which is not on the iso

The 0.30-7.mga5.x86_64 version of that package can't be kept, because it requires canberra-gtk in the exact same version & release (see http://svnweb.mageia.org/packages/cauldron/libcanberra/current/SPECS/libcanberra.spec?revision=813413&view=markup )

  %package -n %{libname_gtk}
  Summary:        GTK modules for the %{name} XDG complient sound event library
  Group:          System/Libraries
  Requires:       %{shortname}-gtk = %{version}-%{release}
 

where the following was defined before:

  %define shortname canberra
  %define major_gtk 0
  %define libname_gtk %mklibname %{shortname}-gtk %{major_gtk}

That means, since canberra-gtk-0.30-7.mga5.x86_64 is upgraded to canberra-gtk-0.30-11.mga6.x86_64, but lib64canberra-gtk0-0.30-11.mga6.x86_64 isn't on the iso, that the old lib64canberra-gtk0-0.30-7.mga5.x86_64 cannot be kept, nor upgraded using this iso.


@ all full packagers
Or do I miss something?



> 
> Unfortunately my brain is analogical and can't understand the digital word. 

You understand more than you're aware of ;-) 
> 
> 
>  
> > It's a pity there's no clue in the logs about why the screen to add online
> > media is skipped.
> 
> What else could we do ?

Maybe a native Perl speaker can tell from the installer code what is going wrong, and give feedback in dedicated bug #20484

> > 
> > Afaik you don't and didn't do anything wrong :-)
> 
> Because I knew about report.bug for upgrades, I wrote it in the 
> "Troubleshooting_section_for_the_manual" wiki page !

Ah, the talent to forget things! Welcome in the club ;-) 

Don't worry, teenagers who sleep too little and party too much, forget more than we do.

CC: (none) => pkg-bugs

Frédéric "LpSolit" Buclin 2017-05-05 23:55:49 CEST

CC: LpSolit => (none)

Comment 22 Marja Van Waes 2017-05-09 23:11:23 CEST
@ André

If, with the new isos, you still have a failed upgrade, then please file a new bug report.

This report has become confusing (because of the mixed issues and length).

Thanks :-)

Resolution: (none) => OLD
Status: NEW => RESOLVED