Sunday, January 22, 2012

Install Upstart 1.3 on Ubuntu 10.04

I wanted to upgrade Upstart on Ubuntu 10.04 to make use of the new user jobs feature.  I cherry picked packages from Ubuntu 11.10 via http://pkgs.org/ubuntu-11.10/ubuntu-main-amd64/ . Here's what I came up with: (Run each command separately, some require user input)
sudo apt-get remove gcc-4.4
sudo dpkg -i initramfs-tools-bin_0.99ubuntu8_amd64.deb
sudo dpkg -i initramfs-tools_0.99ubuntu8_all.deb
sudo dpkg -i --force-breaks friendly-recovery_0.2.18_all.deb
sudo dpkg -i libc-bin_2.13-20ubuntu5_amd64.deb
sudo dpkg -i libc6_2.13-20ubuntu5_amd64.deb
sudo /etc/init.d/apache2 start
sudo dpkg -i gcc-4.6-base_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i libgmp10_5.0.1+dfsg-7ubuntu2_amd64.deb
sudo dpkg -i libmpfr4_3.0.1-5_amd64.deb
sudo dpkg -i libmpc2_0.9-3_amd64.deb
sudo dpkg -i multiarch-support_2.13-20ubuntu5_amd64.deb
sudo dpkg -i libstdc++6_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i binutils_2.21.53.20110810-0ubuntu3_amd64.deb
sudo dpkg -i libquadmath0_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i libgomp1_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i cpp-4.6_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i libgcc1_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i gcc-4.6_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i libc-dev-bin_2.13-20ubuntu5_amd64.deb
sudo dpkg -i make_3.81-8.1ubuntu1_amd64.deb
sudo dpkg -i --force-breaks libc6-dev_2.13-20ubuntu5_amd64.deb
sudo dpkg -i libc6-i386_2.13-20ubuntu5_amd64.deb
sudo dpkg -i debianutils_4.0.2_amd64.deb
sudo dpkg -i liblzma2_5.0.0-2_amd64.deb
sudo dpkg -i xz-utils_5.0.0-2_amd64.deb
sudo dpkg -i dpkg_1.15.8.4ubuntu3.1_amd64.deb
sudo dpkg -i --force-breaks mountall_2.31_amd64.deb initscripts_2.88dsf-13.10ubuntu4.1_amd64.deb ifupdown_0.7~alpha5.1ubuntu5_amd64.deb
sudo dpkg -i cpp_4.6.1-2ubuntu5_amd64.deb
sudo dpkg --remove cpp-4.4
sudo dpkg -i lib32gcc1_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i lib32stdc++6_4.6.1-9ubuntu3_amd64.deb
sudo dpkg -i libnih1_1.0.3-4ubuntu2_amd64.deb
sudo dpkg -i libnih-dbus1_1.0.3-4ubuntu2_amd64.deb
sudo dpkg -i upstart_1.3-0ubuntu11_amd64.deb
sudo apt-get remove gcc-4.4-base
sudo ln -s /usr/bin/gcc-4.6 /usr/bin/gcc
sudo vim /etc/init/ssh.conf; # remove "oom never" line
view raw gistfile1.sh hosted with ❤ by GitHub
I found that dbus wasn't installed, and as such running start foo would fail:

$ start foo
start: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory


Fixed via sudo apt-get install dbus

No comments:

Post a Comment