Use the following commands or follow the installing pre-requisites guide to prep the environment for Hyperledger Fabric installation.
curl -O https://gist.githubusercontent.com/skarlekar/6cab70ee0d8cecf60d66f9beabd40acf/raw/fb976b2986e2d2e59aa4ea8caf8f10016e85af41/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
Next run the script to install the pre-requisites.