Linux: [Error] bash: locate: command not found
## Error Description
```sh
locate libGL.so
bash: locate: command not found
```
## Solution
```sh
sudo apt install mlocate
sudo updatedb
```
## Test
```sh
# locate libGL.so
/usr/lib/x86_64-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/mesa/libGL.so
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
```
![yubao_blog_cover](https://raw.githubusercontent.com/yubaoliu/assets/image/yubao_blog_cover.png)
No comments