/var/cache/debconf/config.dat is locked by another process
来源:互联网 发布:linux 安装 net snmp 编辑:程序博客网 时间:2024/05/17 07:14
http://blog.sina.com.cn/s/blog_3fbc1c610100l8f6.html
【问题描述】
cvsd 已经是最新的版本了。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 5 个软件包没有被完全安装或卸载。
解压缩后会消耗掉 0B 的额外空间。
正在设置 mysql-server-5.1 (5.1.41-3ubuntu12.3) ...
停止在这里不动
ps -aux 找到 sudo apt-get install 命令并kill这个pid后出现:
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 5 个软件包没有被完全安装或卸载。
解压缩后会消耗掉 0B 的额外空间。
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: 资源暂时不可用
正在设置 mysql-server-5.1 (5.1.41-3ubuntu12.3) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: 资源暂时不可用
dpkg:处理 mysql-server-5.1 (--configure)时出错:
正在设置 man-db (2.5.7-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: 资源暂时不可用
dpkg:处理 man-db (--configure)时出错:
正在设置 cvsd (1.0.18) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: 资源暂时不可用
dpkg:处理 cvsd (--configure)时出错:
正在设置 flashplugin-installer (10.1.82.76ubuntu0.10.04.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: 资源暂时不可用
dpkg:处理 flashplugin-installer (--configure)时出错:
没有写入 apport 报告,因为已经达到最大报告数
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: 资源暂时不可用
dpkg:处理 libpam-gnome-keyring (--configure)时出错:
没有写入 apport 报告,因为已经达到最大报告数
E: Sub-process /usr/bin/dpkg returned an error code (1)
【处理方法】
1、找到config.dat的占用进程并kill之
使用命令sudo lsof 或者 sudo fuser
root@crazoy-laptop:/home/crazoy# sudo lsof /var/cache/debconf/config.dat
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/crazoy/.gvfs
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
frontend 8879 root 4rW REG 8,6 39392 2273 /var/cache/debconf/config.dat
root@crazoy-laptop:/home/crazoy# sudo fuser /var/cache/debconf/config.dat
/var/cache/debconf/config.dat: 8879
root@crazoy-laptop:/home/crazoy# ps -aux | grep 8879
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 8879 0.0 0.3 11096 7748 ? S 09:37 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/mysql-server-5.1.postinst configure 5.1.41-3ubuntu12.3
root 9758 0.0 0.0 3544 824 pts/2 S+ 14:01 0:00 grep 8879
root@crazoy-laptop:/home/crazoy# kill 8879
2、使用下列命令清理更新管理器
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
【reference】
1. http://zhidao.baidu.com/question/157478444.html
2. http://apps.hi.baidu.com/share/detail/15621790
0 1
- /var/cache/debconf/config.dat is locked by another process
- /var/cache/debconf/config.dat is locked by another process: Resource .
- /var/cache/debconf/config.dat is locked by another process: Resource .
- dpkg: error: dpkg status database is locked by another process
- dpkg: error: dpkg status database is locked by another process
- dpkg: error: dpkg status database is locked by another process
- dpkg: error: dpkg status database is locked by another process
- dpkg: error: dpkg status database is locked by another process
- dpkg: error: dpkg status database is locked by another process
- dpkg: status database area is locked by another process 解决方法
- 解锁软件数据库--dpkg: status database area is locked by another process
- dpkg: error: dpkg status database is locked by another process 解决方法
- 解压deb包时遇到 “dpkg status database is locked by another process”问题
- record is locked by another user
- recode is locked by another user
- record is locked by another user
- Record is locked by another user
- record is locked by another user
- java连接sql server 2008数据库
- OpenCV_连通区域分析(Connected Component Analysis/Labeling)
- javascript中的算数运算
- 又是一年中秋时
- Ubuntu 10.4下安装QT
- /var/cache/debconf/config.dat is locked by another process
- 庭院青青
- Bitmap和Drawable
- 多跟外界接触
- v4l2框架分析
- 地址消毒
- LAMP环境搭建
- 测试11班中秋晚会圆满结束
- Android浏览器控件WebView简单小实例