Skip to content

Commit 9f3fe4a

Browse files
committed
Fix apt cache permission error
Cache only /var/cache/apt/archives instead of /var/cache/apt to avoid permission errors with lock files and partial directories. The archives directory contains the downloaded .deb packages and doesn't require root permissions to cache.
1 parent ec507d5 commit 9f3fe4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
- name: Cache apt packages
148148
uses: actions/cache@v4
149149
with:
150-
path: /var/cache/apt
150+
path: /var/cache/apt/archives
151151
key: ${{ runner.os }}-apt-${{ hashFiles('**/.github/workflows/main.yml') }}
152152
restore-keys: |
153153
${{ runner.os }}-apt-

0 commit comments

Comments
 (0)