Skip to content

Commit

Permalink
Fix debian-8 update (elastic#42056)
Browse files Browse the repository at this point in the history
On debian-8, when trying to apt-get update, it currently (sometimes)
fails on one of the extra repositories. This failure to update causes
keys to not be updated, which later can cause some packages to not
install due to lack of key verification. This commit removes the
troublesome repository before we attemp to update.

closes elastic#42017
  • Loading branch information
rjernst authored and Gurkan Kaymak committed May 27, 2019
1 parent ff7d27e commit df50e2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ Vagrant.configure(2) do |config|
'debian-8'.tap do |box|
config.vm.define box, define_opts do |config|
config.vm.box = 'elastic/debian-8-x86_64'
deb_common config, box
deb_common config, box, extra: <<-SHELL
# this sometimes gets a bad ip, and doesn't appear to be needed
rm /etc/apt/sources.list.d/http_debian_net_debian.list
SHELL
end
end
'debian-9'.tap do |box|
Expand Down Expand Up @@ -159,8 +162,8 @@ def deb_common(config, name, extra: '')
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
end
extra_with_lintian = <<-SHELL
install lintian
#{extra}
install lintian
SHELL
linux_common(
config,
Expand Down

0 comments on commit df50e2b

Please sign in to comment.