Last active
December 14, 2015 12:59
-
-
Save kjvalencik/5090660 to your computer and use it in GitHub Desktop.
Upgrading Ubuntu 11.10 to 12.04 on an old OpenVZ kernel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update | |
apt-get update | |
apt-get upgrade | |
# update manager for dist upgrades | |
apt-get install update-manager-core | |
# install recompiled libc, not available in repo | |
mkdir updateOpenVZ | |
cd updateOpenVZ | |
wget https://launchpad.net/~izx/+archive/ovz-libc/+files/libc6_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
wget https://launchpad.net/~izx/+archive/ovz-libc/+files/libc6-dbg_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
wget https://launchpad.net/~izx/+archive/ovz-libc/+files/libc6-dev_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
wget https://launchpad.net/~izx/+archive/ovz-libc/+files/libc6-i386_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
wget https://launchpad.net/~izx/+archive/ovz-libc/+files/libc6-pic_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
wget https://launchpad.net/~izx/+archive/ovz-libc/+files/libc6-prof_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
wget https://launchpad.net/~izx/+archive/ovz-libc/+files/libc-bin_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
wget https://launchpad.net/~izx/+archive/ovz-libc/+files/libc-dev-bin_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
dpkg -i * | |
# use precise repos or else you will get broken repositories (/etc/apt/sources.list) | |
deb http://archive.ubuntu.com/ubuntu precise main restricted universe | |
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe | |
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse | |
deb http://archive.canonical.com/ubuntu precise partner | |
# install missing packages required by the above debs | |
apt-get update | |
apt-get -f install | |
# Upgrade | |
do-release-upgrade | |
# Reboot and cross your fingers... | |
# Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 2.6.32-042stab074.10 x86_64) | |
# Success! | |
# To install g++ and such, you will need a couple more files | |
wget https://launchpad.net/~izx/+archive/sandbox2/+build/3468429/+files/libc-dev-bin_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
wget https://launchpad.net/~izx/+archive/sandbox2/+build/3468429/+files/libc6-dev_2.15-0ubuntu10%2Bopenvz0~oneiric_amd64.deb | |
dpkg -i * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment