How to repackage OpenNebula 3.4 for Ubuntu 11.04

Overview

This is a step-by-step guide to be able to install the officially released .deb file for 10.04 (LTS) in a newer Ubuntu release 11.04.

  1. obtain file Ubuntu-10.04-opennebula_3.4.0-1_amd64.deb from the official website
  2. mkdir temp
  3. mv Ubuntu-10.04-opennebula_3.4.0-1_amd64.deb temp/
  4. cd temp/
  5. ar x Ubuntu-10.04-opennebula_3.4.0-1_amd64.deb
  6. del Ubuntu-10.04-opennebula_3.4.0-1_amd64.deb
  7. tar xzvf control.tar.gz
  8. rm control.tar.gz
  9. edit the file control and modify the name of these two dependencies:
    • from libxmlrpc-c3 to libxmlrpc-c3-0
    • from libxmlrpc-core-c3 to libxmlrpc-core-c3-0
  10. repackage everything:
    • tar czvf control.tar.gz conffiles prerm postrm control postinst md5sum
  11. recreate the .deb archive with a new name:
    • ar -r Ubuntu-11.04-opennebula_3.4.0-1_amd64.deb control.tar.gz data.tar.gz debian-binary
  12. install it with: sudo gdebi Ubuntu-11.04-opennebula_3.4.0-1_amd64.deb

Once the installation of the .deb is finished, you need to fix some static links used by the onehost executable:

  1. cd /usr/lib
  2. sudo ln -s libxmlrpc_server_abyss++.so.4 libxmlrpc_server_abyss++.so.3
  3. sudo ln -s libxmlrpc_client++.so.4 libxmlrpc_client++.so.3
  4. sudo ln -s libxmlrpc++.so.4 libxmlrpc++.so.3
  5. sudo ln -s libxmlrpc_server++.so.4 libxmlrpc_server++.so.3

Finally, if you had previously installed OpenNebula, you might need to delete the content of /var/lib/one, to avoid 'Database version mismatch.'.

repackage_3.4_for_ubuntu_11.04 · Last modified: 2012/04/27 13:13 by Valerio Schiavoni
Admin · Login