Install libsocket6-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libsocket6-perl
Description:
Perl extensions for IPv6
The Socket6 module supports getaddrinfo() and getnameinfo() to intend to enable protocol independent programming. If your environment supports IPv6, IPv6 related defines such as AF_INET6 are included.
Homepage: https://metacpan.org/release/Socket6
Version: 0.27-1build2
Section: perl