locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

刚装了centos6.0,运行locate命令,控制台提示

locate: can not stat () `/var/lib/mlocate/mlocate.db‘: No such file or directory

如果出现此错误,请执行updatedb

这个命令要花一小点时间,然后再执行locate操作就行了

locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

时间: 2024-08-06 02:25:55

locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory的相关文章

error: bad top line in state file /var/lib/logrotate.status 解决方法

发现日志切割并没有按计划执行,后来手动强制执行时,发现如下报错: [[email protected] logrotate.d]# logrotate -f httpd error: bad top line in state file /var/lib/logrotate.status [[email protected] logrotate.d]# 解决访求: 删除/var/lib/logrotate.status 这个文件即可解决. 解决后,最好再运行一下logrotate -f /etc

解决mysql报错Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’

启动mysql 报错: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 1.先查看 /etc/rc.d/init.d/mysqld status 看看m y s q l 是否已经启动.另外看看是不是权限问题. 2.确定你的mysql.sock是不是在那个位置,mysql -u 你的mysql用户名 -p -S /var/lib/mysql/

yum error: cannot open Packages database in /var/lib/rpm

1.前提条件:安装软件包的时候,被我手动终止了[[email protected] yum.repos.d]# yum clean allrpmdb: Thread/process 4541/140619363587840 failed: Thread died in Berkeley DB libraryerror: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery

linux 遇见错误Could not get lock /var/lib/dpkg/lock

通过终端安装程序sudo apt-get install xxx时出错:E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? 出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用.而导致

(/var/lib/mysql/NeoKylin-CNVL.cs1cloud.internal.pid).   [失败]

启动mysql数据库失败 [[email protected] opt]# service mysql start Starting MySQL.....The server quit withoutupdating PID file (/var/lib/mysql/NeoKylin-CNVL.cs1cloud.internal.pid).                         [失败] 解决方法: 将ervice mysql start启动方式改为/etc/init.d/mysqls

mysql Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

错误原因:/var/lib/mysql目录中socket文件不存在.连接mysql服务器有两种方式:tcp连接,通过socket文件连接.通过socket文件,启动mysql服务,mysql服务会自动生成一个sock文件,生成的sock文件默认放在 --datadir=/var/lib/mysql,mysql默认从/var/lib/mysql目录读取sock文件. 解决办法:1.看看/var/lib/mysql/mysql 有没有mysql.sock文件2.没有mysql.sock,重启mysq

the server quit without updating pid file (/var/lib/mysql/localhost.localdomain.pid)

前几天装的mysql,用的还挺爽的,第二天再用就不行了,报的错误如标题.网上也是众说纷纭,可能有很多原因会导致这种错误吧.我用的是将Mysqld这个进程杀掉,就可以启动mysql了 the server quit without updating pid file (/var/lib/mysql/localhost.localdomain.pid),布布扣,bubuko.com the server quit without updating pid file (/var/lib/mysql/l

Ubuntu 16.04错误:正在读取软件包列表... 有错误! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/ppa.launchpad.net_t-tujikawa_ppa_ubuntu_dists_xenial_main_i18n_Translatio

错误: 正在读取软件包列表... 有错误! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/ppa.launchpad.net_t-tujikawa_ppa_ubuntu_dists_xenial_main_i18n_Translation-en E: 无法解析或打开软件包的列表或是状态文件. 解决方法: 1.删除上面提示的PPA源,再找到新的源添加.比如直

error: cannot open Packages database in /var/lib/rpm

故障描述:今天下午测试OpenStack,在使用yum安装一个包的时候,手欠了下,结果被我终止了,如是有了下面的记录 先清空下缓存,发现rpmdb open failed [[email protected] glance]# yum clean all error: rpmdb: BDB0113 Thread/process 21357/140557926295360 failed: BDB1507 Thread died in Berkeley DB library error: db5 e