diff --git a/.circleci/workflows.yml b/.circleci/workflows.yml index 203656fcb378..b84e5033c40b 100644 --- a/.circleci/workflows.yml +++ b/.circleci/workflows.yml @@ -598,6 +598,17 @@ commands: # latest can also be used here default: *firefox-stable-version steps: + - run: + name: Update APT + command: | + if [[ $PLATFORM == 'linux' ]]; then + # on Arm, CI runs as non-root, on x64 CI runs as root but there is no sudo binary + if [[ `whoami` == 'root' ]]; then + apt-get update + else + sudo apt-get update + fi + fi - when: condition: not: