@@ -27,7 +27,7 @@ export SUPPORTED_KERNEL_FLAVORS="generic aws gcp azure oracle"
2727#
2828export JENKINS_OPS_DIR=" ${JENKINS_OPS_DIR:- jenkins-ops} "
2929
30- export UBUNTU_DISTRIBUTION=" bionic "
30+ export UBUNTU_DISTRIBUTION=" focal "
3131
3232#
3333# We currently support getting the linux kernel from 3 different sources:
@@ -471,21 +471,10 @@ function create_workdir() {
471471function install_pkgs() {
472472 for attempt in {1..3}; do
473473 echo " Running: sudo env DEBIAN_FRONTEND=noninteractive " \
474- " apt-get install -y --allow-downgrades $* "
474+ " apt-get install -y $* "
475475
476- #
477- # We use the "--allow-downgrades" for the case of a
478- # package needing to install the "unzip" debian package
479- # that we build via the "misc-debs" linux-pkg package.
480- # The "misc-debs" based "unzip" package may have an
481- # older version than what's already installed on the
482- # system, so we need to "--allow-downgrades" in order to
483- # install that specific package; further, that specific
484- # package is required to build the "virtualization"
485- # debian packages.
486- #
487476 sudo env DEBIAN_FRONTEND=noninteractive apt-get install \
488- -y --allow-downgrades " $@ " && return
477+ -y " $@ " && return
489478
490479 echo " apt-get install failed, retrying."
491480 sleep 10
@@ -1241,17 +1230,6 @@ function determine_target_kernels() {
12411230 echo_bold " $KERNEL_VERSIONS "
12421231}
12431232
1244- #
1245- # Install gcc 8, and make it the default
1246- #
1247- function install_gcc8() {
1248- logmust install_pkgs gcc-8 g++-8
1249- logmust sudo update-alternatives --install /usr/bin/gcc gcc \
1250- /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
1251- logmust sudo update-alternatives --install /usr/bin/gcc gcc \
1252- /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
1253- }
1254-
12551233#
12561234# Store git-related build info for the package after the build is done.
12571235# Note that some of this metadata is used by the Jenkins build so be careful
0 commit comments