I just managed to overwrite /usr/share/bin
and it doesn't seem like it's possible to undo.
I did this as a root user.
Am I doomed?
I just managed to overwrite /usr/share/bin
and it doesn't seem like it's possible to undo.
I did this as a root user.
Am I doomed?
Not doomed at all.
Nothing critical in a Ubuntu Desktop or Ubuntu Server install uses /usr/share/bin.
Run dpkg -S /usr/share/bin to list your installed packages that use dir. Those packages, if any, should be reinstalled.
If the reply is no path found matching pattern, then you indeed have nothing installed that uses the dir.
dpkg-query: no path found matching pattern /usr/share/bin
–
Nov 17 '18 at 16:37
/usr hierarchy is not normally writable, I doubt there could be jitted binaries. I'd rather expect them in /var/cache or somewhere else under the /var tree.
– Ruslan
Nov 18 '18 at 21:13
/usr/share/binfolder at all. I think you will be fine. – Terrance Nov 17 '18 at 16:53/usr/local/bin. Still not fatal. Most of the stuff that was there were "ruby gems" (e.g.fpm). Anyway they are just user applications so you can continue using your system and when you see a weird error about not finding/usr/.../bin/applicationyou know that you have to reinstall it. – Bakuriu Nov 17 '18 at 23:12