Git Product home page Git Product logo

vagrant-deb's People

Contributors

carstendietrich avatar graingert avatar wolfgang42 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vagrant-deb's Issues

This repository should be deprecated; Hashicorp has an official one now

via:

Announcing the HashiCorp Linux Repository (Jul 24 2020)

Today we’re happy to announce HashiCorp’s official Linux repository, a source of Debian and RPM packages for HashiCorp products. These packages will provide Linux users with a better installation and upgrade experience.

I'll keep this repo running, but the front page should mention that the official one is now available and therefore preferred. Occasional brownouts to get people to notice wouldn't be a bad idea either.

Redirect package downloads to upstream source

This has been supported by apt-get since 2009, so I'm not worried about breaking compatibility. This has the advantage of not using my bandwidth, and also ensuring that the supplied deb package really is identical to the upstream one (alleviating any concerns that I may be modifying the packages).

In addition, I might even be able to discard the actual package files after extracting their metadata, thus freeing up disk space and allowing me to serve more than just the most recent few versions, or even (per #3) other Hashicorp projects.

Support other Hashicorp projects

I have most of the code I need to also support the other projects on https://releases.hashicorp.com already; I think it's just a matter of doing the inital import and setting up a loop to run the code on $PROJECT rather than vagrant.

I'm not actually working on this at the moment; if anyone else wants to submit a PR I'll take it gladly. If not I'll get around to it eventually.

Assertion error while generating updates

Updates stopped on 2018-01-29; the failure is as follows:

Traceback (most recent call last):                                                                                                                                                                                               
  File "/app/build-packages.py", line 35, in <module>                                                                                                                                                                            
    sys.stdout.write(releaseinfo.build_control_entry(build, 'control'))                                                                                                                                                          
  File "/app/releaseinfo.py", line 70, in build_control_entry
    build_control_file(build)
  File "/app/releaseinfo.py", line 15, in wrapper
    result = getresult(*args)
  File "/app/releaseinfo.py", line 51, in build_control_file
    assert head[36:56] == '0     0     100644  ' # Owner, group, mode
AssertionError

Add Valid-Until to Release file

Currently, if the repository is accessed over unsecured HTTP it is possible for an attacker to serve an older version of the repository, causing the victim to get an out-of-date version of Vagrant which may have security holes. Fortunately HTTPS is the default so most users are not vulnerable to this (barring attacks on HTTPS itself), but it is still a good idea to fix this. Instead of updating the main Release file only when a new version comes out, it should be updated daily with a Valid-Until of two days in the future (to account for one day of missed update).

1 signature not checked due to a missing key

A user reports the following error:

thanks for the effort. Unfortunately, the key install does not work
---
root@server: ~ # apt-key adv --keyserver hkp://keyserver.ubuntu.com:80
--recv-key AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4
Executing: /tmp/apt-key-gpghome.koQrR4shPy/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80 --recv-key
AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4
gpg: key CE3F3DE92099F7A4: 1 signature not checked due to a missing key
gpg: key CE3F3DE92099F7A4: "vagrant-deb.linestarve.com automatic signing
key <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
---
afterwards, only the old package (1.9.x) is installed. I am on a
debian 9 box.
root@server: ~ # cat /etc/debian_version
9.8
with all updates applied.

gpgkeys: key AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4 can't be retrieved

Hello!

I am trying to setup the repo on my Ubuntu 16.04 desktop, but I have troubles inserting the key.
Please refer to the command output for details:

$ sudo apt-key adv --keyserver pgp.mit.edu --recv-key AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4
Executing: /tmp/tmp.BNY8FAnNRf/gpg.1.sh --keyserver
pgp.mit.edu
--recv-key
AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4
gpg: requesting key 2099F7A4 from hkp server pgp.mit.edu
gpgkeys: key AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm

Vagrant 2.0.3 deb download

Currently APT server tells that there is an updated version, but fails on fetching the .deb file with E: Failed to fetch https://vagrant-deb.linestarve.com/pool/any/main/v/vagrant/vagrant_2.0.3_amd64.deb 404 Not Found. Looks like the meta data is already there, but the file it self went missing (still processing?)

Can you please check\explain why this is happening? Currently this behavior is breaking default apt upgrade process.
image

Thanks!

InRelease file expired

I am getting this error in apt update, says that the file is expired since 20h 46min 27s.

Updates to redirect file need to kick the webserver

The Vagrant 2.0.1 release was detected successfully, but I forgot that nginx would need to have its configuration reloaded to get the new file.

Alternatively, the redirect file could be changed to use a pattern, since all of the files on the Hashicorp releases server have the same pattern. This would probably be easier to implement (I don't need to figure out how to punch out of the container or add anything to the cronjob) but would break on the off chance that they changed the download link location.

Repository deprecation and 503 Service Unavailable

HashiCorp now has an official repository which includes packages for Vagrant. This unofficial repository will be supported until April 30, 2021, after which time it will no longer be available.

👉 Please see the repository homepage for instructions on migrating to the new repository.

⚠️ Important: In addition to switching apt lists, there is an extra step you need to take to ensure you will get updates from the new repository. Please make sure you read the instructions carefully so you don't miss future vagrant upgrades!


There will also be periodic brownouts during which attempting to fetch the repository index will return 503 Service Unavailable, to give advance notice before the repo goes permanently offline. This results in the following warning from apt-get update:

W: Failed to fetch https://vagrant-deb.linestarve.com/dists/any/InRelease  503  Service Temporarily Unavailable [IP: 199.38.183.38 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

If you’re getting this error, the repo is in one of these brownout periods; it will come back but please take some time to follow the instructions for migrating to the new repository.


If you have questions about any of this, please email me ([email protected]) or leave a comment below.

Key fingerprint is missing

On the index page, the apt-key adv command is missing the actual key fingerprint where $GPG_KEY is supposed to be, making it impossible to follow the setup instructions.

This seems to be a result of the following error:

gpg: can't connect to the agent: IPC connect call failed

This has happened at least once before; at the time I assumed it was a fluke but apparently not.

I should probably set -o pipefail so if something goes wrong it doesn't barrel on and update the page to claim that the last check was OK.

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.