Fix debian-8 update (#42056)

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
This commit is contained in:
Ryan Ernst 2019-05-10 11:07:29 -07:00
parent 69824ed908
commit 2244697219
1 changed files with 5 additions and 2 deletions

7
Vagrantfile vendored
View File

@ -70,7 +70,10 @@ Vagrant.configure(2) do |config|
'debian-8'.tap do |box| 'debian-8'.tap do |box|
config.vm.define box, define_opts do |config| config.vm.define box, define_opts do |config|
config.vm.box = 'elastic/debian-8-x86_64' 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
end end
'debian-9'.tap do |box| 'debian-9'.tap do |box|
@ -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" s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
end end
extra_with_lintian = <<-SHELL extra_with_lintian = <<-SHELL
install lintian
#{extra} #{extra}
install lintian
SHELL SHELL
linux_common( linux_common(
config, config,