Skip to content

Instantly share code, notes, and snippets.

@javayhu
Last active December 20, 2015 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javayhu/6087308 to your computer and use it in GitHub Desktop.
Save javayhu/6087308 to your computer and use it in GitHub Desktop.
Problem I met with when installing edx-platform on Ubuntu 12.04 LTS. I was wondering why it occured and how can I solve it? PS: as you can see, actually I run "vagrant up" with root user. Thank all.
root@ubuntu:~/edx/edx-platform# sudo vagrant destroy -f
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
root@ubuntu:~/edx/edx-platform# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise32'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
Pruning invalid NFS exports. Administrator privileges will be required...
[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 => 9000 (adapter 1)
[default] -- 8001 => 9001 (adapter 1)
[default] Running any VM customizations...
[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] Exporting NFS shared folders...
Preparing to edit /etc/exports. Administrator privileges will be required...
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
[default] Mounting NFS shared folders...
[default] Running provisioner: shell...
[default] Running: /tmp/vagrant-shell20130726-5461-p4rq93
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
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:2 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:3 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:4 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release
Get:5 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:6 http://security.ubuntu.com precise-security/main Sources [83.5 kB]
Get:7 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
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 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
Get:8 http://us.archive.ubuntu.com precise-updates/main Sources [410 kB]
Get:9 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:10 http://security.ubuntu.com precise-security/universe Sources [27.7 kB]
Get:11 http://security.ubuntu.com precise-security/multiverse Sources [1,383 B]
Get:12 http://security.ubuntu.com precise-security/main i386 Packages [311 kB]
Get:13 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:14 http://security.ubuntu.com precise-security/universe i386 Packages [82.5 kB]
Get:15 http://us.archive.ubuntu.com precise-updates/restricted Sources [5,467 B]
Get:16 http://us.archive.ubuntu.com precise-updates/universe Sources [93.5 kB]
Get:17 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,371 B]
Get:18 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:19 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:20 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:21 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:22 http://security.ubuntu.com precise-security/main Translation-en [144 kB]
Get:23 http://us.archive.ubuntu.com precise-updates/multiverse Sources [6,582 B]
Get:24 http://us.archive.ubuntu.com precise-updates/main i386 Packages [683 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Get:25 http://security.ubuntu.com precise-security/restricted Translation-en [1,253 B]
Get:26 http://security.ubuntu.com precise-security/universe Translation-en [50.8 kB]
Get:27 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [10.0 kB]
Get:28 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [214 kB]
Get:29 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [13.8 kB]
Get:30 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:31 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:32 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:33 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Get:34 http://us.archive.ubuntu.com precise-backports/main Sources [2,935 B]
Get:35 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:36 http://us.archive.ubuntu.com precise-backports/universe Sources [34.8 kB]
Get:37 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,311 B]
Get:38 http://us.archive.ubuntu.com precise-backports/main i386 Packages [2,390 B]
Get:39 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:40 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [35.9 kB]
Get:41 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,178 B]
Get:42 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:43 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:44 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:45 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
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
Get:46 http://us.archive.ubuntu.com precise-updates/main Translation-en [302 kB]
Get:47 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [7,834 B]
Get:48 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2,432 B]
Get:49 http://us.archive.ubuntu.com precise-updates/universe Translation-en [124 kB]
Get:50 http://us.archive.ubuntu.com precise-backports/main Translation-en [1,512 B]
Get:51 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [4,610 B]
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:52 http://us.archive.ubuntu.com precise-backports/universe Translation-en [26.4 kB]
Fetched 2,864 kB in 41s (69.8 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libgpm2 libpython2.7 python-pycurl python2.7 python2.7-minimal
unattended-upgrades vim-common vim-runtime vim-tiny
Suggested packages:
gpm libcurl4-gnutls-dev python-pycurl-dbg python2.7-doc binfmt-support
bsd-mailx ctags vim-doc vim-scripts indent
The following NEW packages will be installed:
libgpm2 libpython2.7 python-pycurl python-software-properties
unattended-upgrades vim vim-runtime
The following packages will be upgraded:
python2.7 python2.7-minimal vim-common vim-tiny
4 upgraded, 7 newly installed, 0 to remove and 134 not upgraded.
Need to get 13.3 MB of archives.
After this operation, 28.4 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.2 [2,644 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-minimal i386 2.7.3-0ubuntu3.2 [1,689 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.2 [1,148 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main unattended-upgrades all 0.76ubuntu1 [24.7 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main python-pycurl i386 7.19.0-4ubuntu3 [48.5 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python-software-properties all 0.82.7.3 [22.3 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-runtime all 2:7.3.429-2ubuntu2.1 [6,277 kB]
Get:11 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.3 MB in 4min 5s (54.2 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.2_i386.deb) ...
Unpacking replacement python2.7 ...
Preparing to replace python2.7-minimal 2.7.3-0ubuntu3 (using .../python2.7-minimal_2.7.3-0ubuntu3.2_i386.deb) ...
Unpacking replacement python2.7-minimal ...
Processing triggers for man-db ...
Setting up python2.7-minimal (2.7.3-0ubuntu3.2) ...
(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.2_i386.deb) ...
Selecting previously unselected package unattended-upgrades.
Unpacking unattended-upgrades (from .../unattended-upgrades_0.76ubuntu1_all.deb) ...
Selecting previously unselected package python-pycurl.
Unpacking python-pycurl (from .../python-pycurl_7.19.0-4ubuntu3_i386.deb) ...
Selecting previously unselected package python-software-properties.
Unpacking python-software-properties (from .../python-software-properties_0.82.7.3_all.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 ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libgpm2 (1.20.4-4) ...
Setting up python2.7 (2.7.3-0ubuntu3.2) ...
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.2) ...
Setting up unattended-upgrades (0.76ubuntu1) ...
Setting up python-pycurl (7.19.0-4ubuntu3) ...
Setting up python-software-properties (0.82.7.3) ...
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
bash: ./scripts/create-dev-env.sh: Permission denied
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell
root@ubuntu:~/edx/edx-platform#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment