>Someone suggested "apt-get upgrade". This is *not* correct (read man apt-get). Some essential packages might get held back, leaving a broken system.

I said it could be used, and it can in various circumstances, I didn't suggest it was the optimal method.
I have upgraded Debian (starting with Lenny) and Ubuntu (7.04 to 11.10 and as a development tester from 10.04 to 11.10) from one version to another with every method available (including apt-get upgrade after adjusting sources.list) and believe, and stated clearly in my first reply, the best way is to do a backup of must have settings-files-etc etc etc and then do a complete clean install.
That way you have a clean system, you have your settings, and you have up to date software.

Cheers.
Michael.


On 25 May 2014 21:16, David Hare <davidahare@gmail.com> wrote:
Here the most simple way is considered the way least likely to cause problems.

Time to upgrade my main Wheezy install to R14. This went simply, flawlessly and quickly:

1. Change TDE sources to R14

2. apt-get update && apt-get dist-upgrade -d

3. Close X (service kdm-trinity stop) and login as root to console

4. apt-get dist-upgrade

5. Reboot to R14! (probably enough to: service tdm-trinity start)


Some post-upgrade cleanups (do this in X):

There will be quite a few TDE "transitional" packages which can now be removed.

dpkg -l|grep trinity|grep "This can be safely removed"|awk '{print $2}' > /tmp/transitional_packages

(su) or (sudo su)

for i in $(cat /tmp/transitional_packages); do apt-get -y --force-yes purge $i; done

Now, there may be some marked as "automatically installed and no longer required" that you want to keep. This will be shown in the terminal. To change their status do, e.g. "apt-mark manual package1 package2 package3"

Job done, everything is nice and clean.

NOTES:

Someone suggested "apt-get upgrade". This is *not* correct (read man apt-get). Some essential packages might get held back, leaving a broken system.

Do "apt-get dist-upgrade -d" first: if anything is wrong with the mirrors things can break. This has happened before.

I'm finding Slavek's mirror faster than than "nightlies"

Major upgrades while X is running or using GUI package managers: If you really must, good luck to you, you may need it.

There is normally no reason why a Debian system should ever need to be reinstalled.

No comment on aptitude, I don't normally use it.


Regards,

David


---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net
For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net
Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting