sudo apt-get remove --purge wine*
opened the gates of hell and removed many things. I wasn't allowed to paste the output here, too big. I stopped the process, I wanted to save what's left of my system!
- How to reinstall what has been removed?
- Why were these packages removed? It is the most important question, why the hell were they removed? I can't see any relation between Spotify and wine!
- If
apt-get --purge
might destroy your system, how to remove wine then? I removed it from software center but many files were still there. - Can you ever trust
apt-get -- purge
?
I'm on Xubuntu 14.04 64 bit.
wine *
is not the same aswine*
. I suggest you now use wildcards with apt-get purge. Also, you should have gotten a warning before any critical packages were removed, I hope you did not ignore that. I suggest you runsudo apt-get install xubuntu-desktop
– Panther Apr 11 '14 at 22:47sudo apt-get install xubuntu-desktop
but it saysE: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/
– Lynob Apr 11 '14 at 22:49--purge
flag doesn't destroy a system by itself; it just removes configuration files from the packages removed by the command. – saiarcot895 Apr 11 '14 at 22:51Note, selecting 'libapache2-mod-auth-ntlm-winbind' for regex 'wine*'
, it saw that the package name contained "win" ("e" means 0 or more instances of "e") and removed it. Then, the dominoes fell... (This is also why a list of packages to be removed is displayed for review before* you enter yes.) – saiarcot895 Apr 11 '14 at 22:53apt-get --purge remove wine-1.6
. – saiarcot895 Apr 11 '14 at 23:01xubuntu-desktop
. After that, remove any NON-critical packages (applications) you don't need. – saiarcot895 Apr 11 '14 at 23:11apt-
family of commands take a regexp instead of a globbing is so surprising that I almost would define it as a bug. Alas, I even hate the fact that bash (unlike zsh) defaults to pass the * when there is no match in the glob... This is at least the third time I see an user bitten by this problem. The correctapt-get remove --purge "wine.*"
would have caused much less damage. – Rmano Apr 12 '14 at 04:37^wine
to matchwine
just at the beginning. Btw, thefailglob
shell option may interest you. – Eliah Kagan Aug 23 '17 at 19:32