Bug 28634 - Upgrading from mmga7 to mga8 unable because 48 packages missing
Summary: Upgrading from mmga7 to mga8 unable because 48 packages missing
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-24 05:35 CET by Jan Pihlgren
Modified: 2021-03-27 14:23 CET (History)
2 users (show)

See Also:
Source RPM: Mageia-8-x86_64.iso
CVE:
Status comment:


Attachments
unavail_pack_list (14.49 KB, text/plain)
2021-03-26 05:20 CET, Jan Pihlgren
Details
urpme command to remove unavail packages (14.95 KB, text/plain)
2021-03-26 20:07 CET, Dave Hodgins
Details
Script to finish the upgrade (474 bytes, text/plain)
2021-03-26 20:45 CET, Dave Hodgins
Details

Description Jan Pihlgren 2021-03-24 05:35:25 CET
I have tried to upgrade my Lenovo ThinkPadAnniversary Edision 25 from Mageia 7 to Mageia 8.
I have tried to do the upgrad from both DVD and USB.
Both times I get an error telling me that there are 48 packages missing and then listen many many files. As I can observe a lot of them is Gtk related.

This is a part of the error I get when trying to upgrade:

    file /usr/lib64/libEGL.s0.1 from install of lib64egl1-1.3.2-16.mga8.x86_64 conflicts with file from package lib64mesaegl1-20.2.3-1.mga7.x86_64
    file /usr/imclude/KHR/khrplatform.h from install of lib64glvnd-devel-1.3.2-16.mga8.x86_64 conflicts with file from package lib64mesakhr-devel-20.2.3-1.mga7.x86_64
    file /etc/rpm/macros.d/sip.macros from install of python3-sip-1:4.19.24-1.mga8.x86_64 conflicts with file from package python-sip-1:4.18.1-1.mga6.x86_64
    python(abi) = 3.8 is needed by x11-proto-devel-2020.1-2.mga8.noarch

    then a list of a lot of files(to long to write down manual)

I also tried:
[jan@Myran ~]$ rpm -qa --queryformat "%{NAME}-%{version}-%{RELEASE}-%{ARCH}\n" |grep i586 |grep devel
[jan@Myran ~]$ 
Giving nothing.
Comment 1 Dave Hodgins 2021-03-24 07:45:10 CET
Before starting the upgrade, ensure only the release and updates repos are
enabled for Core, Nonfree, and Tainted. Optionally the corresponding 32bit
repos too.

Then use "urpmq --not-available" to get a list of packages that should be
removed prior to starting the upgrade. The package python-sip-1:4.18.1-1.mga6.x86_64
will be among them, as we don't support upgrading from packages older than
Mageia 7.

The others look like valid file conflicts. Please open a bug report for each
package mga8 involved, and set the bug as a blocker for bug 28393.
See https://bugs.mageia.org/show_bug.cgi?id=28522 as an example.

Thanks!

CC: (none) => davidwhodgins

Comment 2 Jan Pihlgren 2021-03-24 08:16:18 CET
Sorry, I need a more detailed information. Your link does not give information of how to do .
The only repos that is mention in the upgrade is Core and Nonfree.
Regards//Jan P
Comment 3 Dave Hodgins 2021-03-24 11:23:00 CET
Before starting the upgrade ...
# urpmq --list-media active
Core Release (distrib1)
Core Updates (distrib3)
Nonfree Release (distrib11)
Nonfree Updates (distrib13)
Tainted Release (distrib21)
Tainted Updates (distrib23)
Core 32bit Release (distrib31)
Core 32bit Updates (distrib32)
Nonfree 32bit Release (distrib36)
Nonfree 32bit Updates (distrib37)
Tainted 32bit Release (distrib41)
Tainted 32bit Updates (distrib42)

The 32bit repos are optional, as are the Tainted and Nonfree.

If you have any other repositories active, run "drakrpm-edit-media" and deselect
the other repositories (such as Testing, Debug, Backports).

Then run "urpmq --not-available" and uninstall any packages it shows. For third
party packages such as google-earth, they can be reinstalled after the upgrade
if desired.
Morgan Leijström 2021-03-24 13:01:54 CET

CC: (none) => fri

Comment 4 Jan Pihlgren 2021-03-25 08:27:05 CET
running "urpmq --not-available" gives:
376 lines
Shall I remove them if so how do I do that?
Comment 5 Morgan Leijström 2021-03-25 18:58:02 CET
That seem too plenty.
Can you put it into a file and attach to this bug?
i.e:
  urpmq --not-available > unavail_pack_list
Comment 6 Jan Pihlgren 2021-03-26 05:20:22 CET
Created attachment 12522 [details]
unavail_pack_list

The error list
Comment 7 Morgan Leijström 2021-03-26 09:34:30 CET
Oh, they seem to almost all be Mageia *6* packages, plus a few non "mga" packages, i.e an old libreoffice6.4 and Skype.

Seems there was a non clean upgrade earlier from Mageia 6.

There is probably a trick to uninstall all non-available, but it may have cascading effects.  Could be worth trying, but i dont know how to do it.

Personally i would have chosen to do a fresh mga8 install anyway, keeping /home.

For Skype i see https://wiki.mageia.org/en/Skype_with_video is updated for mga8.
Comment 8 Morgan Leijström 2021-03-26 11:51:19 CET
(In reply to Dave Hodgins from comment #1)
> Then use "urpmq --not-available" to get a list of packages that should be
> removed prior to starting the upgrade.

Thread started in qa-discuss regarding possible enhancement of
https://wiki.mageia.org/en/Mageia_8_Release_Notes#Preparations
Comment 9 Dave Hodgins 2021-03-26 20:07:33 CET
Created attachment 12528 [details]
urpme command to remove unavail packages

I'm attaching the unavailable package list, sorted and reformatted into
a urpme command with the mga8 packages excluded from the list.

Please review it and ensure any packages being removed, that you expect
to need in Mageia 8, you know how to reinstall after the upgrade is finished.

Since there are some mga8 packages installed such as
basesystem-minimal-8-0.4.mga8.x86_64 and
basesystem-minimal-core-8-0.4.mga8.x86_64
but the packages they require have not been installed, this is not a straight
forward upgrade, but a recovery of a partially completed upgrade, since a
normal upgrade would not pull in the packages required for the already installed
mga8 packages.

Go ahead and remove the unavailable packages, excluding the mga8 packages as
per the attached command.

I'll put together the commands needed to recover from the partial upgrade and
post them here shortly.
Comment 10 Dave Hodgins 2021-03-26 20:45:20 CET
Created attachment 12529 [details]
Script to finish the upgrade

Since urpmi doesn't allow mixing auto-select with a package list, finishing the
upgrade has to be split into two parts as the attached script does.

Check https://mirrors.mageia.org/status and ensure the column for Mageia 8
x86_64 shows green for http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/
before starting the finishing of upgrade.

Then run the attached script.
Comment 11 Jan Pihlgren 2021-03-26 20:53:03 CET
I have give up.
Install clean.
Juste working with install a lot of packages Ineed.
Thanks for help
Comment 12 Morgan Leijström 2021-03-27 14:23:45 CET
Closing as invalid because basically upgrade works.
In this case it was too affected by old mga6 (and some other packages) which we do not support in upgrade to mga8.

Thank you for yor efforts, Dave

And Tack Jan, for your patience and report - it could have been some real issue.

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


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