Update and upgrade Raspbian installed on Raspberry Pi:
sudo apt-get update -y sudo apt-get upgrade -y
Install deluge and deluge-web for webui
sudo apt-get install deluged sudo apt-get install deluge-web
When prompted for confirmation of press “y” to continue. This shall install a a good number of dependency packages as well. Once installed, all the required packages to run Deluge with webui on your Raspberry Pi is ready to be configured.