当前位置:网站首页>locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db‘: 没有那个文件或目录
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db‘: 没有那个文件或目录
2022-07-02 12:13:00 【六位元素】
目录
场景
当我们执行编译时需要使用操作系统的 locate 命令加载库文件时,报错如下:
[[email protected] ~]# locate lselinux
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db': 没有那个文件或目录出现问题
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db': 没有那个文件或目录
问题分析
使用 locate 加载库文件时,由于没有文件索引关系,导致搜索不到库文件,从而报错。
解决方法
更新库文件索引关系
[[email protected] ~]# updatedb再次执行 locate 成功
其他
通常情况下如果你的操作系统中没有 locate 命令,在你按如下方法安装该工具后,立马执行也会报场景描述中的错误
yum install -y mlocate边栏推荐
- 【LeetCode】876-链表的中间结点
- Folium, diagnosis and close contact trajectory above
- [leetcode] 200 number of islands
- Loss function and positive and negative sample allocation: Yolo series
- 高考分数线爬取
- 【Leetcode】167-两数之和II -输入有序数组
- 04.进入云原生后的企业级应用构建的一些思考
- /bin/ld: 找不到 -lgssapi_krb5
- MySQL calculate n-day retention rate
- [leetcode] 283 move zero
猜你喜欢

I made an istio workshop. This is the first introduction

18_ Redis_ Redis master-slave replication & cluster building

MySQL calculate n-day retention rate

16_ Redis_ Redis persistence

PTA 天梯赛习题集 L2-001 城市间紧急救援

【LeetCode】1905-统计子岛屿

树-二叉搜索树

【Salesforce】如何确认你的Salesforce版本?

Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium

Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
随机推荐
List of sergeant schools
2278. Percentage of letters in string
[leetcode] 200 number of islands
18_ Redis_ Redis master-slave replication & cluster building
已知兩種遍曆序列構造二叉樹
[network security] network asset collection
2279. Maximum number of backpacks filled with stones
Leetcode skimming - remove duplicate letters 316 medium
04.进入云原生后的企业级应用构建的一些思考
College entrance examination admission score line crawler
LeetCode刷题——统计各位数字都不同的数字个数#357#Medium
Yolo format data set processing (XML to txt)
【Leetcode】167-两数之和II -输入有序数组
[salesforce] how to confirm your salesforce version?
[leetcode] 283 move zero
folium地图无法显示的问题,临时性解决方案如下
【LeetCode】200-岛屿数量
[leetcode] 577 reverse word III in string
Leetcode skimming -- sum of two integers 371 medium
folium,确诊和密接轨迹上图