Score:0

uninstall vmware deleted lib files by mistake?

in flag

I wanted to uninstall the VMware horizon client I couldn't do it so I opened /lib directory from the terminal and deleted 1-2 directories related to VMware this is from where I deleted/lib now neither VMware in is installed nor its opening nothing is happening while clicking on itdesktop icon there are some directories in /bin related to VMware/bin idk what they are. I am very much new to Linux pls help me to completely remove or uninstall from the system so that I can install fresh because without uninstalling I can't install fresh. os is Ubuntu 20.04.3 LTS desktop 64-bit gnome version 3.36.8

waltinator avatar
it flag
By not using the official way of removing software (see `man apt dpkg aptitude`), you have broken your system. Reinstall. Boot from an install CD/USB, and be sure to find and uncheck the "`Format`" boxes.
guiverc avatar
cn flag
FYI: Your system keeps a list of what packages are installed; those installed packages means specific files were installed on the system. It won't re-install them by default (*no need as they're present according to the installed packages database*), but that database no longer matches what you have as you didn't remove using package tools. You can `apt install --reinstall` for each package that will cause the files to be re-populated if you know what exactly you removed; but a restore from backups, or re-install is usually the fallback if you don't know exactly what you removed.
Gurpreet Singh avatar
in flag
i removed vmware packages from /lib so how i can use apt install --reinstall according to that?
Gurpreet Singh avatar
in flag
also what is meant be reinstall? ive to reinstall format whole system and reinstall ubuntu? or reinstall vmware horizon
guiverc avatar
cn flag
Packages & files are different concepts. A package can contain 1 or more files. Say you removed a single file (`/usr/share/doc/base-files/FAQ`) you can use `dpkg -S` to find out it's provided by [base-files](https://packages.ubuntu.com/focal/base-files) meaning that package would cause it to be restored. You didn't say what files you erased; thus why restoration of backups OR re-install were suggested first. My suggestion assumes you know what **exactly** was removed (ie. actual file detail). Inside a directory can many files, meaning many packages will need fixing...
guiverc avatar
cn flag
Another option would be create a like system to look what should be there; and use that as a basis for what will likely need to be reinstalled (*I've done this before; as a learning exercise after I made a mistake... it took way longer than restoring of data or re-install; but doing it is a sure way to consider the consequences to subsequent & careless `rm` commands*...)
Gurpreet Singh avatar
in flag
oh okay then acc. to this idk which files i removed there were 2-3 directories related to vmware in /lib i removed them all idk name or anything about them. so what should i do now?
Gurpreet Singh avatar
in flag
when i again try to intstall vmware through gui installer it says already installed and terminal shows installation done
guiverc avatar
cn flag
I mentioned that before; the package list says it's installed as you installed it earlier... thus the need to `install --reinstall` I covered earlier.
Gurpreet Singh avatar
in flag
i ran this commnad nothing happened 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. this is what came
guiverc avatar
cn flag
Read back... I mentioned for each package that needs to be re-installed.. ie. in my base-files example it was `sudo apt install --reinstall base-files` which would cause the package `base-files` to be re-installed, a process you need to do for each package where you deleted libraries/files in the directory...
Gurpreet Singh avatar
in flag
E: Unable to locate package VMware-Horizon idk the package name :( :(
user535733 avatar
cn flag
You write that you "*can't install fresh*." That's too bad. A fresh install would quickly solve the problems that you created.
Gurpreet Singh avatar
in flag
hi all the problem was solved without any boot from CD or anything like that...i simply entered my computer local folder as a super user i accidently files realted to vmware from /lib folder before so one by one i entered each folder like /etc /usr /bin etc. and deleted any files related to vmware with rm-rf command then i tried to reinstall vmware it was succesfully installed and running now.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.