Use the network module instead. The -legacy module depends on ISC dhclient which has been EOL for >2 years and was removed from aports.
See #16398 (comment 463110)
--
Backport of !76563 (merged)