cloudsoft / amp-vagrant Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.