Fix package manager tests (in Ubuntu in particular)