D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Ignoring Linux Mint Upgrade Advice

 


On 09/12/13 21:18, bad apple wrote:
Hopefully some of you might find this useful - it certainly won't be
news to any of the more sophisticated tinkerers or the sysadmins out
there though. I know we have a lot of Mint users though.

I always laugh when a new Mint release comes out when I skim the release
notes/update advice: the non-LDME versions aren't rolling releases and
the upgrade instructions basically do everything they can to scare
people away from doing it the "proper way", with apt. As if anyone is
going to bother completely backing up their system, wiping their
perfectly good OS and reinstalling the new version from scratch before
finally manually copying all their files back... ridiculous. Ironically,
with unskilled users this approach is far more likely to lose or break
things so here is how to do it properly.

I should note that is hardly a secret and most sysadmins/technical users
have been upgrading their Linux systems from one release to another like
this since probably about day 1. I've done countless in-place upgrades
of Ubuntu, Fedora, SuSE, Mandriva/Maegia, Mint, Debian, RedHat, CentOS
and just about every other non-rolling update distro like this for as
long as I can remember. Having said that, step number 0 is still:

0: HAVE A BACKUP

Really, really don't skip this step. So, on with the show. I'll be
presuming upgrading Mint 15 > Mint 16 for the rest of this although the
principles apply to all Debian derivations and indeed most other distros.

You need root access for this: issue everything as a sudo user or just
login as root locally. For troubleshooting, make sure SSHD is running
and you can get in from a spare machine - you never know. Some people
recommend pushing the system down to runlevel 1, or killing the GUI, but
I never bother. I've remained logged in and working or surfing the
internet many many times whilst running a full version upgrade.

1: Get Mint 15 fully upgraded, flush package cache completely

apt-get update && apt-get dist-upgrade
apt-get clean all

2: Edit apt sources

cd /etc/apt
sed -i 's/olivia/petra/g' sources.list
sed -i 's/raring/saucy/g' sources.list

3: If you have extra repos here (PPAs, etc) also edit them

ls sources.list.d/
sed -i 's/olivia/petra/g' sources.list.d/*.list
sed -i 's/raring/saucy/g' sources.list.d/*.list

4: Get the new apt database information for new release: watch for any
errors, and correct them before moving to step 5. Purge or comment out
any offending PPAs or alternative source lists.

apt-get update

5: Actual upgrade time (this will take a while)

script /var/log/dist-upgrade.log
apt-get dist-upgrade

If anything goes pear-shaped along the way, you may need to clear out a
specific package or two and run "apt-get install -f", before resuming
with apt-get dist-upgrade, but that rarely happens.
Hi bad apple,

I finally got round to following your excellent guide, but it seems as if nothing has happened:

julian@Cerce ~ $ su root
Password:
Cerce julian # apt-get update && apt-get dist-upgrade
Hit http://archive.canonical.com raring Release.gpg
Hit http://security.ubuntu.com raring-security Release.gpg
Hit http://archive.ubuntu.com raring Release.gpg
Hit http://security.ubuntu.com raring-security Release
Hit http://archive.ubuntu.com raring-updates Release.gpg
Hit http://archive.canonical.com raring Release
Hit http://archive.ubuntu.com raring Release
Hit http://archive.ubuntu.com raring-updates Release
Hit http://security.ubuntu.com raring-security/main amd64 Packages
Hit http://archive.canonical.com raring/partner amd64 Packages
Hit http://security.ubuntu.com raring-security/restricted amd64 Packages
Hit http://archive.ubuntu.com raring/main amd64 Packages
Hit http://archive.canonical.com raring/partner i386 Packages
Hit http://security.ubuntu.com raring-security/universe amd64 Packages
Hit http://archive.ubuntu.com raring/restricted amd64 Packages
Hit http://security.ubuntu.com raring-security/multiverse amd64 Packages
Hit http://archive.ubuntu.com raring/universe amd64 Packages
Hit http://security.ubuntu.com raring-security/main i386 Packages
Hit http://archive.ubuntu.com raring/multiverse amd64 Packages
Hit http://security.ubuntu.com raring-security/restricted i386 Packages
Hit http://archive.ubuntu.com raring/main i386 Packages
Hit http://security.ubuntu.com raring-security/universe i386 Packages
Hit http://archive.ubuntu.com raring/restricted i386 Packages
Hit http://archive.ubuntu.com raring/universe i386 Packages
Hit http://security.ubuntu.com raring-security/multiverse i386 Packages
Hit http://archive.ubuntu.com raring/multiverse i386 Packages
Get:1 http://packages.linuxmint.com olivia Release.gpg [198 B]
Hit http://archive.ubuntu.com raring/main Translation-en_GB
Hit http://security.ubuntu.com raring-security/main Translation-en
Hit http://archive.ubuntu.com raring/main Translation-en
Ign http://archive.canonical.com raring/partner Translation-en_GB
Hit http://archive.ubuntu.com raring/multiverse Translation-en_GB
Hit http://security.ubuntu.com raring-security/multiverse Translation-en
Ign http://archive.canonical.com raring/partner Translation-en
Hit http://archive.ubuntu.com raring/multiverse Translation-en
Hit http://security.ubuntu.com raring-security/restricted Translation-en
Hit http://archive.ubuntu.com raring/restricted Translation-en_GB
Get:2 http://packages.linuxmint.com olivia Release [18.5 kB]
Hit http://archive.ubuntu.com raring/restricted Translation-en
Hit http://archive.ubuntu.com raring/universe Translation-en_GB
Hit http://security.ubuntu.com raring-security/universe Translation-en
Hit http://archive.ubuntu.com raring/universe Translation-en
Hit http://archive.ubuntu.com raring-updates/main amd64 Packages
Hit http://archive.ubuntu.com raring-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com raring-updates/universe amd64 Packages
Hit http://archive.ubuntu.com raring-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com raring-updates/main i386 Packages
Hit http://archive.ubuntu.com raring-updates/restricted i386 Packages
Hit http://archive.ubuntu.com raring-updates/universe i386 Packages
Hit http://archive.ubuntu.com raring-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com raring-updates/main Translation-en
Hit http://archive.ubuntu.com raring-updates/multiverse Translation-en
Ign http://security.ubuntu.com raring-security/main Translation-en_GB
Ign http://security.ubuntu.com raring-security/multiverse Translation-en_GB
Get:3 http://packages.linuxmint.com olivia/main amd64 Packages [23.5 kB]
Ign http://security.ubuntu.com raring-security/restricted Translation-en_GB
Ign http://security.ubuntu.com raring-security/universe Translation-en_GB
Hit http://archive.ubuntu.com raring-updates/restricted Translation-en
Hit http://archive.ubuntu.com raring-updates/universe Translation-en
Get:4 http://packages.linuxmint.com olivia/upstream amd64 Packages [9,249 B]
Ign http://archive.ubuntu.com raring-updates/main Translation-en_GB
Ign http://archive.ubuntu.com raring-updates/multiverse Translation-en_GB
Ign http://archive.ubuntu.com raring-updates/restricted Translation-en_GB
Ign http://archive.ubuntu.com raring-updates/universe Translation-en_GB
Get:5 http://packages.linuxmint.com olivia/import amd64 Packages [39.3 kB]
Get:6 http://packages.linuxmint.com olivia/main i386 Packages [23.5 kB]
Get:7 http://packages.linuxmint.com olivia/upstream i386 Packages [9,237 B]
Get:8 http://packages.linuxmint.com olivia/import i386 Packages [40.2 kB]
Ign http://packages.linuxmint.com olivia/import Translation-en_GB
Ign http://packages.linuxmint.com olivia/import Translation-en
Ign http://packages.linuxmint.com olivia/main Translation-en_GB
Ign http://packages.linuxmint.com olivia/main Translation-en
Ign http://packages.linuxmint.com olivia/upstream Translation-en_GB
Ign http://packages.linuxmint.com olivia/upstream Translation-en
Fetched 164 kB in 7s (20.6 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cerce julian # apt-get clean all
Cerce julian # cd /etc/apt
Cerce apt # sed -i 's/olivia/petra/g' sources.list
Cerce apt # sed -i 's/raring/saucy/g' sources.list
Cerce apt # ls sources.list.d/
local-repository.list  official-package-repositories.list
Cerce apt # sed -i 's/raring/saucy/g' sources.list sources.list.d/*.list
Cerce apt # sed -i 's/olivia/petra/g' sources.list sources.list.d/*.list
Cerce apt # apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cerce apt # script /var/log/dist-upgrade.log
Script started, file is /var/log/dist-upgrade.log
Cerce apt # apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cerce apt #

I know I originally installed Mint 15, but it has done incremental updates. I can't see how but is it possible it's done a full upgrade to Mint 16 along the way?

Kind regards,

Julian

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq