Я делаю
lz@blade:~$ sudo apt-get build-dep gawk
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
builddeps:gawk : Depends: libreadline-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
вот мои источники:
deb http://br.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://br.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ bionic multiverse main universe restricted
deb http://br.archive.ubuntu.com/ubuntu/ bionic universe
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
Что такое сломанные пакеты?
software-properties-gtk
Источник загрузки изменения к основному серверу. sudo apt update && sudo apt-get clean
и попробуйте еще раз.
Забыл, и разблокируйте для других источников deb-src