"sudo apt -get install foo-" causes removing foo package and everything depends on it

Posted by M.Elmi on Ask Ubuntu See other posts from Ask Ubuntu or by M.Elmi
Published on 2012-11-07T10:20:12Z Indexed on 2012/11/07 11:21 UTC
Read the original article Hit count: 244

Filed under:

While working in command prompt, I accidentally typed following command:

sudo apt-get install python3-

and ubuntu started removing python3 and everything depends on it (including firefox and much more). Fortunately I closed that terminal immediately and reverted everything by checking dpkg log file, but I was wondering why an install command should act like remove?

Is it a bug?

Consider the situation that you are looking for a package name (pressing Tab twice) and going through possibilities by pressing Enter key and those Enter keys remain in the keyboard buffer and.... youhaaaa... apt-get is removing the entire installation in front of your eyes.

© Ask Ubuntu or respective owner

Related posts about apt