File tree Expand file tree Collapse file tree
parts/linux/cloud-init/artifacts/ubuntu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -376,8 +376,8 @@ installPkgWithAptGet() {
376376
377377 # update pmc repo to get latest versions
378378 updatePMCRepository " ${packageVersion} "
379- # query all package versions and get the latest version for matching k8s version
380- fullPackageVersion=$( apt list " ${packageName} " --all-versions | grep " ${packageVersion} " | awk ' {print $2}' | sort -V | tail -n 1)
379+ # query all package versions and get the latest version for matching k8s version and cpu architecture
380+ fullPackageVersion=$( apt list " ${packageName} " --all-versions | grep " ${packageVersion} " | grep " $( getCPUArch ) " | awk ' {print $2}' | sort -V | tail -n 1)
381381 if [ -z " ${fullPackageVersion} " ]; then
382382 echo " Failed to find valid ${packageName} version for ${packageVersion} "
383383 return 1
You can’t perform that action at this time.
0 commit comments