|
安装一个deb软件包, 因为 软件包内部 postin 和 prerm 脚本执行出错, 导致dpkg和 apt-get 彻底不能用.
連 synaptic 也不能用,一启动synaptic就报告adobe-flashplugin有问题,然后就退出.
总是提示重新安装该软件包才能remove, 疯了.
- sudo apt-get install remove --purge 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.
复制代码
- sudo dpkg -i adobe-flashplugin_10.0.12.36-1hardy1_i386.deb
- (Reading database ... 123136 files and directories currently installed.)
- Preparing to replace adobe-flashplugin 10.0.12.36-1hardy1 (using adobe-flashplugin_10.0.12.36-1hardy1_i386.deb) ...
- update-alternatives: error: no alternatives for iceape-flashplugin.
- update-alternatives: error: no alternatives for iceape-flashplugin.
- dpkg: warning: old pre-removal script returned error exit status 2
- dpkg - trying script from the new package instead ...
- update-alternatives: error: no alternatives for iceape-flashplugin.
- update-alternatives: error: no alternatives for iceape-flashplugin.
- dpkg: error processing adobe-flashplugin_10.0.12.36-1hardy1_i386.deb (--install):
- subprocess new pre-removal script returned error exit status 2
- postinst called with argument `abort-upgrade'
- dpkg: error while cleaning up:
- subprocess installed post-installation script returned error exit status 1
- Errors were encountered while processing:
- adobe-flashplugin_10.0.12.36-1hardy1_i386.deb
复制代码
- sudo dpkg -r --force-all adobe-flashplugin
- dpkg: warning: overriding problem because --force enabled:
- Package is in a very bad inconsistent state - you should
- reinstall it before attempting a removal.
- (Reading database ... 123135 files and directories currently installed.)
- Removing adobe-flashplugin ...
- update-alternatives: error: no alternatives for iceape-flashplugin.
- update-alternatives: error: no alternatives for iceape-flashplugin.
- dpkg: error processing adobe-flashplugin (--remove):
- subprocess installed pre-removal script returned error exit status 2
- postinst called with argument `abort-remove'
- dpkg: error while cleaning up:
- subprocess installed post-installation script returned error exit status 1
- Errors were encountered while processing:
- adobe-flashplugin
复制代码
- 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.
复制代码
大家说该怎么办? |
|