use add-apt-repository instead of add-apt-repository

In Ubuntu Bionic 18.04 and Focal 20.04, the command remove-apt-repository
either does not exists or fail in a default installation with the error:

    ModuleNotFoundError: No module named 'softwareproperties'

But add-apt-repository allow removal through the `-r` flag.
This commit is contained in:
romain-dartigues 2021-12-24 15:41:03 +01:00
parent bbb5dfe395
commit 8206913e15
1 changed files with 1 additions and 1 deletions

View File

@ -32,6 +32,6 @@ case "$state_should" in
echo "add-apt-repository -y '$name'"
;;
absent)
echo "remove-apt-repository '$name'"
echo "add-apt-repository -r -y '$name'"
;;
esac