Failed to build root on ubuntu 20.04, with or without xrootd

You need to either delete CMakeCache.txt (and fully reconfigure) or edit this file to remove all mentions of NetxNG from modules_idx_deps variable.