Skip to content

Commit

Permalink
Fix debian-8 update (#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 #42017
  • Loading branch information
rjernst committed May 10, 2019
1 parent 69824ed commit 2244697
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 @@ -70,7 +70,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 @@ -162,8 +165,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 2244697

Please sign in to comment.