How I couldn't turn on my MacBook due to uninstalling TeamViewer

How I couldn't turn on my MacBook due to uninstalling TeamViewer

Yesterday I encountered a completely unexpected set of circumstances during the next MacOS update. In general, I really like software updates, I always want to look at the new features of a particular program. When in the summer I saw that it was possible to download and install MacOS 10.15 Catalina Beta, I deliberately did not do this, realizing that beta could contain a significant number of bugs, and I need a MacBook daily for work. And yesterday I saw the long-awaited notification.

How I couldn't turn on my MacBook due to uninstalling TeamViewer

I happily clicked the "Update Now" button and waited for the download. While I was downloading the update, I decided to do something β€œuseful”, namely, to remove some unnecessary rubbish from the laptop. And this time, TeamViewer fell under the rubbish category.

The problem here is not TeamViewer at all.
I used to use it to remotely help my parents, but here they seem to be doing a good job on their own, and I didn’t need TeamViewer. Plus, one thing began to annoy me, namely, that it, apparently, hung in my login objects on the Mac, although it was not in the system settings in the "Users and Groups" section in the "Login Items" tab.

Whatever it was, I decided to remove it. And for this task, a well-known utility called β€œClean my mac” turned up at my arm. I really love this program, but this time it let me down.

How I couldn't turn on my MacBook due to uninstalling TeamViewer

As usual, I went to the "Uninstaller" section and selected TeamViewer there for further removal. Everything went well and the download of the macOS update just arrived. Then everything went on as usual. The installation continued for a while, the poppy rebooted several times, and here is the long-awaited moment. The final stage of installation and completion of configuration. I sit and wait for the login, and what I see:

How I couldn't turn on my MacBook due to uninstalling TeamViewer

And this is where my problems started. Naturally, at first I pressed OK five times, but this did not lead to anything. The next step is to reboot a couple of times, which did not help either! Then he began to talk. I remembered that I had just uninstalled TeamViewer and remembered the login objects, and realized that I had done wrong. This was followed by an hour of googling the solution, and the first thing that turned up at hand was a solution that involves deleting all the remnants of the application manually. As it turned out, information on entry objects is arranged in directories LaunchAgents, LaunchDaemons ΠΈ startup items, which are scattered throughout the system, under different access rights.

In order to delete them, you needed access to the hard drive. There are several options, quite a lot has been written about this on the net. I chose the option to use the terminal by launching it from system recovery mode.
There, too, everything was not going smoothly, since my disk is encrypted. But that didn't stop me. After searching through all the files, and deleting everything that looks like TeamViewer by name, I thought that I solved the problem, but it was not! After a reboot, everything remained the same. Here it is necessary to make a reservation, since someone may have a logical question: Why didn't I start the system through safe mode? After all, it disables the login objects for the user? - I will answer: the system did not start in safe mode!

After another hour of this fuss, a working solution was found. It consisted in putting TeamViewerAuthPlugin.bundle to its original place, namely to the directory /Library/Security/SecurityAgentPlugins/. And it saved me! Thanks to my friend who set up a local server in the middle of the night and through skirt gave me this file, which I successfully downloaded from the terminal with curl.

The bottom line of this story: be careful about deleting applications in MacOS!

PS Catalina seems to be in order, everything works.

Source: habr.com

Add a comment