Without this change, the 'R' version used might be the wrong one which changes the package lists used. Fixes #19530.