vi-firmware install issue

153 views
Skip to first unread message

Gerry Y

unread,
Feb 23, 2015, 9:11:21 PM2/23/15
to ope...@googlegroups.com
I'm installing a fresh vagrant environment but it is complaining somewhere on the setuptools.   I did multiple times but getting the same error.  Has anybody done this lately?  Thanks.

Here is the full install log.

Cloning into 'vi-firmware'...
remote: Counting objects: 17339, done.
remote: Total 17339 (delta 0), reused 0 (delta 0), pack-reused 17339
Receiving objects: 100% (17339/17339), 9.95 MiB | 7.23 MiB/s, done.
Resolving deltas: 100% (10200/10200), done.
Checking connectivity... done.

Gerry@MASTER-PC ~/Documents/GitHub
$ cd vi-firmware/

Gerry@MASTER-PC ~/Documents/GitHub/vi-firmware (master)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/precise64' is up to date...
==> default: Setting the name of the VM: vi-firmware_default_1424743173662_66717
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.1.12
    default: VirtualBox Version: 4.3
==> default: Mounting shared folders...
    default: /vagrant => C:/Users/Gerry/Documents/GitHub/vi-firmware
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: ~/vi-firmware ~
==> default: Storing all downloaded dependencies in the "dependencies" folder
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default:   libc-bin libc-dev-bin libc6 libc6-dev
==> default: Suggested packages:
==> default:   glibc-doc
==> default: The following NEW packages will be installed:
==> default:   libc6-i386
==> default: The following packages will be upgraded:
==> default:   libc-bin libc-dev-bin libc6 libc6-dev
==> default: 4 upgraded, 1 newly installed, 0 to remove and 100 not upgraded.
==> default: Need to get 12.9 MB of archives.
==> default: After this operation, 9,698 kB of additional disk space will be used.
==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.10 [2,944 kB]
==> default: Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.10 [84.5 kB]
==> default: Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.10 [1,182 kB]
==> default: Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.10 [4,659 kB]
==> default: Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc6-i386 amd64 2.15-0ubuntu10.10 [4,008 kB]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 12.9 MB in 12s (1,016 kB/s)
==> default: (Reading database ...
==> default: 66167 files and directories currently installed.)
==> default: Preparing to replace libc6-dev 2.15-0ubuntu10.7 (using .../libc6-dev_2.15-0ubuntu10.10_amd64.deb) ...
==> default: Unpacking replacement libc6-dev ...
==> default: Preparing to replace libc-dev-bin 2.15-0ubuntu10.7 (using .../libc-dev-bin_2.15-0ubuntu10.10_amd64.deb) ...
==> default: Unpacking replacement libc-dev-bin ...
==> default: Preparing to replace libc-bin 2.15-0ubuntu10.7 (using .../libc-bin_2.15-0ubuntu10.10_amd64.deb) ...
==> default: Unpacking replacement libc-bin ...
==> default: Processing triggers for man-db ...
==> default: Setting up libc-bin (2.15-0ubuntu10.10) ...
==> default: (Reading database ...
==> default: 66167 files and directories currently installed.)
==> default: Preparing to replace libc6 2.15-0ubuntu10.7 (using .../libc6_2.15-0ubuntu10.10_amd64.deb) ...
==> default: Unpacking replacement libc6 ...
==> default: Setting up libc6 (2.15-0ubuntu10.10) ...
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default: Selecting previously unselected package libc6-i386.
==> default: (Reading database ...
==> default: 66167 files and directories currently installed.)
==> default: Unpacking libc6-i386 (from .../libc6-i386_2.15-0ubuntu10.10_amd64.deb) ...
==> default: Setting up libc-dev-bin (2.15-0ubuntu10.10) ...
==> default: Setting up libc6-dev (2.15-0ubuntu10.10) ...
==> default: Setting up libc6-i386 (2.15-0ubuntu10.10) ...
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default:   git-man liberror-perl
==> default: Suggested packages:
==> default:   git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
==> default:   git-email git-gui gitk gitweb
==> default: The following NEW packages will be installed:
==> default:   git git-man liberror-perl
==> default: 0 upgraded, 3 newly installed, 0 to remove and 100 not upgraded.
==> default: Need to get 6,751 kB of archives.
==> default: After this operation, 15.2 MB of additional disk space will be used.
==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB]
==> default: Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main git-man all 1:1.7.9.5-1ubuntu0.1 [631 kB]
==> default: Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main git amd64 1:1.7.9.5-1ubuntu0.1 [6,097 kB]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 6,751 kB in 24s (270 kB/s)
==> default: Selecting previously unselected package liberror-perl.
==> default: (Reading database ...
==> default: 66474 files and directories currently installed.)
==> default: Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
==> default: Selecting previously unselected package git-man.
==> default: Unpacking git-man (from .../git-man_1%3a1.7.9.5-1ubuntu0.1_all.deb) ...
==> default: Selecting previously unselected package git.
==> default: Unpacking git (from .../git_1%3a1.7.9.5-1ubuntu0.1_amd64.deb) ...
==> default: Processing triggers for man-db ...
==> default: Setting up liberror-perl (0.17-1) ...
==> default: Setting up git-man (1:1.7.9.5-1ubuntu0.1) ...
==> default: Setting up git (1:1.7.9.5-1ubuntu0.1) ...
==> default: Updating Git submodules...
==> default: Installing Python development headers...
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default:   libexpat1-dev libpython2.7 libssl-dev libssl-doc libssl1.0.0 python2.7
==> default:   python2.7-dev python2.7-minimal zlib1g-dev
==> default: Suggested packages:
==> default:   python2.7-doc binfmt-support
==> default: The following NEW packages will be installed:
==> default:   libexpat1-dev libssl-dev libssl-doc python-dev python2.7-dev zlib1g-dev
==> default: The following packages will be upgraded:
==> default:   libpython2.7 libssl1.0.0 python2.7 python2.7-minimal
==> default: 4 upgraded, 6 newly installed, 0 to remove and 96 not upgraded.
==> default: Need to get 39.2 MB of archives.
==> default: After this operation, 48.4 MB of additional disk space will be used.
==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 amd64 1.0.1-4ubuntu5.21 [1,051 kB]
==> default: Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libpython2.7 amd64 2.7.3-0ubuntu3.6 [1,188 kB]
==> default: Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main python2.7 amd64 2.7.3-0ubuntu3.6 [2,677 kB]
==> default: Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-minimal amd64 2.7.3-0ubuntu3.6 [1,741 kB]
==> default: Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main libexpat1-dev amd64 2.0.1-7.2ubuntu1.1 [216 kB]
==> default: Get:6 http://archive.ubuntu.com/ubuntu/ precise/main zlib1g-dev amd64 1:1.2.3.4.dfsg-3ubuntu4 [165 kB]
==> default: Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl-dev amd64 1.0.1-4ubuntu5.21 [1,573 kB]
==> default: Get:8 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl-doc all 1.0.1-4ubuntu5.21 [1,037 kB]
==> default: Get:9 http://archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-dev amd64 2.7.3-0ubuntu3.6 [29.5 MB]
==> default: Get:10 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-dev amd64 2.7.3-0ubuntu2.2 [1,090 B]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 39.2 MB in 10s (3,663 kB/s)
==> default: (Reading database ...
==> default: 67123 files and directories currently installed.)
==> default: Preparing to replace libssl1.0.0 1.0.1-4ubuntu5.17 (using .../libssl1.0.0_1.0.1-4ubuntu5.21_amd64.deb) ...
==> default: Unpacking replacement libssl1.0.0 ...
==> default: Setting up libssl1.0.0 (1.0.1-4ubuntu5.21) ...
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default: (Reading database ...
==> default: 67123 files and directories currently installed.)
==> default: Preparing to replace libpython2.7 2.7.3-0ubuntu3.5 (using .../libpython2.7_2.7.3-0ubuntu3.6_amd64.deb) ...
==> default: Unpacking replacement libpython2.7 ...
==> default: Preparing to replace python2.7 2.7.3-0ubuntu3.5 (using .../python2.7_2.7.3-0ubuntu3.6_amd64.deb) ...
==> default: Unpacking replacement python2.7 ...
==> default: Preparing to replace python2.7-minimal 2.7.3-0ubuntu3.5 (using .../python2.7-minimal_2.7.3-0ubuntu3.6_amd64.deb) ...
==> default: Unpacking replacement python2.7-minimal ...
==> default: Processing triggers for man-db ...
==> default: Setting up python2.7-minimal (2.7.3-0ubuntu3.6) ...
==> default: Selecting previously unselected package libexpat1-dev.
==> default: (Reading database ...
==> default: 67123 files and directories currently installed.)
==> default: Unpacking libexpat1-dev (from .../libexpat1-dev_2.0.1-7.2ubuntu1.1_amd64.deb) ...
==> default: Selecting previously unselected package zlib1g-dev.
==> default: Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3ubuntu4_amd64.deb) ...
==> default: Selecting previously unselected package libssl-dev.
==> default: Unpacking libssl-dev (from .../libssl-dev_1.0.1-4ubuntu5.21_amd64.deb) ...
==> default: Selecting previously unselected package libssl-doc.
==> default: Unpacking libssl-doc (from .../libssl-doc_1.0.1-4ubuntu5.21_all.deb) ...
==> default: Selecting previously unselected package python2.7-dev.
==> default: Unpacking python2.7-dev (from .../python2.7-dev_2.7.3-0ubuntu3.6_amd64.deb) ...
==> default: Selecting previously unselected package python-dev.
==> default: Unpacking python-dev (from .../python-dev_2.7.3-0ubuntu2.2_amd64.deb) ...
==> default: Processing triggers for man-db ...
==> default: Setting up python2.7 (2.7.3-0ubuntu3.6) ...
==> default: Setting up libpython2.7 (2.7.3-0ubuntu3.6) ...
==> default: Setting up libexpat1-dev (2.0.1-7.2ubuntu1.1) ...
==> default: Setting up zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu4) ...
==> default: Setting up libssl-dev (1.0.1-4ubuntu5.21) ...
==> default: Setting up libssl-doc (1.0.1-4ubuntu5.21) ...
==> default: Setting up python2.7-dev (2.7.3-0ubuntu3.6) ...
==> default: Setting up python-dev (2.7.3-0ubuntu2.2) ...
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default: Installing Pip...
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following NEW packages will be installed:
==> default:   python-setuptools
==> default: 0 upgraded, 1 newly installed, 0 to remove and 96 not upgraded.
==> default: Need to get 441 kB of archives.
==> default: After this operation, 1,068 kB of additional disk space will be used.
==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise/main python-setuptools all 0.6.24-1ubuntu1 [441 kB]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 441 kB in 1s (242 kB/s)
==> default: Selecting previously unselected package python-setuptools.
==> default: (Reading database ...
==> default: 68707 files and directories currently installed.)
==> default: Unpacking python-setuptools (from .../python-setuptools_0.6.24-1ubuntu1_all.deb) ...
==> default: Setting up python-setuptools (0.6.24-1ubuntu1) ...
==> default: Searching for pip
==> default: Best match: pip 6.0.8
==> default: Processing pip-6.0.8.tar.gz
==> default: Running pip-6.0.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YV_4LA/pip-6.0.8/egg-dist-tmp-s9nLkA
==> default: warning: no previously-included files found matching '.coveragerc'
==> default: warning: no previously-included files found matching '.mailmap'
==> default: warning: no previously-included files found matching '.travis.yml'
==> default: warning: no previously-included files found matching 'pip/_vendor/Makefile'
==> default: warning: no previously-included files found matching 'tox.ini'
==> default: warning: no previously-included files found matching 'dev-requirements.txt'
==> default: no previously-included directories found matching '.travis'
==> default: no previously-included directories found matching 'docs/_build'
==> default: no previously-included directories found matching 'contrib'
==> default: no previously-included directories found matching 'tasks'
==> default: no previously-included directories found matching 'tests'
==> default: Adding pip 6.0.8 to easy-install.pth file
==> default: Installing pip script to /usr/local/bin
==> default: Installing pip2.7 script to /usr/local/bin
==> default: Installing pip2 script to /usr/local/bin
==> default:
==> default: Installed /usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg
==> default: Processing dependencies for pip
==> default: Finished processing dependencies for pip
==> default: The directory '/home/vagrant/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that d
irectory. If executing pip with sudo, you may want the -H flag.
==> default: The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that dire
ctory. If executing pip with sudo, you may want the -H flag.
==> default: The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that dire
ctory. If executing pip with sudo, you may want the -H flag.
==> default:   Downloading setuptools-12.2-py2.py3-none-any.whl (502kB)
==> default: Installing collected packages: setuptools
==> default:   Found existing installation: setuptools 0.6rc11
==> default:     DEPRECATION: Uninstalling a distutils installed project (setuptools) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils
 project will only partially uninstall the project.
==> default:     Uninstalling setuptools-0.6rc11:
==> default:       Successfully uninstalled setuptools-0.6rc11
==> default: Successfully installed setuptools-12.2
==> default: The directory '/home/vagrant/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that d
irectory. If executing pip with sudo, you may want the -H flag.
==> default: The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that dire
ctory. If executing pip with sudo, you may want the -H flag.
==> default: The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that dire
ctory. If executing pip with sudo, you may want the -H flag.
==> default: Exception:
==> default: Traceback (most recent call last):
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/basecommand.py", line 232, in main
==> default:     status = self.run(options, args)
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/commands/install.py", line 339, in run
==> default:     requirement_set.prepare_files(finder)
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/req/req_set.py", line 229, in prepare_files
==> default:     req_to_install.check_if_exists()
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/req/req_install.py", line 931, in check_if_exists
==> default:     self.satisfied_by = pkg_resources.get_distribution(self.req)
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 461, in get_distribution
==> default:     dist = get_provider(dist)
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 341, in get_provider
==> default:     return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 870, in require
==> default:     needed = self.resolve(parse_requirements(requirements))
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 740, in resolve
==> default:     env = Environment(self.entries)
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 927, in __init__
==> default:     self.scan(search_path)
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 957, in scan
==> default:     self.add(dist)
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 973, in add
==> default:     if self.can_add(dist) and dist.has_version():
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 2658, in has_version
==> default:     self.version
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 2466, in version
==> default:     for line in self._get_metadata(self.PKG_INFO):
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 2510, in _get_metadata
==> default:     for line in self.get_metadata_lines(name):
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 1927, in get_metadata_lines
==> default:     return yield_lines(self.get_metadata(name))
==> default:   File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 1921, in get_metadata
==> default:     with open(self.path,'rU') as f:
==> default: IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/setuptools.egg-info'
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Gerry@MASTER-PC ~/Documents/GitHub/vi-firmware (master)
$

Gerry Y

unread,
Feb 25, 2015, 10:47:33 PM2/25/15
to ope...@googlegroups.com
Ok I figured a fix around.  I just deleted all files related to setuptools from the directory /usr/lib/python2.7/dist-packages/setuptool* and did vagrant provision to continue the installation.

MuSuk Choi

unread,
Feb 27, 2015, 6:54:22 AM2/27/15
to ope...@googlegroups.com
Hello, Gerry.
 I have a same problem.
 I tried to delete the files as you mentioned but I have no permision to delete them.
 I login the virtual machine with vagrant ssh command.
MuSuk.

2015년 2월 26일 목요일 오후 12시 47분 33초 UTC+9, Gerry Y 님의 말:

MuSuk Choi

unread,
Feb 27, 2015, 7:55:56 AM2/27/15
to ope...@googlegroups.com
Hello,

 I delete the files with "sudo rm" command. I successed the intallation!

 Thank you.

MuSuk

2015년 2월 27일 금요일 오후 8시 54분 22초 UTC+9, MuSuk Choi 님의 말:
Reply all
Reply to author
Forward
0 new messages