Skip to content

Commit

Permalink
[#4078] fix(CI): apt purge pop error "E: Unable to locate package" in…
Browse files Browse the repository at this point in the history
… some ubuntu vm (#4081)

### What changes were proposed in this pull request?
Fix issue:
```
sudo apt purge -y \
    firefox \
    google-chrome-stable \
    microsoft-edge-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package google-chrome-stable
E: Unable to locate package microsoft-edge-stable
```
### Why are the changes needed?

Fix: #4078 

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

CI
  • Loading branch information
danhuawang authored Jul 5, 2024
1 parent e61422e commit 64e4189
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions dev/ci/util_free_space.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ if [ "${GITHUB_ACTIONS}" = "true" ]; then
# 376MB
sudo rm -rf /opt/hostedtoolcache/node || :
# Remove Web browser packages
sudo apt purge -y \
firefox \
google-chrome-stable \
microsoft-edge-stable
if dpkg-query -l firefox;then
sudo apt purge -y firefox
fi
if dpkg-query -l google-chrome-stable;then
sudo apt purge -y google-chrome-stable
fi
if dpkg-query -l microsoft-edge-stable;then
sudo apt purge -y microsoft-edge-stable
fi
df -h
fi

0 comments on commit 64e4189

Please sign in to comment.