Made an oupsie while testing some protection and executed rm /usr/bin/clang*
2
votes
3
answers
325
views
I deleted clang. I tried to use apt to uninstall clang, and then re-install it but I get this error:
Setting up clang (1:3.8-33ubuntu3.1) ...
update-alternatives: error: alternative path /usr/bin/clang++ doesn't
exist
dpkg: error processing package clang (--configure):
subprocess installed post-installation script returned error exit
status 2
Errors were encountered while processing:
clang
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've tried also using apt to remove llvm and reinstall it knowing it should also install clang.
I'm using Ubuntu 16.04, since further versions are un-workingly buggy for me.
Here's some more info:
main@ws001:~$ whereis clang
clang: /usr/bin/clang #this is obviously broken
main@ws001:~$ which clang
apt-cache depends clang
clang
Depends: clang-3.8
Breaks:
Breaks:
Breaks:
Breaks: clang-3.5
Replaces: clang
Replaces:
Replaces:
Replaces:
Replaces: clang-3.5
Asked by curious student
(119 rep)
May 17, 2017, 01:45 PM
Last activity: Dec 1, 2019, 09:29 AM
Last activity: Dec 1, 2019, 09:29 AM