lost and found ( for me ? )

Ubuntu : upgrade to 12.10 from 12.04

Here’s an example of how to upgrade to 12.10 from 12.04 including trial and error.

In my case , I faced two problems.

- need to import the key
- /tmp directory is full


After solving the above issues , I was able to upgrade to 12.10.

[ logs including trial and error ]

start update-manager
$ update-manager –d


click “Upgrade”






Authentication failed …



$ update-manager –d
authenticate 'quantal.tar.gz' against 'quantal.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 2
Debug information:

secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768

gpg: Signature made Wed Oct 17 04:51:53 2012 JST using DSA key ID 437D05B5
gpg: error writing to `/tmp/update-manager-cZAtmI/.#lk0x243d440.ubuntu-1.13088': No space left on device
gpg: fatal: can't create lock for `/tmp/update-manager-cZAtmI/trustdb.gpg'


import the auth key
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 437D05B5
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.Hn4JhiGURo --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 437D05B5
gpg: requesting key 437D05B5 from hkp server keyserver.ubuntu.com
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" 24 new signatures
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:         new signatures: 24

# apt-get update


upgrade to 12.10 via update-manager again.
still same error

try the upgrade with CLI.

at first edit /etc/update-manager/release-upgrades

from
Prompt=lts

to
Prompt=normal


clean DB.
# apt-get clean
# apt-get update
# do-release-upgrad
Not enough free disk space

The upgrade has aborted. The upgrade needs a total of 5243 k free
space on disk '/tmp'. Please free at least an additional 5243 k of
disk space on '/tmp'. Empty your trash and remove temporary packages
of former installations using 'sudo apt-get clean'.e


actually /tmp directory is full..
# df -h | grep -i \/tmp
overflow        1.0M  1.0M     0 100% /tmp

# egrep \/tmp /etc/mtab
overflow /tmp tmpfs rw,size=1048576,mode=1777 0 0


edit mtab ( 1048576 to 10485760 )
# egrep \/tmp /etc/mtab
overflow /tmp tmpfs rw,size=10485760,mode=1777 0 0


reboot the OS
# reboot


after rebooting the OS , do the upgrade again via CLI
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 437D05B5
# do-release-upgrade
System upgrade is complete.

Restart required

To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.

Continue [yN] n
=== Command terminated normally (Mon Oct 22 17:01:52 2012) ===
[screen is terminating]


reboot the OS
# reboot

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:        12.10
Codename:       quantal

# uname -ri
3.5.0-17-generic x86_64

No comments:

Post a Comment

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