Bug 5687 - Upgrades are incomplete after using dvd or cd.
Summary: Upgrades are incomplete after using dvd or cd.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Romain d'Alverny
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 3342
  Show dependency treegraph
 
Reported: 2012-04-30 01:22 CEST by Dave Hodgins
Modified: 2012-05-22 18:03 CEST (History)
2 users (show)

See Also:
Source RPM: mgaonline-2.77.33-1.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Dave Hodgins 2012-04-30 01:22:23 CEST
As I found in bug 5674, unless urpmi --auto-select is run after an upgrade,
not all available upgraded packages will be installed.

The problem, is that when the installer checks for updates, it's just like
mgaapplet, and only looks at the updates repositories.

After an upgrade from Mageia 1, there were 196 packages on my system,
that to be updated via urpmi --auto-select.

Whenever an upgrade is done using offline media, we need some way to notify
the user that the upgrade needs to be finished, and make it easy from them
to do so.

I'm filing this bug report against mgaonline, as that seems like a logical
place to check, to see if an upgrade needs to be finished, but it could be
done elsewhere.

For mageia 2, we need a very prominent method of letting all users who
upgrade using a dvd or cd, that they must run urpmi --auto-update as root.
Manuel Hiebel 2012-04-30 16:31:38 CEST

Blocks: (none) => 3342
Assignee: bugsquad => thierry.vignaud

Manuel Hiebel 2012-05-02 20:32:04 CEST

Priority: Normal => release_blocker

Comment 1 Thierry Vignaud 2012-05-02 21:10:12 CEST
That cannot be a release blocker, it has been like this for years.

Priority: release_blocker => Normal

Thierry Vignaud 2012-05-02 21:10:53 CEST

CC: (none) => mageia

Comment 2 Manuel Hiebel 2012-05-02 21:15:04 CEST
there is a "message" at the end of the upgrade ? if no, can we add one in the stage2?
(the upgrade was really really slow in vbox for two days so I don't know sorry)
Comment 3 Dave Hodgins 2012-05-02 23:53:45 CEST
It's mentioned in https://wiki.mageia.org/en/Mageia_2_Release_Notes#Using_the_Mageia_2_DVD_to_Upgrade

I'd like to see a prominent note added to http://www.mageia.org/en/downloads/ with the same comment, but also an explanation that
upgrades for packages not in the iso, will not be picked up by
mgaapplet, as they are not in the updates repositories, and that
the only way to get those updates installed, is to use urpmi --auto-select
at the command line.
Comment 4 Manuel Hiebel 2012-05-02 23:58:25 CEST
>It's mentioned in https://wiki.mageia.org/en/Mageia_2_Release_Notes#Using_the_Mageia_2_DVD_to_Upgrade

Yep I added it for ten minutes :)
Comment 5 Dave Hodgins 2012-05-03 03:54:48 CEST
(In reply to comment #4)
> >It's mentioned in https://wiki.mageia.org/en/Mageia_2_Release_Notes#Using_the_Mageia_2_DVD_to_Upgrade
> 
> Yep I added it for ten minutes :)

Lol.  You beat me to it.  I was about to add it, when I found it already
there.
Anne Nicolas 2012-05-08 21:34:19 CEST

CC: (none) => ennael1
Assignee: thierry.vignaud => rdalverny

Comment 6 Romain d'Alverny 2012-05-14 19:01:46 CEST
Heeee... I have been assigned this bug, but... I'm not sure what I'm supposed to do to help here?
Comment 7 Manuel Hiebel 2012-05-15 13:58:03 CEST
(In reply to comment #6)
> Heeee... I have been assigned this bug, but... I'm not sure what I'm supposed
> to do to help here?

I don't know :)

Maybe if you add a migration page like for mga1, also add a note for the dvd upgrade ?

(ie use urpmi --auto-update at least one time after the first boot with the online media)

Blocks: 3342 => (none)

Comment 8 Romain d'Alverny 2012-05-15 19:35:03 CEST
I'll need more input/direction about what to say in such a page, I can't author it by myself.
Comment 9 Dave Hodgins 2012-05-16 05:13:56 CEST
I'd like to see a prominent comment on our download page warning people

===================== Start of Warning
Live cd iso images should only be used for new installations, not for
upgrading from Mageia 1.

After using either the dvd or dual cd to upgrade a system from Mageia 1
to 2, to complete the upgrade, it will be necessary to run the following
commands in a terminal, after the online repositories have been setup,
and if desired, the Nonfree and/or Tainted repositories enabled ...

su -
(type in the root user's password, and press enter)
urpmi --auto-update
(follow the prompts, to install the upgrades for packages that are not
included in the iso image)

Note that these updates will not be installed using the system tray
icon for mgaapplet, as the packages are in the Release repositories,
so they will not show up as updates.  They can only be upgraded using
the urpmi command.
====================== End of Warning

This warning needs to be in as many places as possible.  Feel free to
change the wording.  I know I tend to write sentences that are far too
long. :-)
Comment 10 Romain d'Alverny 2012-05-16 19:15:12 CEST
Ok, I can try to fit it in; but starting a download page with a warning is not the best thing to do...

Can we expect the root cause of this issue to be fixed for Mageia 3?

Status: NEW => ASSIGNED

Comment 11 Dave Hodgins 2012-05-17 01:07:35 CEST
I think having the warning at the top of the download page is
the best place for it.

For Mageia 3, I'd like to see something similar to mandrake_firstime
that would be triggered by an iso upgrade, once an internet
connection becomes available.
Manuel Hiebel 2012-05-17 01:08:23 CEST

Blocks: (none) => 3342

Comment 12 Romain d'Alverny 2012-05-22 15:26:40 CEST
From(In reply to comment #9)
> I'd like to see a prominent comment on our download page warning people
> 
> ===================== Start of Warning
> [...]
> This warning needs to be in as many places as possible.  Feel free to
> change the wording.  I know I tend to write sentences that are far too
> long. :-)

From that warning, I'm not sure what to understand:
 - is it a single warning, only for LiveCD users?
 - is it two distinct warning, one for LiveCD intending to upgrade, and one for all users upgrading?
Comment 13 Romain d'Alverny 2012-05-22 15:38:42 CEST
And how is it related to http://www.mageia.org/en/1/migrate/ and https://wiki.mageia.org/en/Upgrading_with_urpmi .

(yes, I won't design the contents of the process, I can only rephrase/format it and put it on the Web site - or link to the correct Wiki article - so I really need help here)
Comment 14 Romain d'Alverny 2012-05-22 15:43:09 CEST
Ok, found. I will just make a quick warning and send to the procedure in the release notes.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 15 Dave Hodgins 2012-05-22 18:03:45 CEST
There are two distinct warnings.

The first, is that live cd's MUST NOT be used for an upgrade.  Existing
files will be overwritten, including the rpm database, and potentially
data files in /home/$user.  This warning really needs to be very prominent.

See bug 5990 for an example of the data loss in /home, that can occur.

The second, is just a reminder that the upgrade will not be complete, when
using the dvd or dual cd to upgrade, until urpmi --auto-update is run,
which should be done after enabling desired repositories.

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