Re: Upgrade from K730 to K740 lists wrong versions of packages
On Tue, 2 Sep 2014 04:23:29 +0200
Klaus Knopper <debian-knoppix@knopper.net> wrote:
> Hello Charles,
>
> On Mon, Sep 01, 2014 at 09:11:43PM -0400, Charles Evans wrote:
> > After using the menu choice to upgrade my SD card with K730 to K740,
<snip>
> Actually, it's the last copy in use when you install new programs. The
> file system does not know that the content of
> /KNOPPIX/var/lib/dpkg/status is "newer", it just follows the stack
> sequence of readwrite-overlay -> readonly-data.
That is what I expected. I did not realize at first that since the upgrade was from
the magazine edition, K730, KNOPPIX1 is still there, and it also has a copy.
> > As a workaround, I copied /KNOPPIX//var/lib/dpkg/status to /var/lib/dpkg/status
>
> This will discard all entries of programs you added by yourself.
>
> > AFAIKT everything is ok now.
>
> Probably, unless you installed new programs on your own, in which case
> the changes to the package database are lost now (i.e. the older
> self-installed installed programs don't show up as installed, even if
> they are).
Yes, this is a complication. I will try to reinstall everything I added.
> > Is this a sufficient fix?
>
> Maybe, but a better fix is discarding everything but your personal
> settings when doing an upgrade, which is the first and recommended
> choice in the Knoppix upgrade option. Then, /var/lib will simply get
> re-initialized by the new system.
That is what I chose, and AFAIKT everything else I had installed was gone,
but somehow the status file was from K730.
AFAIKT, the AUFS is KNOPPIX-DATA rw, then KNOPPIX1, then KNOPPIX at the bottom.
Since KNOPPIX1 (from K730) has /var/lib/dpkg/status,
it was visible, not the one in KNOPPIX.
>
> Merging old and new files from different installations can be
> complicated. Suggestions are welcome.
>
> Regards
> -Klaus
Since the KNOPPIX1 from K730 is not removed during the upgrade,
anything on KNOPPIX1 hides the newer files from KNOPPIX.
AFAIKT the only significant file on both is /var/lib/dpkg/status.
The Upgrade choice on the Knoppix Menu Install is a wonderful feature.
IMHO it must either remove any KNOPPIX1, etc., if there is no image file,
or copy the new status file TO the image file.
BTW there is a little glitch after choosing to install
using the option "no image file" for read-only:
When I set the SD card to read-only and reboot,
Knoppix still asks to make an image file on the read-only SD card,
every time it boots.
Thanks again,
--
Charles Evans <cvevans@users.sourceforge.net>
Reply to: