apt-get 问题

为当前最终发行版之前的所有版本提供支持
回复
drtyh
帖子: 8
注册时间: 2010-04-24 13:03
送出感谢: 0
接收感谢: 0

apt-get 问题

#1

帖子 drtyh » 2010-12-13 11:20

i am trying to install wine in my ubuntu 10.04 and did this:
sudo apt-get install wine
and i find apt-get is trying to connect to sourceforge(i can not connect to souceforge),so i stop it..
now i can not use apt-get :

root@××××-laptop:~# sudo apt-get install pptp-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
pptp-linux is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the download directory

then i try "ps -e|grep apt"

2659 pts/0 00:00:00 apt-get

when i kill 2659 in root and try "ps -e|grep apt" , the apt-get process still exist ,
*****@*****-laptop:~$ ps -e|grep apt
2659 pts/0 00:00:00 apt-get
*****@*****-laptop:~$ sudo kill 2659
*****@*****-laptop:~$ ps -e|grep apt
2659 pts/0 00:00:00 apt-get

i do not why ,can anyone help me?
头像
tenzu
论坛版主
帖子: 36913
注册时间: 2008-11-21 20:26
送出感谢: 0
接收感谢: 21 次

Re: apt-get 问题

#2

帖子 tenzu » 2010-12-13 11:33

sudo rm /var/cache/apt/archives/lock
yjqg6666
帖子: 77
注册时间: 2008-12-31 17:45
送出感谢: 0
接收感谢: 0

Re: apt-get 问题

#3

帖子 yjqg6666 » 2010-12-13 11:37

drtyh 写了:i am trying to install wine in my ubuntu 10.04 and did this:
sudo apt-get install wine
and i find apt-get is trying to connect to sourceforge(i can not connect to souceforge),so i stop it..
now i can not use apt-get :

root@××××-laptop:~# sudo apt-get install pptp-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
pptp-linux is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the download directory

2659 pts/0 00:00:00 apt-get

when i kill 2659 in root and try "ps -e|grep apt" , the apt-get process still exist ,
*****@*****-laptop:~$ ps -e|grep apt
2659 pts/0 00:00:00 apt-get
*****@*****-laptop:~$ sudo kill 2659
*****@*****-laptop:~$ ps -e|grep apt
你看下/var/cache/apt/archives/lock* 有没有那么个文件存在 另外看有没有某个进程在运行 直接可以用pgrep 进程名 kill命令有误 通常是 kill -9 pid 中断进程 kill -6 pid结束进程
drtyh
帖子: 8
注册时间: 2010-04-24 13:03
送出感谢: 0
接收感谢: 0

Re: apt-get 问题

#4

帖子 drtyh » 2010-12-13 13:53

yjqg6666 写了: 你看下/var/cache/apt/archives/lock* 有没有那么个文件存在 另外看有没有某个进程在运行 直接可以用pgrep 进程名 kill命令有误 通常是 kill -9 pid 中断进程 kill -6 pid结束进程
i have solve the problem ..thank you !
回复

回到 “老旧版本支持”