Probable errors running sudo ./postinstall.sh
Hi guys, I've gotten everything working as far as installation of the VM. next I tried:
vagrant@precise64:~$ sudo ./postinstall.sh + sed -i -e /Defaults\s+env_reset/a Defaults\texempt_group=admin /etc/sudoers + groupadd -r admin groupadd: group 'admin' already exists + true + usermod -a -G admin vagrant + sed -i -e s/%admin ALL=(ALL) ALL/%admin ALL=(ALL) NOPASSWD:ALL/g /etc/sudoers + echo LC_ALL="en_US" + apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev make curl git-core Reading package lists... Done Building dependency tree Reading state information... Done git-core is already the newest version. libreadline-dev is already the newest version. zlib1g-dev is already the newest version. build-essential is already the newest version. make is already the newest version. make set to manually installed. The following extra packages will be installed: libcurl3 libssl1.0.0 The following NEW packages will be installed: curl libcurl3 The following packages will be upgraded: libssl-dev libssl1.0.0 2 upgraded, 2 newly installed, 0 to remove and 126 not upgraded. Need to get 2,995 kB of archives. After this operation, 1,114 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libssl-dev amd64 1.0.1-4ubuntu5.9 [1,574 kB] Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 amd6 4 1.0.1-4ubuntu5.9 [1,048 kB] Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl3 amd64 7 .22.0-3ubuntu4.1 [236 kB] Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main curl amd64 7.22. 0-3ubuntu4.1 [137 kB] Fetched 2,995 kB in 2s (1,309 kB/s) Preconfiguring packages ... (Reading database ... 76049 files and directories currently installed.) Preparing to replace libssl-dev 1.0.1-4ubuntu5.5 (using .../libssl-dev_1.0.1-4ub untu5.9_amd64.deb) ... Unpacking replacement libssl-dev ... Preparing to replace libssl1.0.0 1.0.1-4ubuntu5.5 (using .../libssl1.0.0_1.0.1-4 ubuntu5.9_amd64.deb) ... Unpacking replacement libssl1.0.0 ... Setting up libssl1.0.0 (1.0.1-4ubuntu5.9) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Selecting previously unselected package libcurl3. (Reading database ... 76049 files and directories currently installed.) Unpacking libcurl3 (from .../libcurl3_7.22.0-3ubuntu4.1_amd64.deb) ... Selecting previously unselected package curl. Unpacking curl (from .../curl_7.22.0-3ubuntu4.1_amd64.deb) ... Processing triggers for man-db ... Setting up libssl-dev (1.0.1-4ubuntu5.9) ... Setting up libcurl3 (7.22.0-3ubuntu4.1) ... Setting up curl (7.22.0-3ubuntu4.1) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place + clone_dir=/tmp/ruby-build-16505 + git clone https://github.com/sstephenson/ruby-build.git /tmp/ruby-build-16505 Cloning into '/tmp/ruby-build-16505'... remote: Counting objects: 1925, done. remote: Compressing objects: 100% (1165/1165), done. remote: Total 1925 (delta 783), reused 1694 (delta 578) Receiving objects: 100% (1925/1925), 261.26 KiB, done. Resolving deltas: 100% (783/783), done. + /tmp/ruby-build-16505/bin/ruby-build 1.8.7-p358 /opt/vagrant_ruby Downloading ruby-1.8.7-p358.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/26bd55358847459a7752acdbd33a535f Installing ruby-1.8.7-p358... Installed ruby-1.8.7-p358 to /opt/vagrant_ruby
Downloading rubygems-1.6.2.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/0c95a9869914ba1a45bf71d3b8048420 Installing rubygems-1.6.2... Installed rubygems-1.6.2 to /opt/vagrant_ruby
- rm -rf /tmp/ruby-build-16505
- unset clone_dir
- /opt/vagrant_ruby/bin/gem install polyglot net-ssh-gateway mime-types --no-ri --no-rdoc Successfully installed polyglot-0.3.3 Fetching: net-ssh-2.6.7.gem (100%) Fetching: net-ssh-gateway-1.2.0.gem (100%) Successfully installed net-ssh-2.6.7 Successfully installed net-ssh-gateway-1.2.0 Fetching: mime-types-1.23.gem (100%) Successfully installed mime-types-1.23 4 gems installed
- /opt/vagrant_ruby/bin/gem install chef --no-ri --no-rdoc Fetching: mixlib-cli-1.3.0.gem (100%) Fetching: chef-11.4.4.gem (100%) Successfully installed mixlib-cli-1.3.0 Successfully installed chef-11.4.4 2 gems installed
- /opt/vagrant_ruby/bin/gem install puppet --no-ri --no-rdoc Fetching: json_pure-1.8.0.gem (100%) Fetching: hiera-1.2.1.gem (100%) Fetching: rgen-0.6.2.gem (100%) Fetching: puppet-3.2.1.gem (100%) Successfully installed json_pure-1.8.0 Successfully installed hiera-1.2.1 Successfully installed rgen-0.6.2 Successfully installed puppet-3.2.1 4 gems installed
- groupadd puppet groupadd: group 'puppet' already exists
- echo PATH=$PATH:/opt/vagrant_ruby/bin
- vssh=/home/vagrant/.ssh
- mkdir -p /home/vagrant/.ssh
- chmod 700 /home/vagrant/.ssh
- cd /home/vagrant/.ssh
- wget --no-check-certificate https://raw.github.com/mitchellh/vagrant/master/ke ys/vagrant.pub -O /home/vagrant/.ssh/authorized_keys --2013-06-17 21:38:36-- https://raw.github.com/mitchellh/vagrant/master/keys/va grant.pub Resolving raw.github.com (raw.github.com)... 199.27.72.133 Connecting to raw.github.com (raw.github.com)|199.27.72.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 409 [text/plain] Saving to: `/home/vagrant/.ssh/authorized_keys'
100%[======================================>] 409 --.-K/s in 0s
2013-06-17 21:38:36 (2.43 MB/s) - `/home/vagrant/.ssh/authorized_keys' saved [40 9/409]
- chmod 0600 /home/vagrant/.ssh/authorized_keys
- chown -R vagrant:vagrant /home/vagrant/.ssh
- unset vssh
- apt-get -y remove virtualbox-ose-guest-dkms Reading package lists... Done Building dependency tree Reading state information... Done Package virtualbox-ose-guest-dkms is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 126 not upgraded.
- apt-get -y remove virtualbox-ose-guest-utils Reading package lists... Done Building dependency tree Reading state information... Done Package virtualbox-ose-guest-utils is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 126 not upgraded.
- uname -r
- apt-get -y install linux-headers-3.2.0-23-generic Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: linux-headers-3.2.0-23 The following NEW packages will be installed: linux-headers-3.2.0-23 linux-headers-3.2.0-23-generic 0 upgraded, 2 newly installed, 0 to remove and 126 not upgraded. Need to get 12.4 MB of archives. After this operation, 67.3 MB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main linux-headers-3.2.0-23 a ll 3.2.0-23.36 [11.4 MB] Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main linux-headers-3.2.0-23-g eneric amd64 3.2.0-23.36 [947 kB] Fetched 12.4 MB in 8s (1,511 kB/s) Selecting previously unselected package linux-headers-3.2.0-23. (Reading database ... 76081 files and directories currently installed.) Unpacking linux-headers-3.2.0-23 (from .../linux-headers-3.2.0-23_3.2.0-23.36_al l.deb) ... Selecting previously unselected package linux-headers-3.2.0-23-generic. Unpacking linux-headers-3.2.0-23-generic (from .../linux-headers-3.2.0-23-generi c_3.2.0-23.36_amd64.deb) ... Setting up linux-headers-3.2.0-23 (3.2.0-23.36) ... Setting up linux-headers-3.2.0-23-generic (3.2.0-23.36) ...
- cat /home/vagrant/.vbox_version
- VBOX_VERSION=4.2.0
- mount -o loop /home/vagrant/VBoxGuestAdditions_4.2.0.iso /mnt /home/vagrant/VBoxGuestAdditions_4.2.0.iso: No such file or directory
- yes
- sh /mnt/VBoxLinuxAdditions.run sh: 0: Can't open /mnt/VBoxLinuxAdditions.run
- umount /mnt umount: /mnt: not mounted
- rm -f /home/vagrant/VBoxGuestAdditions_4.2.0.iso
- uname -r
- apt-get -y remove linux-headers-3.2.0-23-generic Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: linux-headers-3.2.0-23 Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: linux-headers-3.2.0-23-generic 0 upgraded, 0 newly installed, 1 to remove and 126 not upgraded. After this operation, 11.1 MB disk space will be freed. (Reading database ... 98077 files and directories currently installed.) Removing linux-headers-3.2.0-23-generic ...
- apt-get -y install nfs-common Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: linux-headers-3.2.0-23 Use 'apt-get autoremove' to remove them. The following packages will be upgraded: nfs-common 1 upgraded, 0 newly installed, 0 to remove and 125 not upgraded. Need to get 241 kB of archives. After this operation, 1,024 B of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main nfs-common amd64 1:1.2.5-3ubuntu3.1 [241 kB] Fetched 241 kB in 0s (1,258 kB/s) (Reading database ... 89952 files and directories currently installed.) Preparing to replace nfs-common 1:1.2.5-3ubuntu3 (using .../nfs-common_1%3a1.2.5 -3ubuntu3.1_amd64.deb) ... Unpacking replacement nfs-common ... Processing triggers for ureadahead ... Processing triggers for man-db ... Setting up nfs-common (1:1.2.5-3ubuntu3.1) ... statd stop/waiting statd start/running, process 23360 gssd stop/pre-start, process 23384 idmapd stop/waiting idmapd start/running, process 23424
- echo UseDNS no
- echo Welcome to your Vagrant-built virtual machine.
- date
- cat
- apt-get -y remove build-essential make curl git-core Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-3.2.0-23 git-man git liberror-perl Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: build-essential curl dpkg-dev git-core make 0 upgraded, 0 newly installed, 5 to remove and 125 not upgraded. After this operation, 1,925 kB disk space will be freed. (Reading database ... 89952 files and directories currently installed.) Removing build-essential ... Removing curl ... Removing dpkg-dev ... Removing git-core ... Removing make ... Processing triggers for man-db ...
- apt-get -y autoremove Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: fakeroot g++ g++-4.6 git git-man libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libcurl3 libdpkg-perl liberror-perl libstdc++6-4.6-dev linux-headers-3.2.0-23 patch 0 upgraded, 0 newly installed, 14 to remove and 125 not upgraded. After this operation, 99.5 MB disk space will be freed. (Reading database ... 89739 files and directories currently installed.) Removing fakeroot ... update-alternatives: using /usr/bin/fakeroot-tcp to provide /usr/bin/fakeroot (f akeroot) in auto mode. Removing g++ ... Removing git ... Removing git-man ... Removing libalgorithm-merge-perl ... Removing libalgorithm-diff-xs-perl ... Removing libalgorithm-diff-perl ... Removing libcurl3 ... Removing libdpkg-perl ... Removing liberror-perl ... Removing linux-headers-3.2.0-23 ... Removing patch ... Removing g++-4.6 ... Removing libstdc++6-4.6-dev ... Processing triggers for man-db ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place
- apt-get -y clean
- rm -f /var/lib/dhcp3/*
- rm /etc/udev/rules.d/70-persistent-net.rules rm: cannot remove `/etc/udev/rules.d/70-persistent-net.rules': Is a directory
- mkdir /etc/udev/rules.d/70-persistent-net.rules mkdir: cannot create directory `/etc/udev/rules.d/70-persistent-net.rules': File exists
- rm -rf /dev/.udev/
- rm /lib/udev/rules.d/75-persistent-net-generator.rules rm: cannot remove `/lib/udev/rules.d/75-persistent-net-generator.rules': No such file or directory
- rm -f /home/vagrant/{.iso,postinstall.sh}
- dd if=/dev/zero of=/EMPTY bs=1M dd: writing `/EMPTY': No space left on device 78158+0 records in 78157+0 records out 81954058240 bytes (82 GB) copied, 172.347 s, 476 MB/s
- rm -f /EMPTY
- exit vagrant@precise64:~$
Does this look right? I
Answers
Looks like it's out of space?