1

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?

11
  • 3
    Post the script.
    – muru
    Oct 2, 2014 at 5:23
  • 1
    I'm not sure that questions about development releases (based on your screenshot you appear to be using 14.10) are considered on-topic here. FWIW there appear to be several related bug reports e.g. lilypond-doc: Broken usage of dpkg-maintscript-helper Oct 2, 2014 at 6:48
  • 2
    Try removing lilypond-doc: sudo apt-get remove lilypond-doc, if that fails, dufo dpkg --remove lilypond-doc. Whoever wrote that script doesn't know that apt uses regular expressions and not wildcards. Replace the * with .* if you ever run the script again.
    – muru
    Oct 2, 2014 at 7:58
  • 1
    I agree with muru that the script is not well written. apt-get will take a package list and I would tend to advise against using wild cards, apt will pull in dependencies and IMO it is best to specify what packages you want. wild cards tend to cause unpredictable results.
    – Panther
    Oct 2, 2014 at 9:00
  • 1
    @muru yes, and quote them. Otherwise package.* is first expanded by the shell, and passed to apt only if it does not expand to any file in the current directory (I find that the zsh behavior of throwing an error is much better here).
    – Rmano
    Oct 2, 2014 at 9:29

0

You must log in to answer this question.

Browse other questions tagged .