When a single GitHub Action build fails, the other builds should not be canceled, but instead should continue to build. Since the matrix is setup on OS level, a failing build on one OS usually doesn't mean it's broken for all OS.
If the apt-get cache is outdated, it may end up trying to fetch a package that no longer exists, so the cache needs to be updated.