Open Oxymoron290 opened 7 months ago
You can replace all the code that edits the sources.list to add the necessary non-free and non-free-firmware with two simple lines:
non-free
non-free-firmware
apt-add-repository -s non-free apt-add-repository -s non-free-firmware
the apt-add-repository is added as part of the software-properties-common installed prior to modifying the sources.list file.
apt-add-repository
software-properties-common
Why all the unnecessary file parsing and checking if the values are already there?
You can replace all the code that edits the sources.list to add the necessary
non-free
andnon-free-firmware
with two simple lines:the
apt-add-repository
is added as part of thesoftware-properties-common
installed prior to modifying the sources.list file.Why all the unnecessary file parsing and checking if the values are already there?