Hi mw123.
You shouldn’t add repositories on Parrot as it WILL break your system. Period.
The command you used here is for Ubuntu based distros and Parrot is Debian based.
Third reason, Parrot is a rolling release distro with set software mirrors so adding repos is just a big huge ginormous no-no.