LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1609|回复: 5

apt-get出错了,怎么解决

[复制链接]
发表于 2009-6-26 18:28:51 | 显示全部楼层 |阅读模式
因安装flashplugin,按提示操作后就出错了。
谁有办法修复一下:

crowtlf@debian:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
crowtlf@debian:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: The package adobe-flashplugin needs to be reinstalled, but I can't find an archive for it.
crowtlf@debian:~$


crowtlf@debian:~$ sudo apt-get install --reinstall adobe-flashplugin
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: The package adobe-flashplugin needs to be reinstalled, but I can't find an archive for it.
crowtlf@debian:~$


crowtlf@debian:~$ sudo dpkg --purge adobe-flashplugin
dpkg: error processing adobe-flashplugin (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
adobe-flashplugin
crowtlf@debian:~$


crowtlf@debian:~$ sudo aptitude purge adobe-flashpluginReading package lists... Done
Building dependency tree      
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following packages will be REMOVED:
  adobe-flashplugin{p} ca-certificates{u} libcurl3{u} libidn11{u}
  libssh2-1{u} openssl{u}
0 packages upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 14.4MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
dpkg: error processing adobe-flashplugin (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
adobe-flashplugin
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done            
Building dependency tree      
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  

crowtlf@debian:~$

不管怎么怎么弄,还是不行的,帮忙看看

source.list
:deb http://ftp.tw.debian.org/debian/ lenny main  
deb http://ftp.debian.org/debian/ lenny main non-free
deb http://ftp.tw.debian.org/debian/ testing main
 楼主| 发表于 2009-6-26 18:42:33 | 显示全部楼层
不好意思。解决了~
回复 支持 反对

使用道具 举报

发表于 2009-6-30 17:31:13 | 显示全部楼层
BS楼上的
如果解决了,就请把解决方案发上来
以便下次别人遇到相同问题有解决方法
回复 支持 反对

使用道具 举报

发表于 2009-7-1 10:46:02 | 显示全部楼层
他忘记关闭synaptic了。或者是另外的升级软件。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-1 12:51:10 | 显示全部楼层
解决办法是,把不要去急着删掉那个包。

把原来下的那个deb包再装一次。而后提示再来一次。
不行就把nonfree的那个包再装上~
回复 支持 反对

使用道具 举报

发表于 2009-10-25 14:10:16 | 显示全部楼层
sudo rm -rf /var/lib/dpkg/info/adobe-flashplugin*
sudo dpkg --remove --force-remove-reinstreq adobe-flashplugin
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表