[问题]重启机子也解决不了的锁的问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
b luewings
帖子: 7
注册时间: 2007-03-29 15:03

[问题]重启机子也解决不了的锁的问题

#1

帖子 b luewings » 2007-04-12 11:32

重装系统,更新
一个flash-plugin下载链接不到,就^Z\^C掉了,没想到麻烦就来了
想装一个rar,发现报错:
E: 无法获得锁 /var/lib/dpkg/lock - open (11 资源暂时不可用)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
看了一下,没有其他什么相应软件开着(新利得、更新、卸载全没开阿)
搞不定,重启机子。
再开新利得,说apt-get apti..什么的开着呢,冤枉阿,刚开机呢
然后说:
请运行dpkg --configure -a 这样的话
没办法,就先关了新利得,毕竟之能有一个apt类的东西可以运行嘛
然后,我就 sudo dpkg --configure -a
却报告:
dpkg: 另外一个进程已经为状态数据库加了锁
~~~~~
不知道怎么回事,机子装不了软件了,跪拜大牛,orz

又看看进程,如下
ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1564 528 ? S 10:11 0:01 init [2]
root 2 0.0 0.0 0 0 ? SN 10:11 0:00 [ksoftirqd/0]
root 3 0.0 0.0 0 0 ? S 10:11 0:00 [watchdog/0]
root 4 0.0 0.0 0 0 ? S< 10:11 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< 10:11 0:00 [khelper]
root 6 0.0 0.0 0 0 ? S< 10:11 0:00 [kthread]
root 8 0.0 0.0 0 0 ? S< 10:11 0:00 [kblockd/0]
root 9 0.0 0.0 0 0 ? S< 10:11 0:00 [kacpid]
root 124 0.0 0.0 0 0 ? S 10:11 0:00 [pdflush]
root 125 0.0 0.0 0 0 ? S 10:11 0:00 [pdflush]
root 127 0.0 0.0 0 0 ? S< 10:11 0:00 [aio/0]
root 126 0.0 0.0 0 0 ? S 10:11 0:00 [kswapd0]
root 714 0.0 0.0 0 0 ? S< 10:11 0:00 [kseriod]
root 1807 0.0 0.0 0 0 ? S< 10:11 0:00 [ata/0]
root 1808 0.0 0.0 0 0 ? S< 10:11 0:00 [ata_hotplug/0]
root 1811 0.0 0.0 0 0 ? S< 10:11 0:00 [scsi_eh_0]
root 1812 0.0 0.0 0 0 ? S< 10:11 0:00 [scsi_eh_1]
root 1839 0.0 0.0 0 0 ? S< 10:11 0:00 [khubd]
root 1959 0.0 0.0 0 0 ? S 10:11 0:00 [kjournald]
root 2189 0.0 0.1 2428 916 ? S<s 10:11 0:00 /sbin/udevd --d
root 2966 0.0 0.0 0 0 ? S 10:11 0:00 [shpchpd_event]
root 3873 0.0 0.2 2152 1192 ? Ss 10:11 0:00 /usr/sbin/acpid
root 3986 0.0 0.0 1684 500 ? Ss 10:11 0:00 /bin/dd bs 1 if
klog 3988 0.0 0.2 2404 1324 ? Ss 10:11 0:00 /sbin/klogd -P
root 4162 0.0 0.3 10912 1816 ? Ss 10:11 0:00 /usr/sbin/gdm
hplip 4195 0.0 0.1 12872 920 ? Ssl 10:11 0:00 /usr/sbin/hpiod
hplip 4201 0.0 0.9 9408 4680 ? S 10:11 0:00 python /usr/sbi
104 4271 0.0 0.1 2196 860 ? Ss 10:11 0:00 /usr/bin/dbus-d
108 4286 0.0 1.0 6784 5380 ? Ss 10:11 0:01 /usr/sbin/hald
root 4287 0.0 0.1 2720 976 ? S 10:11 0:00 hald-runner
108 4292 0.0 0.1 2004 792 ? S 10:11 0:00 /usr/lib/hal/ha
108 4348 0.0 0.1 2008 796 ? S 10:11 0:00 /usr/lib/hal/ha
108 4359 0.0 0.1 2008 820 ? S 10:11 0:00 /usr/lib/hal/ha
108 4360 0.0 0.1 2012 820 ? S 10:11 0:00 /usr/lib/hal/ha
root 4402 0.0 0.0 1552 256 ? SNs 10:11 0:00 /usr/sbin/power
root 4444 0.0 0.1 1968 712 ? Ss 10:11 0:00 hcid: processin
root 4452 0.0 0.0 1620 460 ? Ss 10:11 0:00 /usr/sbin/sdpd
root 4461 0.0 0.0 0 0 ? S< 10:11 0:00 [krfcommd]
root 4474 0.0 0.0 1624 292 ? Ss 10:11 0:00 /sbin/mdadm -F
daemon 4508 0.0 0.0 1800 396 ? Ss 10:11 0:00 /usr/sbin/atd
root 4521 0.0 0.1 2120 836 ? Ss 10:11 0:00 /usr/sbin/cron
root 4593 0.0 0.2 2584 1140 tty1 Ss 10:11 0:00 /bin/login --
root 4594 0.0 0.0 1560 492 tty2 Ss+ 10:11 0:00 /sbin/getty 384
root 4595 0.0 0.0 1564 496 tty3 Ss+ 10:11 0:00 /sbin/getty 384
root 4596 0.0 0.0 1560 492 tty4 Ss+ 10:11 0:00 /sbin/getty 384
root 4597 0.0 0.0 1564 492 tty5 Ss+ 10:11 0:00 /sbin/getty 384
root 4598 0.0 0.0 1560 492 tty6 Ss+ 10:11 0:00 /sbin/getty 384
1000 4664 0.0 0.7 6548 3992 ? S 10:11 0:01 /usr/lib/libgco
1000 4667 0.0 0.1 2340 728 ? S 10:11 0:00 /usr/bin/gnome-
1000 4669 0.0 0.6 6604 3144 ? Ss 10:11 0:00 /usr/lib/bonobo
1000 4672 0.0 2.4 20488 12668 ? Ss 10:11 0:02 /usr/lib/scim-1
cupsys 5543 0.0 0.3 4064 1772 ? SNs 10:16 0:00 /usr/sbin/cupsd
syslog 5668 0.0 0.1 1764 704 ? SNs 10:17 0:00 /sbin/syslogd -
1000 6225 0.0 0.6 5584 3272 tty1 S+ 10:34 0:00 -bash
root 6246 0.0 0.5 11348 2648 ? S 10:34 0:00 /usr/sbin/gdm
root 6249 4.1 3.3 22656 17072 tty7 Ss+ 10:34 1:50 /usr/bin/X :0 -
1000 6261 0.0 2.3 40752 12076 ? Ss 10:35 0:00 x-session-manag
1000 6306 0.0 0.0 0 0 ? Z 10:35 0:00 [Xse] <defunct>
1000 6315 0.0 0.1 4328 732 ? Ss 10:35 0:00 /usr/bin/ssh-ag
1000 6318 0.0 0.1 2196 916 ? Ss 10:35 0:00 dbus-daemon --f
1000 6319 0.0 0.1 2712 648 ? S 10:35 0:00 /usr/bin/dbus-l
1000 6322 0.0 0.1 2344 728 ? S 10:35 0:00 /usr/bin/gnome-
1000 6324 0.0 1.7 27608 9164 ? Sl 10:35 0:01 /usr/lib/contro
1000 6328 0.0 0.2 5112 1032 ? Ss 10:35 0:00 /usr/lib/scim-1
1000 6334 0.3 2.4 54940 12784 ? Ssl 10:35 0:09 /usr/lib/scim-1
1000 6336 0.0 0.2 7160 1220 ? Ss 10:35 0:00 /usr/lib/scim-1
1000 6915 0.3 2.1 35876 11148 ? Ss 10:35 0:09 /usr/bin/metaci
1000 6920 0.1 3.5 59184 18480 ? Ssl 10:35 0:04 gnome-panel --s
1000 6922 0.0 2.9 75076 15436 ? Ssl 10:35 0:01 nautilus --no-d
1000 6929 0.0 2.7 43536 14072 ? Ss 10:35 0:00 update-notifier
1000 6932 0.0 1.0 17568 5432 ? Ss 10:35 0:00 gnome-volume-ma
1000 6936 0.0 0.7 8668 3892 ? Sl 10:35 0:00 /usr/lib/gnome-
1000 6949 0.0 1.5 38128 8044 ? Ss 10:35 0:00 gnome-cups-icon
1000 6953 0.0 0.1 2284 800 ? S 10:35 0:00 /usr/lib/nautil
1000 6956 0.0 1.1 18048 5744 ? Ss 10:35 0:00 gnome-power-man
1000 6962 0.0 1.7 40180 9048 ? Sl 10:35 0:00 /usr/lib/gnome-
1000 6969 0.0 2.3 53692 12360 ? S 10:35 0:00 /usr/lib/gnome-
1000 6973 0.0 2.2 40064 11624 ? S 10:35 0:00 /usr/lib/gnome-
1000 6977 0.0 2.4 44316 12436 ? S 10:35 0:00 /usr/lib/gnome-
1000 6981 0.0 2.4 54968 12816 ? S 10:35 0:00 /usr/lib/gnome-
1000 6990 0.4 4.7 101164 24264 ? Sl 10:35 0:12 gnome-terminal
1000 6993 0.0 0.1 2288 688 ? S 10:35 0:00 gnome-pty-helpe
1000 6994 0.0 0.6 5596 3280 pts/0 Ss 10:35 0:00 bash
root 7014 0.1 0.0 5108 380 pts/0 S+ 10:35 0:04 mytunet
root 7015 0.0 0.0 5108 380 pts/0 S+ 10:35 0:00 mytunet
root 7016 0.0 0.0 5108 380 pts/0 S+ 10:35 0:00 mytunet
root 7018 0.0 0.0 5108 380 pts/0 S+ 10:35 0:00 mytunet
1000 7021 0.0 0.6 5592 3288 pts/2 Ss 10:35 0:00 bash
1000 7042 2.7 10.5 168376 54468 ? Sl 10:35 1:12 /usr/lib/firefo
1000 7575 0.0 0.6 5588 3276 pts/3 Ss 10:57 0:00 bash
1000 7611 0.0 0.3 4624 1884 pts/3 S+ 10:58 0:00 ssh beliefbird@
1000 8105 0.0 0.1 2400 1016 pts/2 R+ 11:19 0:00 ps aux

诡异啊,求大牛指点
:?:
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#2

帖子 zhuqin_83 » 2007-04-12 11:38

sudo rm /var/lib/dpkg/lock
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#3

帖子 stlxv » 2007-04-12 11:48

8)
PHP是最好的语言!不服来战!
b luewings
帖子: 7
注册时间: 2007-03-29 15:03

已经搞定了

#4

帖子 b luewings » 2007-04-12 22:38

让以前那个进程执行完,(给了2个小时让它反复链接,直到自动退出),就搞定了,呵呵,谢谢2、3楼,不过我的显卡是nvidia的,呵呵
回复