他のubuntuやkali linuxでは/etc/apt/sources.listを直接編集すると、コマンドのsourceをダウンロードすることができるのだが、 parrot osでは/etc/apt/sources.list.d/parrot.listにまとめられており、/etc/apt/sources.listは空ファイルとなっている。
↓/etc/apt/sources.list
# This file is empty, feel free to # add here your custom APT repositories # The standard Parrot repositories # are NOT here. If you want to # edit them, take a look into # /etc/apt/sources.list.d/parrot.list # If you want to change the # default parrot repositories by selectng # another localized mirror, # then use the command # parrot-mirror-selector # # and see its usage message to # know what mirrors are available
そのため、 /etc/apt/sources.list.d/parrot.list
のコメントの#をすべて外す。
## Parrot 4.x Repositories
deb https://deb.parrot.sh/parrot rolling main contrib non-free
deb https://deb.parrot.sh/parrot rolling-security main contrib non-free
deb-src https://deb.parrot.sh/parrot rolling main contrib non-free
deb-src https://deb.parrot.sh/parrot rolling-security main contrib non-free
すると、apt source "好きなコマンド"で好きなコマンドのsourceをダウンロードすることができる。