lost and found ( for me ? )

Linux Mint : upgrade Mint 12 to Mint 13

This is as-is based info.
I would recommend a fresh install of Mint 13.
I am ready for the fresh installation in the event of the upgrade failure, so I tried that.

Referred to http://www.code-authors.com/ftopict-4145.html and http://www.linuxhostingtalk.com/showthread.php/1200-Upgrade-Linux-Mint-12-to-Linux-mint-13

Here are trial and error logs.

Before the upgrading

mint-1 ~ # cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=12
DISTRIB_CODENAME=lisa
DISTRIB_DESCRIPTION="Linux Mint 12 Lisa"

mint-1 ~ # uname -ri
3.0.0-24-generic x86_64


edit /etc/apt/sources.list

from
# cat /etc/apt/sources.list
deb http://packages.linuxmint.com/ lisa main upstream import
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ oneiric partner
deb http://packages.medibuntu.org/ oneiric free non-free

# deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb games

deb http://gb.archive.ubuntu.com/ubuntu/ natty main
deb http://gb.archive.ubuntu.com/ubuntu/ natty universe


to
mint-1 ~ # cat /etc/apt/sources.list
deb http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free

#deb http://packages.linuxmint.com/ lisa main upstream import
#deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
#deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
#deb http://archive.canonical.com/ubuntu/ oneiric partner
#deb http://packages.medibuntu.org/ oneiric free non-free

# deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb games

#deb http://gb.archive.ubuntu.com/ubuntu/ natty main
#deb http://gb.archive.ubuntu.com/ubuntu/ natty universe

mint-1 ~ # apt-get update

mint-1 ~ # apt-get upgrade -y


nnn , error
dpkg: error processing /var/cache/apt/archives/libc6_2.15-0ubuntu10_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.15-0ubuntu10_amd64.deb
/var/cache/apt/archives/libc6_2.15-0ubuntu10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint-1 ~ # echo $?
100


upgrade forcefully.
mint-1 ~ # apt-get -f install

subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.15-0ubuntu10_amd64.deb
/var/cache/apt/archives/libc6_2.15-0ubuntu10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


nnn , error…

how about this ?
mint-1 ~ # cp /etc/apt/sources.list /etc/apt/sources.list.bak


restore the original sources.list
mint-1 ~ # cat /etc/apt/sources.list
deb http://packages.linuxmint.com/ lisa main upstream import
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ oneiric partner
deb http://packages.medibuntu.org/ oneiric free non-free

# deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb games

deb http://gb.archive.ubuntu.com/ubuntu/ natty main
deb http://gb.archive.ubuntu.com/ubuntu/ natty universe

mint-1 ~ # sed -i 's/lisa/maya/g' /etc/apt/sources.list
mint-1 ~ # sed -i 's/oneiric/precise/g' /etc/apt/sources.list

mint-1 ~ # cat /etc/apt/sources.list
deb http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free

# deb http://archive.getdeb.net/ubuntu precise-getdeb apps
# deb http://archive.getdeb.net/ubuntu precise-getdeb games

deb http://gb.archive.ubuntu.com/ubuntu/ natty main
deb http://gb.archive.ubuntu.com/ubuntu/ natty universe

mint-1 ~ # apt-get update


nnn , error
mint-1 ~ # apt-get -y dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
insserv : Depends: libc6 (>= 2.14) but 2.13-20ubuntu5.1 is installed
libc-dev-bin : Depends: libc6 (> 2.15) but 2.13-20ubuntu5.1 is installed
libc6 : Depends: libc-bin (= 2.13-20ubuntu5.1)
libc6:i386 : Depends: libc-bin:i386 (= 2.13-20ubuntu5.1)
libc6-dev : Depends: libc6 (= 2.15-0ubuntu10) but 2.13-20ubuntu5.1 is installed
libnewt0.52 : Depends: libc6 (>= 2.15) but 2.13-20ubuntu5.1 is installed
libpng12-0 : Depends: libc6 (>= 2.14) but 2.13-20ubuntu5.1 is installed
whiptail : Depends: libc6 (>= 2.14) but 2.13-20ubuntu5.1 is installed
E: Unmet dependencies. Try using -f.


how about upgrading Mint forcefully ??
nnn , error..
mint-1 ~ # apt-get -y -f dist-upgrade

subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.15-0ubuntu10_amd64.deb
/var/cache/apt/archives/libc6_2.15-0ubuntu10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint-1 ~ # echo $?
100


I’ve  found the solution.
http://markusperl.blogspot.jp/2012/07/upgrade-linux-mint-to-maya-fails.html
Thanks a lot!
#wget http://ftp.halifax.rwth-aachen.de/ubuntu//pool/main/n/newt/libnewt0.52_0.52.11-2ubuntu8_amd64.deb
# wget http://ftp.halifax.rwth-aachen.de/ubuntu//pool/main/n/newt/whiptail_0.52.11-2ubuntu8_amd64.deb
# wget http://ftp.halifax.rwth-aachen.de/ubuntu//pool/main/p/popt/libpopt0_1.16-1_amd64.deb
# dpkg -i libnewt0.52_0.52.11-2ubuntu8_amd64.deb whiptail_0.52.11-2ubuntu8_amd64.deb libpopt0_1.16-1_amd64.deb
# dpkg -i /var/cache/apt/archives/libc6*


Okay..
mint-1 tmp_dir # apt-get -f install

snip

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.0.0-24-generic
Warning: No support for locale: ja_JP.utf8

mint-1 tmp_dir # echo $?
0


then
mint-1 tmp_dir # apt-get dist-upgrade -f


error
Processing triggers for shared-mime-info ...
Processing triggers for fontconfig ...
Processing triggers for libgtk2.0-0 ...
Errors were encountered while processing:
/var/cache/apt/archives/gir1.2-mate-menu_1.2.0-2+precise_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

mint-1 tmp_dir # sh -c 'echo "deb http://packages.linuxmint.com/ maya import" >> /etc/apt/sources.list.d/mint.list'

mint-1 apt # cp sources.list sources.list.bak2

mint-1 apt # cat sources.list
deb http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free

# deb http://archive.getdeb.net/ubuntu precise-getdeb apps
# deb http://archive.getdeb.net/ubuntu precise-getdeb games

mint-1 apt # dpkg --clear-avail
mint-1 apt # dpkg --configure –a
<snip>
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic
Warning: No support for locale: ja_JP.utf8
Processing triggers for python-central ...

mint-1 apt # apt-get dist-upgrade -f


error..
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic
Warning: No support for locale: ja_JP.utf8
Processing triggers for install-info ...
Errors were encountered while processing:
/var/cache/apt/archives/mint-search-addon_2012.05.11_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint-1 apt # echo $?
100

mint-1 apt # apt-get remove --purge mint-search-addon
Setting up python-axiom (0.6.0-3) ...
Setting up python-coherence (0.6.6.2-6) ...
Processing triggers for dictionaries-common ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-29-generic
Warning: No support for locale: ja_JP.utf8
mint-1 apt # echo $?
0


then
apt-get dist-upgrade –f
W: Failed to fetch http://packages.linuxmint.com/dists/maya/Release.gpg  Could not resolve 'packages.linuxmint.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.


oops ,, edit /etc/resolv.conf
mint-1 apt # cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#nameserver ::1
#nameserver 127.0.0.1
nameserver 4.4.4.4
nameserver 8.8.8.8

mint-1 apt # apt-get update
Ign http://packages.medibuntu.org precise/non-free Translation-en
Fetched 184 kB in 25s (7162 B/s)
Reading package lists... Done
mint-1 apt #

mint-1 apt # apt-get dist-upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
 sessioninstaller
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

mint-1 apt # apt-get install -f sessioninstaller


update grub.conf
I’m using grub not grub2.
mint-1 apt # dpkg -l grub
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  grub           <none>         (no description available)
mint-1 apt # dpkg -l grub2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  grub2          <none>         (no description available)


mint-1 apt # update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-29-generic
Found initrd image: /boot/initrd.img-3.2.0-29-generic
Found linux image: /boot/vmlinuz-3.0.0-24-generic
Found initrd image: /boot/initrd.img-3.0.0-24-generic
Found linux image: /boot/vmlinuz-3.0.0-23-generic
Found initrd image: /boot/initrd.img-3.0.0-23-generic
Found linux image: /boot/vmlinuz-3.0.0-22-generic
Found initrd image: /boot/initrd.img-3.0.0-22-generic
Found linux image: /boot/vmlinuz-3.0.0-21-generic
Found initrd image: /boot/initrd.img-3.0.0-21-generic
Found linux image: /boot/vmlinuz-3.0.0-20-generic
Found initrd image: /boot/initrd.img-3.0.0-20-generic
Found linux image: /boot/vmlinuz-3.0.0-19-generic
Found initrd image: /boot/initrd.img-3.0.0-19-generic
Found linux image: /boot/vmlinuz-3.0.0-17-generic
Found initrd image: /boot/initrd.img-3.0.0-17-generic
Found linux image: /boot/vmlinuz-3.0.0-16-generic
Found initrd image: /boot/initrd.img-3.0.0-16-generic
Found linux image: /boot/vmlinuz-3.0.0-15-generic
Found initrd image: /boot/initrd.img-3.0.0-15-generic
Found linux image: /boot/vmlinuz-3.0.0-14-generic
Found initrd image: /boot/initrd.img-3.0.0-14-generic
Found linux image: /boot/vmlinuz-3.0.0-13-generic
Found initrd image: /boot/initrd.img-3.0.0-13-generic
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
 No volume groups found
grep: input file `/boot/grub/grub.cfg.new' is also the output
done
mint-1 apt #

mint-1 apt # egrep "3.2.0" /boot/grub/grub.cfg
menuentry 'Linux Mint 12 64-bit, 3.2.0-29-generic (/dev/sda1)' --class linuxmint --class gnu-linux --class gnu --class os {
       linux   /boot/vmlinuz-3.2.0-29-generic root=UUID=zzzza488-6ead-4559-96d3-204025040826 ro   quiet splash vt.handoff=7
       initrd  /boot/initrd.img-3.2.0-29-generic
menuentry 'Linux Mint 12 64-bit, 3.2.0-29-generic (/dev/sda1) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
       echo    'Loading Linux 3.2.0-29-generic ...'
       linux   /boot/vmlinuz-3.2.0-29-generic root=UUID=zzzza488-6ead-4559-96d3-204025040826 ro recovery nomodeset
       initrd  /boot/initrd.img-3.2.0-29-generic
mint-1 apt #

mint-1 apt # reboot


I could upgrade to Mint 13 from 12 ?? , because kernel ver is 3.2.
mint-1 ~ # cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=12
DISTRIB_CODENAME=lisa
DISTRIB_DESCRIPTION="Linux Mint 12 Lisa"

mint-1 ~ # uname -ri
3.2.0-29-generic x86_64

when booting the Mint , resolv.conf always is updated by resolvconf..
mint-1 ~ # cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#nameserver ::1  <- comment
nameserver 127.0.0.1

disable resolvconf to update resolv.conf , disable NetworkManger and enable network script.
mint-1 ~ # resolvconf --disable-updates

mint-1 ~ # sysv-rc-conf network-manager off
mint-1 ~ # sysv-rc-conf network on

mint-1 ~ # sysv-rc-conf --list | grep -i network
network      2:on       3:on    4:on    5:on
network-inte
network-inte
network-inte
network-mana 2:off      3:off   4:off   5:off
network-mang 2:off      3:off   4:off   5:off
networking   0:on       6:on

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.