def METHOD_NAME(self, requires):
    try:
        self.buildroot.uid_manager.becomeUser(0, 0)
        self.buildroot.pkg_manager.install(*requires, check=True)
    finally:
        self.buildroot.uid_manager.restorePrivs()