apt-get install build-essential not working on vagrant through provision - vagrant

I have the following in my Vagrantfile. It install vim, but it does not install nodejs, git etc. How to change it so that it run apt-get install build-essential git-core python-software-properties nodejs? Or should I do this with puppet file?
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu32"
config.vm.provision :shell, path: './provision.sh'
config.vm.network "public_network"
end
provision.sh
apt-get update
apt-get install build-essential git-core python-software-properties nodejs
apt-get install vim -y
====
UPDATE: This is the outputs of vagrant up.
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'ubuntu32'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Available bridged network interfaces:
1) en1: Wi-Fi (AirPort)
2) en0: Ethernet
3) p2p0
What interface should the network bridge to? 1
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
cause things such as shared folders to not work properly. If you see
shared folder errors, please update the guest additions within the
virtual machine and reload your VM.
Guest Additions Version: 4.2.0
VirtualBox Version: 4.3
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] Running provisioner: shell...
[default] Running: /var/folders/y0/dzf6yf9n5r1bsl3p94lmv2fr0000gp/T/vagrant-shell20131108-47487-13ypot
stdin: is not a tty
Ign http://security.ubuntu.com precise-security InRelease
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:2 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:3 http://security.ubuntu.com precise-security/main Sources [92.5 kB]
Get:4 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:5 http://security.ubuntu.com precise-security/universe Sources [29.6 kB]
Ign http://us.archive.ubuntu.com precise InRelease
Get:6 http://security.ubuntu.com precise-security/multiverse Sources [1,804 B]
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Get:7 http://us.archive.ubuntu.com precise Release.gpg [198 B]
Get:8 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:9 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:10 http://security.ubuntu.com precise-security/main i386 Packages [354 kB]
Get:11 http://us.archive.ubuntu.com precise Release [49.6 kB]
Get:12 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:13 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:14 http://security.ubuntu.com precise-security/universe i386 Packages [88.4 kB]
Get:15 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,640 B]
Get:16 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Get:17 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:18 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:19 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:20 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:21 http://us.archive.ubuntu.com precise/main Sources [934 kB]
Get:22 http://security.ubuntu.com precise-security/main Translation-en [159 kB]
Get:23 http://security.ubuntu.com precise-security/multiverse Translation-en [1,299 B]
Get:24 http://security.ubuntu.com precise-security/restricted Translation-en [1,253 B]
Get:25 http://security.ubuntu.com precise-security/universe Translation-en [53.8 kB]
Get:26 http://us.archive.ubuntu.com precise/restricted Sources [5,470 B]
Get:27 http://us.archive.ubuntu.com precise/universe Sources [5,019 kB]
Get:28 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:29 http://us.archive.ubuntu.com precise/main i386 Packages [1,274 kB]
Get:30 http://us.archive.ubuntu.com precise/restricted i386 Packages [8,431 B]
Get:31 http://us.archive.ubuntu.com precise/universe i386 Packages [4,796 kB]
Get:32 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:33 http://us.archive.ubuntu.com precise/main TranslationIndex [3,706 B]
Get:34 http://us.archive.ubuntu.com precise/multiverse TranslationIndex [2,676 B]
Get:35 http://us.archive.ubuntu.com precise/restricted TranslationIndex [2,596 B]
Get:36 http://us.archive.ubuntu.com precise/universe TranslationIndex [2,922 B]
Get:37 http://us.archive.ubuntu.com precise-updates/main Sources [424 kB]
Get:38 http://us.archive.ubuntu.com precise-updates/restricted Sources [7,006 B]
Get:39 http://us.archive.ubuntu.com precise-updates/universe Sources [99.2 kB]
Get:40 http://us.archive.ubuntu.com precise-updates/multiverse Sources [8,354 B]
Get:41 http://us.archive.ubuntu.com precise-updates/main i386 Packages [723 kB]
Get:42 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [11.4 kB]
Get:43 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [225 kB]
Get:44 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [14.2 kB]
Get:45 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:46 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:47 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:48 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Get:49 http://us.archive.ubuntu.com precise-backports/main Sources [4,233 B]
Get:50 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:51 http://us.archive.ubuntu.com precise-backports/universe Sources [36.1 kB]
Get:52 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,311 B]
Get:53 http://us.archive.ubuntu.com precise-backports/main i386 Packages [2,838 B]
Get:54 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:55 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [36.7 kB]
Get:56 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,178 B]
Get:57 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:58 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:59 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:60 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Get:61 http://us.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:62 http://us.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:63 http://us.archive.ubuntu.com precise/restricted Translation-en [2,395 B]
Get:64 http://us.archive.ubuntu.com precise/universe Translation-en [3,341 kB]
Get:65 http://us.archive.ubuntu.com precise-updates/main Translation-en [317 kB]
Get:66 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [8,136 B]
Get:67 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2,637 B]
Get:68 http://us.archive.ubuntu.com precise-updates/universe Translation-en [129 kB]
Get:69 http://us.archive.ubuntu.com precise-backports/main Translation-en [2,072 B]
Get:70 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [4,610 B]
Get:71 http://us.archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:72 http://us.archive.ubuntu.com precise-backports/universe Translation-en [26.9 kB]
Fetched 19.6 MB in 1min 21s (242 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
dpkg-dev fakeroot g++ g++-4.6 git git-man libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libc-ares2 libdpkg-perl
liberror-perl libev4 libicu48 libstdc++6-4.6-dev libv8-3.7.12.22 make patch
python-pycurl unattended-upgrades
Suggested packages:
debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg
git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
git-email git-gui gitk gitweb libstdc++6-4.6-doc make-doc diffutils-doc
libcurl4-gnutls-dev python-pycurl-dbg bsd-mailx
The following NEW packages will be installed:
build-essential dpkg-dev fakeroot g++ g++-4.6 git git-core git-man
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libc-ares2 libdpkg-perl liberror-perl libev4 libicu48 libstdc++6-4.6-dev
libv8-3.7.12.22 make nodejs patch python-pycurl python-software-properties
unattended-upgrades
0 upgraded, 24 newly installed, 0 to remove and 155 not upgraded.
Need to get 26.5 MB of archives.
After this operation, 72.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? Abort.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libgpm2 libpython2.7 python2.7 python2.7-minimal vim-common vim-runtime
vim-tiny
Suggested packages:
gpm python2.7-doc binfmt-support ctags vim-doc vim-scripts indent
The following NEW packages will be installed:
libgpm2 libpython2.7 vim vim-runtime
The following packages will be upgraded:
python2.7 python2.7-minimal vim-common vim-tiny
4 upgraded, 4 newly installed, 0 to remove and 151 not upgraded.
Need to get 13.2 MB of archives.
After this operation, 27.8 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libgpm2 i386 1.20.4-4 [16.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7 i386 2.7.3-0ubuntu3.4 [2,647 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-minimal i386 2.7.3-0ubuntu3.4 [1,690 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-tiny i386 2:7.3.429-2ubuntu2.1 [380 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-common i386 2:7.3.429-2ubuntu2.1 [85.8 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpython2.7 i386 2.7.3-0ubuntu3.4 [1,148 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-runtime all 2:7.3.429-2ubuntu2.1 [6,277 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim i386 2:7.3.429-2ubuntu2.1 [979 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 13.2 MB in 49s (270 kB/s)
Selecting previously unselected package libgpm2.
(Reading database ... 29361 files and directories currently installed.)
Unpacking libgpm2 (from .../libgpm2_1.20.4-4_i386.deb) ...
Preparing to replace python2.7 2.7.3-0ubuntu3 (using .../python2.7_2.7.3-0ubuntu3.4_i386.deb) ...
Unpacking replacement python2.7 ...
Preparing to replace python2.7-minimal 2.7.3-0ubuntu3 (using .../python2.7-minimal_2.7.3-0ubuntu3.4_i386.deb) ...
Unpacking replacement python2.7-minimal ...
Processing triggers for man-db ...
Setting up python2.7-minimal (2.7.3-0ubuntu3.4) ...
(Reading database ... 29364 files and directories currently installed.)
Preparing to replace vim-tiny 2:7.3.429-2ubuntu2 (using .../vim-tiny_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Unpacking replacement vim-tiny ...
Preparing to replace vim-common 2:7.3.429-2ubuntu2 (using .../vim-common_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Unpacking replacement vim-common ...
Selecting previously unselected package libpython2.7.
Unpacking libpython2.7 (from .../libpython2.7_2.7.3-0ubuntu3.4_i386.deb) ...
Selecting previously unselected package vim-runtime.
Unpacking vim-runtime (from .../vim-runtime_2%3a7.3.429-2ubuntu2.1_all.deb) ...
Adding 'diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim73/doc/tags to /usr/share/vim/vim73/doc/tags.vim-tiny by vim-runtime'
Selecting previously unselected package vim.
Unpacking vim (from .../vim_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Processing triggers for man-db ...
Setting up libgpm2 (1.20.4-4) ...
Setting up python2.7 (2.7.3-0ubuntu3.4) ...
Setting up vim-common (2:7.3.429-2ubuntu2.1) ...
Setting up vim-tiny (2:7.3.429-2ubuntu2.1) ...
Setting up libpython2.7 (2.7.3-0ubuntu3.4) ...
Setting up vim-runtime (2:7.3.429-2ubuntu2.1) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.3.429-2ubuntu2.1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

I am running Vagrant 1.3.5 and VirtualBox 4.3.2 r90405 on Mac OSX Mavericks. I downgrade VirtualBox to 4.2.18 (I will change to 4.2.0) and installed vagrant-vbguest
vagrant plugin install vagrant-vbguest
Then I run this command.
$sudo /Library/StartupItems/VirtualBox/VirtualBox restart
Found at vagrant 'hostonlyif' create not working
I added -y to apt-get
apt-get update
apt-get -y install build-essential git-core python-software-properties nodejs
apt-get -y install vim
Then it installed all.

Related

heroku-buildpack-apt; Unable to locate package

I am using the buildpack located at https://github.com/heroku/heroku-buildpack-apt.git to install required packages using the Aptfile. Everything worked fine for a while, but now every package gives an "Unable to locate package" error. This is with the exact same files on the exact same heroku stack. Did the buildpack for using Aptfile deprecate or is there a workaround?
Full build log:
-----> Using buildpacks:
1. https://github.com/heroku/heroku-buildpack-apt.git
2. heroku/python
3. https://github.com/heroku/heroku-buildpack-python.git
4. https://github.com/matt-bertoncello/python-pyodbc-buildpack.git
-----> Apt app detected
-----> Detected Aptfile or Stack changes, flushing cache
-----> Updating apt caches
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [81.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
Get:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [311 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:8 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [786 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [699 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,203 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [965 kB]
Fetched 17.2 MB in 2s (7,544 kB/s)
Reading package lists...
-----> Fetching .debs for unixodbc
Reading package lists...
Building dependency tree...
E: Unable to locate package unixodbc
! Push rejected, failed to compile Apt app.
! Push failed```

The command "sudo apt-get update" always ocurred errors

The old g++/gcc version on my computer is 4.6.3. I need to update it to 4.8, because some softwares I want to install are required.
But when I update g++/gcc on ubuntu 12.04 as follow command, there were some errors.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.8
I can run the first command well.
myshu#ubuntu-headnode:~$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
You are about to add the following PPA to your system:
Toolchain test builds; see https://wiki.ubuntu.com/ToolChain
More info: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmp4H9X2n/secring.gpg' created
gpg: keyring `/tmp/tmp4H9X2n/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp4H9X2n/trustdb.gpg: trustdb created
gpg: key BA9EF27F: public key "Launchpad Toolchain builds" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
But the "sudo apt-get update" always have errors.
myshu#ubuntu-headnode:~$ sudo apt-get update
Hit http://mirrors.sohu.com precise Release.gpg
Get:1 http://mirrors.sohu.com precise-updates Release.gpg [198 B]
Hit http://mirrors.sohu.com precise-backports Release.gpg
Get:2 http://mirrors.sohu.com precise-security Release.gpg [198 B]
Hit http://mirrors.sohu.com precise Release
Get:3 http://mirrors.sohu.com precise-updates Release [55.4 kB]
Hit http://mirrors.sohu.com precise-backports Release
Get:4 http://mirrors.sohu.com precise-security Release [55.5 kB]
Hit http://mirrors.sohu.com precise/main Sources
Hit http://mirrors.sohu.com precise/restricted Sources
Hit http://mirrors.sohu.com precise/universe Sources
Hit http://mirrors.sohu.com precise/multiverse Sources
Hit http://mirrors.sohu.com precise/main amd64 Packages
Hit http://mirrors.sohu.com precise/restricted amd64 Packages
Hit http://mirrors.sohu.com precise/universe amd64 Packages
Hit http://mirrors.sohu.com precise/multiverse amd64 Packages
Hit http://mirrors.sohu.com precise/main i386 Packages
Hit http://mirrors.sohu.com precise/restricted i386 Packages
Hit http://mirrors.sohu.com precise/universe i386 Packages
Hit http://mirrors.sohu.com precise/multiverse i386 Packages
Hit http://mirrors.sohu.com precise/main TranslationIndex
Hit http://mirrors.sohu.com precise/multiverse TranslationIndex
Hit http://mirrors.sohu.com precise/restricted TranslationIndex
Hit http://mirrors.sohu.com precise/universe TranslationIndex
Get:5 http://mirrors.sohu.com precise-updates/main Sources [500 kB]
Get:6 http://extras.ubuntu.com precise Release.gpg [72 B]
Get:7 http://mirrors.sohu.com precise-updates/restricted Sources [8,835 B]
Get:8 http://mirrors.sohu.com precise-updates/universe Sources [134 kB]
Get:9 http://mirrors.sohu.com precise-updates/multiverse Sources [10.5 kB]
Get:10 http://mirrors.sohu.com precise-updates/main amd64 Packages [1,050 kB]
Hit http://extras.ubuntu.com precise Release
Hit http://extras.ubuntu.com precise/main Sources
Hit http://ppa.launchpad.net precise Release.gpg
Get:11 http://mirrors.sohu.com precise-updates/restricted amd64 Packages [15.4 kB]
Get:12 http://mirrors.sohu.com precise-updates/universe amd64 Packages [285 kB]
Get:13 http://mirrors.sohu.com precise-updates/multiverse amd64 Packages [17.1 kB]
Get:14 http://mirrors.sohu.com precise-updates/main i386 Packages [1,126 kB]
Hit http://extras.ubuntu.com precise/main amd64 Packages
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:15 http://mirrors.sohu.com precise-updates/restricted i386 Packages [15.4 kB]
Get:16 http://mirrors.sohu.com precise-updates/universe i386 Packages [294 kB]
Get:17 http://mirrors.sohu.com precise-updates/multiverse i386 Packages [17.3 kB]
Get:18 http://mirrors.sohu.com precise-updates/main TranslationIndex [208 B]
Get:19 http://mirrors.sohu.com precise-updates/multiverse TranslationIndex [202 B]
Get:20 http://mirrors.sohu.com precise-updates/restricted TranslationIndex [202 B]
Get:21 http://mirrors.sohu.com precise-updates/universe TranslationIndex [205 B]
Hit http://mirrors.sohu.com precise-backports/main Sources
Hit http://mirrors.sohu.com precise-backports/restricted Sources
Hit http://mirrors.sohu.com precise-backports/universe Sources
Hit http://mirrors.sohu.com precise-backports/multiverse Sources
Hit http://mirrors.sohu.com precise-backports/main amd64 Packages
Hit http://mirrors.sohu.com precise-backports/restricted amd64 Packages
Hit http://mirrors.sohu.com precise-backports/universe amd64 Packages
Hit http://mirrors.sohu.com precise-backports/multiverse amd64 Packages
Hit http://mirrors.sohu.com precise-backports/main i386 Packages
Hit http://mirrors.sohu.com precise-backports/restricted i386 Packages
Hit http://mirrors.sohu.com precise-backports/universe i386 Packages
Hit http://mirrors.sohu.com precise-backports/multiverse i386 Packages
Hit http://mirrors.sohu.com precise-backports/main TranslationIndex
Hit http://mirrors.sohu.com precise-backports/multiverse TranslationIndex
Hit http://mirrors.sohu.com precise-backports/restricted TranslationIndex
Hit http://mirrors.sohu.com precise-backports/universe TranslationIndex
Get:22 http://mirrors.sohu.com precise-security/main Sources [146 kB]
Get:23 http://mirrors.sohu.com precise-security/restricted Sources [4,636 B]
Get:24 http://mirrors.sohu.com precise-security/universe Sources [55.3 kB]
Get:25 http://mirrors.sohu.com precise-security/multiverse Sources [3,035 B]
Get:26 http://mirrors.sohu.com precise-security/main amd64 Packages [668 kB]
Hit http://ppa.launchpad.net precise Release
Get:27 http://mirrors.sohu.com precise-security/restricted amd64 Packages [10.8 kB]
Get:28 http://mirrors.sohu.com precise-security/universe amd64 Packages [141 kB]
Get:29 http://mirrors.sohu.com precise-security/multiverse amd64 Packages [3,352 B]
Get:30 http://mirrors.sohu.com precise-security/main i386 Packages [741 kB]
Get:31 http://ppa.launchpad.net precise/main Sources [1,600 B]
Get:32 http://mirrors.sohu.com precise-security/restricted i386 Packages [10.8 kB]
Get:33 http://mirrors.sohu.com precise-security/universe i386 Packages [149 kB]
Get:34 http://mirrors.sohu.com precise-security/multiverse i386 Packages [3,533 B]
Get:35 http://mirrors.sohu.com precise-security/main TranslationIndex [208 B]
Get:36 http://mirrors.sohu.com precise-security/multiverse TranslationIndex [199 B]
Get:37 http://mirrors.sohu.com precise-security/restricted TranslationIndex [202 B]
Get:38 http://mirrors.sohu.com precise-security/universe TranslationIndex [205 B]
Hit http://mirrors.sohu.com precise/main Translation-en
Hit http://mirrors.sohu.com precise/multiverse Translation-en
Hit http://mirrors.sohu.com precise/restricted Translation-en
Hit http://mirrors.sohu.com precise/universe Translation-en
Get:39 http://mirrors.sohu.com precise-updates/main Translation-en [432 kB]
Ign http://extras.ubuntu.com precise/main Translation-en_US
Get:40 http://mirrors.sohu.com precise-updates/multiverse Translation-en [10.1 kB]
Get:41 http://mirrors.sohu.com precise-updates/restricted Translation-en [3,690 B]
Get:42 http://mirrors.sohu.com precise-updates/universe Translation-en [172 kB]
Hit http://mirrors.sohu.com precise-backports/main Translation-en
Hit http://mirrors.sohu.com precise-backports/multiverse Translation-en
Hit http://mirrors.sohu.com precise-backports/restricted Translation-en
Hit http://mirrors.sohu.com precise-backports/universe Translation-en
Get:43 http://mirrors.sohu.com precise-security/main Translation-en [270 kB]
Ign http://extras.ubuntu.com precise/main Translation-en
Get:44 http://mirrors.sohu.com precise-security/multiverse Translation-en [1,993 B]
Get:45 http://mirrors.sohu.com precise-security/restricted Translation-en [2,805 B]
Get:46 http://mirrors.sohu.com precise-security/universe Translation-en [90.4 kB]
Hit http://ppa.launchpad.net precise/main TranslationIndex
Get:47 http://ppa.launchpad.net precise/main amd64 Packages [25.7 kB]
Get:48 http://ppa.launchpad.net precise/main i386 Packages [3,396 B]
Get:49 http://ppa.launchpad.net precise/main Translation-en [1,556 B]
Ign http://dl.secondarymetabolites.org jessie Release.gpg
Ign http://dl.secondarymetabolites.org jessie Release
Ign http://dl.secondarymetabolites.org jessie/main TranslationIndex
Err http://dl.secondarymetabolites.org jessie/main amd64 Packages
Undetermined Error [IP: 130.226.56.135 80]
Err http://dl.secondarymetabolites.org jessie/main i386 Packages
Undetermined Error [IP: 130.226.56.135 80]
Ign http://dl.secondarymetabolites.org jessie/main Translation-en_US
Ign http://dl.secondarymetabolites.org jessie/main Translation-en
Fetched 6,537 kB in 10min 14s (10.6 kB/s)
W: Failed to fetch http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/precise/main/source/Sources Hash Sum mismatch
W: Failed to fetch http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/precise/main/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/precise/main/binary-i386/Packages Hash Sum mismatch
W: Failed to fetch http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/precise/main/i18n/Translation-en Hash Sum mismatch
W: Failed to fetch http://dl.secondarymetabolites.org/repos/deb/dists/jessie/main/binary-amd64/Packages Undetermined Error [IP: 130.226.56.135 80]
W: Failed to fetch http://dl.secondarymetabolites.org/repos/deb/dists/jessie/main/binary-i386/Packages Undetermined Error [IP: 130.226.56.135 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Can anyone help me to solves this problem?

WARN: Missing gem 'right_aws'

I am working my way through a video tutorial at http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/
I am working on win7 and using git-bash for my terminal. I have installed the latest virtualbox - 4.2.12 and the latest vagrant - 1.22. I have chef 11.4.4 installed
In the forums for this tutorial I came across a modified vagrantFile at https://dl.dropboxusercontent.com/u/1343706/gswd-vagrantfile. I replaced the original vagrant file with this.
I tried to run vagrant up and got:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 8000 => 8888 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] -- /tmp/vagrant-chef-1/chef-solo-2/cookbooks
[default] Running provisioner: shell...
[default] Running: inline script
stdin: is not a tty
Ign http://security.ubuntu.com precise-security InRelease
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise-updates Release.gpg
Hit http://security.ubuntu.com precise-security Release
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Hit http://us.archive.ubuntu.com precise-updates Release
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/main amd64 Packages
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Sources
Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
Hit http://us.archive.ubuntu.com precise-updates/universe Sources
Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Reading package lists...
[default] Running provisioner: shell...
[default] Running: inline script
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version.
ruby1.9.3 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 131 not upgraded.
[default] Running provisioner: shell...
[default] Running: inline script
stdin: is not a tty
Successfully installed chef-11.4.4
1 gem installed
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
[2013-06-16T21:02:21+00:00] INFO: *** Chef 11.4.4 ***
[2013-06-16T21:02:22+00:00] INFO: Setting the run_list to ["recipe[postgresql::s
erver_debian]", "recipe[postgresql::ruby]", "recipe[redis::server]", "recipe[git
]", "recipe[mercurial]", "recipe[emacs]", "recipe[vim]", "recipe[nano]", "recipe
[gswd::database]"] from JSON
[2013-06-16T21:02:22+00:00] INFO: Run List is [recipe[postgresql::server_debian]
, recipe[postgresql::ruby], recipe[redis::server], recipe[git], recipe[mercurial
], recipe[emacs], recipe[vim], recipe[nano], recipe[gswd::database]]
[2013-06-16T21:02:22+00:00] INFO: Run List expands to [postgresql::server_debian
, postgresql::ruby, redis::server, git, mercurial, emacs, vim, nano, gswd::datab
ase]
[2013-06-16T21:02:22+00:00] INFO: Starting Chef Run for precise64
[2013-06-16T21:02:22+00:00] INFO: Running start handlers
[2013-06-16T21:02:22+00:00] INFO: Start handlers complete.
[2013-06-16T21:02:24+00:00] WARN: Missing gem 'right_aws'
←[0m
================================================================================
←[0m
←[31mRecipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/resou
rces/key.rb←[0m
================================================================================
←[0m
←[0m
ArgumentError←[0m
-------------←[0m
wrong number of arguments (2 for 1)←[0m
←[0m
Cookbook Trace:←[0m
---------------←[0m
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:42:in
`const_defined?'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:42:in
`build_from_file'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compil
er.rb:208:in `load_lwrp_resource'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compil
er.rb:193:in `load_lwrps_from_cookbook'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compil
er.rb:192:in `each'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compil
er.rb:192:in `load_lwrps_from_cookbook'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compil
er.rb:120:in `compile_lwrps'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compil
er.rb:119:in `each'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compil
er.rb:119:in `compile_lwrps'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compil
er.rb:72:in `compile'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context.rb:86:in `load'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:224:in `setup_run
_context'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:467:in `do_run'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:200:in `run'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application.rb:190:in `run_
chef_client'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/solo.rb:239:in
`run_application'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/solo.rb:231:in
`loop'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/solo.rb:231:in
`run_application'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application.rb:73:in `run'
/var/lib/gems/1.8/gems/chef-11.4.4/bin/chef-solo:25
/usr/local/bin/chef-solo:19:in `load'
/usr/local/bin/chef-solo:19←[0m
←[0m
Relevant File Content:←[0m
----------------------←[0m
/var/lib/gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:
35:
36: # Evaluates the LWRP resource file and instantiates a new Resource c
lass.
37: def self.build_from_file(cookbook_name, filename, run_context)
38: rname = filename_to_qualified_string(cookbook_name, filename)
39:
40: # Add log entry if we override an existing light-weight resource.
41: class_name = convert_to_class_name(rname)
42>> if Resource.const_defined?(class_name, false)
43: old_class = Resource.send(:remove_const, class_name)
44: # CHEF-3432 -- Chef::Resource keeps a list of subclasses; need t
o
45: # remove old ones from the list when replacing.
46: resource_classes.delete(old_class)
47: Chef::Log.info("#{class_name} light-weight resource already init
ialized -- overriding!")
48: end
49:
50: resource_class = Class.new(self)
51:
←[0m
←[0m
[2013-06-16T21:02:25+00:00] ERROR: Running exception handlers
[2013-06-16T21:02:25+00:00] ERROR: Exception handlers complete
[2013-06-16T21:02:25+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef
-stacktrace.out
[2013-06-16T21:02:25+00:00] FATAL: ArgumentError: wrong number of arguments (2 f
or 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Could someone advise me what to do next to fix this?
The warning about the missing gem is irrelevant in this case - the actual issue is lower down in the logs:
42>> if Resource.const_defined?(class_name, false)
...
[2013-06-16T21:02:25+00:00] FATAL: ArgumentError: wrong number of arguments (2 for 1)
Comparing the Ruby 1.8 and 1.9 docs we can see that an additional parameter was added to the Module#const_defined? method in 1.9.
It would appear that your Chef installation is using Ruby 1.8 or below hence the error.
The easiest way to make sure Chef is running on a modern version of Ruby is to use the omnibus installer - the vagrant-omnibus plugin looks like it might solve your problem.
The issue is that vagrant virtual image has the ruby 1.8 version installed. (check it by running vagrant ssh; ruby -v). You will need to update it to 1.9.x, because the number of parameters of Resource.const_defined function has changed.
The following actions worked for me:
sudo apt-get clean
sudo apt-get update #this will clean and update the ap-get repositories
sudo apt-get install ruby1.9.3 # installs ruby (you can change the version as you see fit)
Then add:
config.vm.provision :shell, :inline => "sudo aptitude -y install build-essential"
after the # Upgrade Chef automatically
This will install the build-essential package which will install make.

Cloudera Hadoop - install error

I'm new to Linux and Hadoop. I want to learn the basics of Pig, MapReduce and Hive and I'm trying to install Cloudera's Hadoop solution on Ubuntu.
This is the tutorial I'm following.
I'm stuck on Step 1. I'm not using a proxy, so I skipped the proxy configuration steps. Got to step 1.6, and then I get the following error message. Any ideas what I should try?
Refreshing repository metadata failed. See /var/log/cloudera-manager-installer/2.refresh-repo.log for details. Click OK to revert this installation.
And this is what's on that log file:
Hit http://archive.cloudera.com precise-cm4 Release.gpg
Hit http://archive.cloudera.com precise-cm4 Release
Ign http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise-updates Release.gpg
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://archive.cloudera.com precise-cm4/contrib Sources
Ign http://ppa.launchpad.net precise Release
Hit http://archive.cloudera.com precise-cm4/contrib amd64 Packages
Ign http://archive.cloudera.com precise-cm4/contrib TranslationIndex
Hit http://archive.ubuntu.com precise Release
Hit http://security.ubuntu.com precise-security Release
Hit http://ppa.launchpad.net precise Release
Hit http://archive.ubuntu.com precise-updates Release
Hit http://security.ubuntu.com precise-security/main amd64 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise-updates/main i386 Packages
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Ign http://archive.cloudera.com precise-cm4/contrib Translation-en_US
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Ign http://archive.cloudera.com precise-cm4/contrib Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Err http://ppa.launchpad.net precise/main Sources
404 Not Found
Err http://ppa.launchpad.net precise/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net precise/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Looks like you have broken repository references that are unrelated to Cloudera, but causing your install to fail.
Err http://ppa.launchpad.net precise/main Sources
404 Not Found
Err http://ppa.launchpad.net precise/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net precise/main i386 Packages
404 Not Found
...
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found
Check out https://askubuntu.com/questions/65911/how-can-i-fix-a-404-error-using-a-ppa. Specifically look for http://ppa.launchpad.net/ferramroberto.

Errors while trying to perform Single Node Cloud Foundry VCAP Deployment

I am attempting to install the Cloud Foundry VCAP as a single node on an Ubutnu 10.04.4 VM using the instructions provided here. I am logged in as a root.
I complete the Common tasks without problem, but when I get to attempting Option 2 under Single Node Deployment, where I execute the script bin/vcap_dev_setup I do not get the expected results. First, it does not promt me for the sudo password (perhaps since I am logged in as root?) and then it seems to run fine until it gets to a file it tries to download but can't...
root#cloudlg187220:~/cloudfoundry/vcap/dev_setup/bin# ./vcap_dev_setup
Hit http://us.archive.ubuntu.com lucid Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Get:1 http://us.archive.ubuntu.com lucid-updates Release.gpg [198B]
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release
Get:2 http://us.archive.ubuntu.com lucid-updates Release [58.3kB]
Ign http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/swift-core/ppa/ubuntu/ lucid/main Translation-en_US
Get:3 http://security.ubuntu.com lucid-security Release.gpg [198B]
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Ign http://ppa.launchpad.net lucid Release
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Get:4 http://security.ubuntu.com lucid-security Release [57.3kB]
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Get:5 http://us.archive.ubuntu.com lucid-updates/main Packages [663kB]
Ign http://ppa.launchpad.net lucid/main Packages
Ign http://ppa.launchpad.net lucid/main Packages
Err http://ppa.launchpad.net lucid/main Packages
404 Not Found
Get:6 http://us.archive.ubuntu.com lucid-updates/restricted Packages [4,624B]
Get:7 http://us.archive.ubuntu.com lucid-updates/main Sources [233kB]
Get:8 http://security.ubuntu.com lucid-security/main Packages [474kB]
Get:9 http://us.archive.ubuntu.com lucid-updates/restricted Sources [2,196B]
Get:10 http://us.archive.ubuntu.com lucid-updates/universe Packages [317kB]
Get:11 http://us.archive.ubuntu.com lucid-updates/universe Sources [106kB]
Get:12 http://us.archive.ubuntu.com lucid-updates/multiverse Packages [11.5kB]
Get:13 http://us.archive.ubuntu.com lucid-updates/multiverse Sources [5,823B]
Get:14 http://security.ubuntu.com lucid-security/restricted Packages [2,829B]
Get:15 http://security.ubuntu.com lucid-security/main Sources [134kB]
Get:16 http://security.ubuntu.com lucid-security/restricted Sources [1,267B]
Get:17 http://security.ubuntu.com lucid-security/universe Packages [168kB]
Get:18 http://security.ubuntu.com lucid-security/universe Sources [43.8kB]
Get:19 http://security.ubuntu.com lucid-security/multiverse Packages [5,343B]
Get:20 http://security.ubuntu.com lucid-security/multiverse Sources [2,337B]
Fetched 2,290kB in 4s (553kB/s)
W: Failed to fetch http://ppa.launchpad.net/swift-core/ppa/ubuntu/dists/lucid/main/binary-amd64/Packages.gz 404 Not Found
E: Some index files failed to download, they have been ignored, or old ones used instead.
Every reference to this error I find online has no answer. Does anyone have an idea or suggestion? Thanks for any help you can offer.
The article you want to use to install vcap on a single VM/Machine is at the following:
https://github.com/cloudfoundry/vcap/tree/master/dev_setup
The link you provided is out of date

Resources