Upgrading to Ubuntu 12.04 LTS

From Tekkotsu Wiki

Jump to: navigation, search

If you need to install Ubuntu on a computer that is not presently running Ubuntu, see the Ubuntu install instructions page. If your computer is currently running Ubuntu 10.04 LTS, you can upgrade to Ubuntu 12.04 LTS (Long Term Support) without losing any of your files or having to reinstall Tekkotsu. The process is actually pretty painless, but time consuming.


Upgrade to 12.04 LTS

1. Make sure the computer has network access.

2. Become root and run the Update Manager by doing:

sudo -s

3. The Update Manager should indicate that Ubuntu 12.04 LTS is available. Click on the Upgrade button to begin the upgrade. Then:

  • Click to confirm the upgrade.
  • Wait a few minutes for the upgrade tool to load new software channel info. Then it will warn you that the upgrade will require several hours. Click on the Start Upgrade button to start things going. This really will take several hours, so once it starts running, go off and do something else, but check on it occasionally.
  • You will need to press one more confirmation button (a "Forward" button concerning glibc) before the actual package installation begins.
  • At some points in the process you'll get some pop-up window where all the characters in the message have been replaced with boxes (font problem). Just click on the button at the bottom to dismiss.
  • When package installation finishes and the installer asks about deleting obsolete packages, tell it to go ahead and do that.

4. Once the update is complete, reboot the machine. If you get an error message indicating that the "/tmp" file system is not available, just ignore it and proceed.

Reinstall Packages

Visit the Ubuntu Install Instructions page and re-do the apt-get install commands to make sure all required packages are present.

Re-install a required Perl package by doing the following as root:

perl -MCPAN -e "install Parse::RecDescent"

Re-build Tekkotsu

Ubuntu 12.04 uses a newer version of the gcc compiler that is incompatible with the older compiler's precompiled header files. So you will need to recompile Tekkotsu. Do this as root. If you are running on a dual-core 2 GB machine use "make -j4", but if you're running on a machine with only 1 GB RAM use "make -j2" instead.

cd /usr/local/Tekkotsu
rm -rf  build  project/build
cvs update -AdP
cd project
make -j4

Re-build Mirage

Some of the libraries Mirage depends on have been updated as part of the move to 12.04, so you will need to rebuild Mirage if you want to use it on this computer. Do this as root:

cd /usr/local/Tekkotsu/tools/mirage
make clean
make -j4

Re-build user project directory

Finally you should rebuild the project directories for all users. (On most machines this is just /home/user/project.) Do this as user, not as root!

exit    # stop being root
cd /home/user/project
make clean
cvs update -AdP
make -j4

Other Differences to Note

Ubuntu 12.04 LTS contains a complete driver for the Sony PlayStation Eye webcam, so you should not try to install the custom driver that was used under Ubuntu 10.04. The only user-visible difference between the drivers is the name of one camera option, which changed from "Autogain" to "Auto Gain". This change has been accommodated in the appropriate Tekkotsu plist files that will be updated as part of the "cvs update".