软件包 xxx需要重新安装,但是我(apt)无法找到相应的安装文件的解决办法

系统Debian lenny
错误信息如下:
E: 软件包 adobe-flashplugin 需要重新安装,但是我无法找到相应的安装文件。
我不是问怎么安装adobe-flashplugin的,只是想问下,怎么别让apt包管理程序宕在这里,不干事情了。
例如:
arnk@debian4arnk:~/bak$ sudo apt-get upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 软件包 adobe-flashplugin 需要重新安装,但是我无法找到相应的安装文件。

宕在这里
又例如:
arnk@debian4arnk:~/bak$ sudo apt-get install netbeans
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 软件包 adobe-flashplugin 需要重新安装,但是我无法找到相应的安装文件。

又宕在这里
这样apt就不能用了呀!能不能不让它管这个软件的事了,然后照常工作,不能因为这个错误影响到全局阿!
但是事实上我已经安装好了adobe-flashplugin,是通过下载官网的.gz文件,然后解压到指定目录安装好的,iceweasel也已经显示了。

kao
我发现这还不是最要命的,
如:
arnk@debian4arnk:~$ sudo dpkg -l | grep flash
iFR adobe-flashplugin                    10.0.32.18-1                 Adobe Flash Player plugin version 10
arnk@debian4arnk:~$ sudo apt-get --purge remove adobe-flashplugin
正在读取软件包列表... 完成
正在分析软件包的依赖关系树     
正在读取状态信息... 完成     
E: 软件包 adobe-flashplugin 需要重新安装,但是我无法找到相应的安装文件。

想将其卸载也不行了。我该怎么办?
Some times you might see the following error message when you try to install any package using apt-get or synaptic
E: The package webmin needs to be reinstalled, but I can’t find an archive for it.

E: The package mfc8500lpr needs to be reinstalled, but I can’t find an archive for it.

This error might be with any package in the above examples webmin and mfc8500lpr packages this error mostly occour when you try to install a debian package in to ubuntu system

Error

E: The package package name needs to be reinstalled, but I can’t find an archive for it.

Package name in the above error could be any package

Solution

Run the following command

For webmin Pakage

dpkg --remove --force-remove-reinstreq webmin

You can replace webmin to any of your package name which is giving the error
上面所说的似乎和我的情况类似,但我执行dpkg --remove --force-remove-reinstreq adobe-flashplugin后依然让我崩溃。问题的原因是我在我的debian系统上安装了一个用于ubuntu系统的flashplugin的 deb包,导致了这个问题。
dpkg:警告:由于开启了 --force 选项,以下问题被忽略:该软件包现在的状态极为不妥 - 您最好能在删除它之前再重新安装一次。(正在读取数据库 ... 系统当前总共安装有 93095 个文件和目录。)正在删除 adobe-flashplugin ...update-alternatives: error: 无 iceape-flashplugin 的替换项。update-alternatives: error: 无 iceape-flashplugin 的替换项。dpkg:处理 adobe-flashplugin (--purge)时出错:子进程 已安装的 pre-removal 脚本 返回了错误号 2postinst called with argument `abort-remove'dpkg: 作下列清理工作时发生错误:子进程 已安装的 post-installation 脚本 返回了错误号 1在处理时有错误发生:adobe-flashplugin
终于在一个国外论坛上找到了解决方法
rm -rf /var/lib/dpkg/info/adobe-flashplugin*
然后在执行
sudo dpkg --remove --force-remove-reinstreq adobe-flashplugin
求人不如求己!


转载地址:http://blog.chinaunix.net/space.php?uid=1710217&do=blog&id=229466

  • 4
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
回答: 在Ubuntu上安装zip软件包的方法有多种。根据引用\[1\]中的报错信息,你遇到了404错误,可能是因为下载链接无法连接。你可以尝试运行"apt-get update"命令来更新软件包列表,然后再运行"apt-get install unzip"命令来安装zip软件包。如果仍然无法解决问题,你可以尝试引用\[2\]中提到的方法,直接复制下载链接到网页,然后手动下载安装包(格式为xxx.deb),最后使用"dpkg -i xxx.deb"命令来安装。安装完成后,你可以使用"zip"和"unzip"命令来验证zip软件包是否正常工作。引用\[3\]中的输出信息显示,安装过程中会提示是否继续安装,你可以选择输入"Y"来继续安装。希望这些方法能够帮助你成功安装zip软件包。 #### 引用[.reference_title] - *1* *3* [【ubuntu】安装ZIP](https://blog.csdn.net/wss794/article/details/130646714)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Ubuntu生产环境手动安装zip和unzip软件](https://blog.csdn.net/SONGW2018/article/details/82972656)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值