Installing Weechat on Debian/Ubuntu

Ubuntu

sudo apt install dirmngr gpg-agent apt-transport-https
sudo apt-key adv --keyserver hkps://keys.openpgp.org --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E
echo "deb https://weechat.org/ubuntu <version> main" | sudo tee /etc/apt/sources.list.d/weechat.list
echo "deb-src https://weechat.org/ubuntu <version> main" | sudo tee -a /etc/apt/sources.list.d/weechat.list
sudo apt install weechat-curses weechat-plugins weechat-python weechat-perl

Debian

sudo apt install dirmngr gpg-agent apt-transport-https
sudo apt-key adv --keyserver hkps://keys.openpgp.org --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E
echo "deb https://weechat.org/debian <version> main" | sudo tee /etc/apt/sources.list.d/weechat.list
echo "deb-src https://weechat.org/debian <version> main" | sudo tee -a /etc/apt/sources.list.d/weechat.list
sudo apt install weechat-curses weechat-plugins weechat-python weechat-perl