Giter Club home page Giter Club logo

amp-vagrant's People

Contributors

ahgittin avatar aledsage avatar drigodwin avatar duncangrant avatar iuliana avatar johnmccabe avatar m4rkmckenna avatar morganbrooke avatar murdoaird avatar nakomis avatar neykov avatar shartzel avatar tbouron avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amp-vagrant's Issues

vagrant up amp fails to install java

On running vagrant up amp the following error is thrown:

Bringing machine 'amp' up with 'virtualbox' provider...
==> amp: Importing base box 'ubuntu/wily64'...
==> amp: Matching MAC address for NAT networking...
==> amp: Setting the name of the VM: amp
==> amp: Clearing any previously set forwarded ports...
==> amp: Clearing any previously set network interfaces...
==> amp: Preparing network interfaces based on configuration...
amp: Adapter 1: nat
amp: Adapter 2: hostonly
==> amp: Forwarding ports...
amp: 8081 (guest) => 8081 (host) (adapter 1)
amp: 22 (guest) => 2222 (host) (adapter 1)
==> amp: Running 'pre-boot' VM customizations...
==> amp: Booting VM...
==> amp: Waiting for machine to boot. This may take a few minutes...
amp: SSH address: 127.0.0.1:2222
amp: SSH username: vagrant
amp: SSH auth method: private key
amp: Warning: Remote connection disconnect. Retrying...
amp: Warning: Remote connection disconnect. Retrying...
amp: Warning: Remote connection disconnect. Retrying...
amp:
amp: Vagrant insecure key detected. Vagrant will automatically replace
amp: this with a newly generated keypair for better security.
amp:
amp: Inserting generated public key within guest...
amp: Removing insecure key from the guest if it's present...
amp: Key inserted! Disconnecting and reconnecting using new SSH key...
==> amp: Machine booted and ready!
==> amp: Checking for guest additions in VM...
==> amp: Setting hostname...
==> amp: Configuring and enabling network interfaces...
==> amp: Mounting shared folders...
amp: /vagrant => /Users/murdoaird/Documents/workspace/amp-vagrant
==> amp: Running provisioner: shell...
amp: Running: inline script
==> amp: Running provisioner: shell...
amp: Running: inline script
==> amp: Reading package lists...
==> amp: Building dependency tree...
==> amp:
==> amp: Reading state information...
==> amp: The following extra packages will be installed:
==> amp: ca-certificates-java java-common libpcsclite1
==> amp: Suggested packages:
==> amp: default-jre equivs pcscd openjdk-8-jre-jamvm libnss-mdns fonts-dejavu-extra
==> amp: fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei
==> amp: fonts-indic
==> amp: The following NEW packages will be installed:
==> amp: ca-certificates-java java-common libpcsclite1 openjdk-8-jre-headless
==> amp: 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
==> amp: Need to get 27.0 MB of archives.
==> amp: After this operation, 99.6 MB of additional disk space will be used.
==> amp: Get:1 http://archive.ubuntu.com/ubuntu/ wily/main ca-certificates-java all 20140324 [12.3 kB]
==> amp: Get:2 http://archive.ubuntu.com/ubuntu/ wily/main java-common all 0.52 [131 kB]
==> amp: Get:3 http://archive.ubuntu.com/ubuntu/ wily/main libpcsclite1 amd64 1.8.14-1ubuntu1 [21.4 kB]
==> amp: Err http://archive.ubuntu.com/ubuntu/ wily-updates/universe openjdk-8-jre-headless amd64 8u66-b17-1
==> amp: 404 Not Found [IP: 91.189.88.152 80]
==> amp: Err http://security.ubuntu.com/ubuntu/ wily-security/universe openjdk-8-jre-headless amd64 8u66-b17-1
==> amp: 404 Not Found [IP: 91.189.88.152 80]
==> amp: Fetched 164 kB in 8s (20.4 kB/s)
==> amp: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u66-b17-1_amd64.deb 404 Not Found [IP: 91.189.88.152 80]
==> amp:
==> amp: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
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.

----------------------END OF ERROR----------------------

It looks like the attempted URL (Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u66-b17-1_amd64.deb) isn't available

I fixed the error using these steps but it didn't feel like altering 'servers.yaml' to do this was the proper solution:

Connect to VM and re-create:

  • vagrant ssh amp
  • sudo apt-get install --yes openjdk-8-jre-headless

To fix:

  • sudo vim /etc/apt/sources.list
  • add this line to the file deb http://us.archive.ubuntu.com/ubuntu wily main universe
  • sudo apt-get update

Try again:
sudo apt-get install --yes openjdk-8-jre-headless - success

What's the best solution? Should we be upgrading to latest ubuntu?

WDYT @johnmccabe @drigodwin?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.