The source for the packages of GDB need to be added to the package manager, then it installs fine.