Skip to content

Commit 79a1442

Browse files
updating and removing apt-get updates (#4083)
* updating and removing apt-get updates this will cause issues as it installs the latest updates from the unbuntu/debian updated urls. from time to time those become depricated Signed-off-by: Sean Simmons <[email protected]> * adding sources for specific packages Signed-off-by: Sean Simmons <[email protected]> * adding sources for specific packages Signed-off-by: Sean Simmons <[email protected]> * removing balto Signed-off-by: Sean Simmons <[email protected]> * removing update Signed-off-by: Sean Simmons <[email protected]> * adding specific repos Signed-off-by: Sean Simmons <[email protected]> * adding specific repos Signed-off-by: Sean Simmons <[email protected]> * adding specific repos Signed-off-by: Sean Simmons <[email protected]> --------- Signed-off-by: Sean Simmons <[email protected]>
1 parent 915d9b3 commit 79a1442

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.expeditor/license_scout.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,21 @@ if [[ "${BUILDKITE:-false}" == "true" ]]; then
2323
rm -f /etc/apt/sources.list.d/microsoft-prod.list
2424
# Remove problematic PostgreSQL repository if it exists
2525
rm -f /etc/apt/sources.list.d/pgdg.list
26+
# Remove problematic Helm repository if it exists
27+
rm -f /etc/apt/sources.list.d/helm-stable-debian.list
28+
29+
# Ensure Ubuntu main repositories are available
30+
echo "deb http://archive.ubuntu.com/ubuntu focal main" | tee /etc/apt/sources.list.d/ubuntu-main.list
31+
echo "deb http://archive.ubuntu.com/ubuntu focal-updates main" | tee -a /etc/apt/sources.list.d/ubuntu-main.list
32+
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | tee -a /etc/apt/sources.list.d/ubuntu-main.list
33+
echo "deb http://archive.ubuntu.com/ubuntu focal universe" | tee -a /etc/apt/sources.list.d/ubuntu-universe.list
34+
apt-get update
35+
36+
# Add keys and update
2637
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
2738
apt-get clean
28-
apt-get autoremove
29-
apt-get update
39+
apt-get autoremove
40+
3041
# Install packages with dependency resolution, allowing downgrades if needed
3142
apt-get install -y --allow-downgrades libpq-dev libsqlite3-dev libyaml-dev || \
3243
(apt-get remove -y libpq5 libpq-dev && apt-get install -y libpq-dev libsqlite3-dev libyaml-dev)

scripts/bk_tests/bk_install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ echo "Removing packages.microsoft.com"
3434
# Since we don't use any software from this repository in our tests,
3535
# we can temporarily remove it from our sources.
3636
rm -f /etc/apt/sources.list.d/microsoft-prod.list
37+
# Remove problematic Helm repository if it exists
38+
rm -f /etc/apt/sources.list.d/helm-stable-debian.list
3739

40+
apt-get update
3841
echo "Installing test dependencies"
39-
apt-get update -y
4042
apt-get install -y lua5.1 luarocks postgresql-13 libsqlite3-dev
4143

4244
echo "Configuring postgresql"

0 commit comments

Comments
 (0)