# Solution for apt Install Error 'Operation not permitted'


After finishing final exams, I can tinker with VPS anytime, anywhere. This afternoon I was originally writing a VPS review article, but one of the VPS showed the following error when I ran network trace scripts and AI platform unlock detection scripts:

![Network trace script shows unable to move executable to `/usr/bin` folder](https://cdn.sa.net/2024/01/17/72UruNm8Y4cxwsB.webp)

Network trace script shows unable to move executable to `/usr/bin` folder.

![AI platform unlock detection script error: jq command not found](https://cdn.sa.net/2024/01/17/C2a7pTc5QnbAsUR.webp)

AI platform unlock detection script error: jq command not found.

So I prepared to install jq using `apt install jq`, but got this error:

![Installing jq found operation on `/usr/bin` folder not permitted](https://cdn.sa.net/2024/01/17/28fHQPR6VuN51q3.webp)

Again, operation on `/usr/bin` folder not permitted.

Checking `/usr/bin` folder permissions, found there's no w(write) permission.

![Check `/usr/bin` folder permissions](https://cdn.sa.net/2024/01/17/TgItlM4OvCDYx5q.webp)

I checked all my VPS and found 3 total with the same issue.

GPT's 40 per 3 hours was completely exhausted by me. I searched many web pages but couldn't find the result I wanted.

During troubleshooting, I even thought of a Debian bug from last month, so I upgraded the kernels on all three VPS to the latest version, but still didn't solve my problem.

![A Debian bug from last month](https://cdn.sa.net/2024/01/17/J7bS9qes348W6OM.webp)

Just when I was at a loss, I noticed all three VPS had the BaoTa panel cracked version installed.

The BaoTa panel cracked version unlocks paid plugins, so I installed a bunch of plugins. Maybe these plugins were causing trouble.

After investigation, I finally found the culprit plugin preventing `/usr/bin` folder operations—a plugin called BaoTa System Hardening.

![Culprit plugin—BaoTa System Hardening](https://cdn.sa.net/2024/01/17/rKZ5tFz2IoGCyEU.webp)

The key directory hardening feature made the `/usr/bin` directory read-only.

![Key directory hardening made `/usr/bin` directory read-only](https://cdn.sa.net/2024/01/17/1FzK9Q2ZoqJLapi.webp)

After turning off the hardening switch for `/usr/bin` folder:

![Turn off `/usr/bin` folder hardening switch](https://cdn.sa.net/2024/01/17/d7hVXyr8oF4MtCJ.webp)

Running the network trace and AI platform unlock detection scripts again, the previous errors disappeared.

Although this VPS isn't a proxy machine, you can see Google is routing to China. In places with many VPS enthusiasts, Google routing to China is common. Some people like Google routing to China for ad-free YouTube, making neighbors suffer—such foolish or malicious VPS users are really speechless.

![Network trace script runs smoothly](https://cdn.sa.net/2024/01/17/E3PR8m7IVc2Uu1k.webp)

![AI platform unlock detection script runs smoothly](https://cdn.sa.net/2024/01/17/k6RGIXECAL18dBK.webp)

Actually, the best solution is to uninstall this hardening plugin entirely, otherwise there might be strange errors in the future.

