I sudo'd a bash script, full of sudo apt-get install applicationname commands, and now my programs won't run, unless they are ran as sudo (BAD IDEA!)
How do I fix this issue?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this community
lilypond-doc
:sudo apt-get remove lilypond-doc
, if that fails,dufo dpkg --remove lilypond-doc
. Whoever wrote that script doesn't know thatapt
uses regular expressions and not wildcards. Replace the*
with.*
if you ever run the script again.package.*
is first expanded by the shell, and passed toapt
only if it does not expand to any file in the current directory (I find that thezsh
behavior of throwing an error is much better here).