dpkg 安装错误解决
来源:互联网 发布:中国新声音网络直播 编辑:程序博客网 时间:2024/06/06 06:18
Recently, I encountered a package management related error in Ubuntu Jaunty Jackalope 64bit.
The package was python-beagle and the error was: “E: python-beagle: subprocess pre-removal script returned error exit status 2″ and details showed:
dpkg (subprocess): unable to execute pre-removal script: Exec format error
dpkg: error processing python-beagle (–remove):
subprocess pre-removal script returned error exit status 2
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
python-beagle
E: Sub-process /usr/bin/dpkg returned an error code (1)
I managed to fix it. Read on for how I did it.
Precaution: The process can break your system if not followed as mentioned (you may get into problems even if you follow the process). Please proceed at your own risk.
First, please try the following in terminal:
If it does not work, then you may want to try:
If both of them still produce similar errors, then continue. If the above commands fix your problem, you should not continue.
1. Close Synaptic or any package manager. Wait for or cancel any updates or install\uninstall.
2. Make Backups of current /var/lib/dpkg/status file. Just copy and paste to your home directory or Desktop.
3. Alt+F2 and launch type in gksu gedit /var/lib/dpkg/status and run it. Gedit will be launched with a text file open.
4. Now, search for the exact name of the package with problems and find it.
5. In my case, it I found the entry for the package python-beagle:
6. Select and delete that information and that much information only, i.e. you will remove “Package: culprit-package-name” to “Description: culprit package description”. Remmber, “culprit package description” may be multiline and you will need to remove all the lines till a blank line. Don’t forget to leave a line blank between the package description above and the one below. To clarify things out, I have placed the images here, pelase have a look. Here the package to be removed is python-beagle.
7. Launch Synaptic (or any package manager) and then search for package. You will see the package as not installed. Mark it for installation and install it. If you start to see the same error, restart the same process from Step 1 but the next time, stop at step 6.
8. Now, you should be able to remove it if you no longer want the package. If you can’t, restart the same process from Step 1 but the next time, stop at step 6.
Hope this was helpful. Please post in comments.
- dpkg 安装错误解决
- dpkg错误解决
- Ubuntu安装deb时错误:“dpkg:错误:另外一个进程已经为 dpkg 状态数据库 加锁”解决
- 解决mysql安装错误E: Sub-process /usr/bin/dpkg returned an error code (1)
- Ubuntu下安装beta版R报dpkg: dependency problems prevent configuration of r-recommended错误[已解决]
- dpkg was interrupted, you must manually run 'dpkg --configure -a' 错误解决
- Ubuntu安装软件是始终出现dpkg错误
- ubuntu常见错误--Could not get lock /var/lib/dpkg/lock解决 通过终端安装程序sudo apt-get install xxx时出错: E: Coul
- dpkg错误的解决办法
- dpkg依赖错误
- [Android环境搭建错误解决四]未解决dpkg: dependency problems prevent configuration of lib64z1-dev
- dpkg 被中断,您必须手工运行 sudo dpkg --configure -a 解决此问题——安装Flashplayer出错
- SQL安装错误解决!
- oracle安装错误解决
- 安装nokogiri错误解决
- phpwind安装错误解决
- 安装openssl错误解决
- mysql安装错误解决
- 类似ShotGraph的绘图组件WebGraph
- android:minSdkVersion 之我见
- 系统版本和API Level对照表
- ubuntu 中搭建samba服务器
- 转自MIT牛人林达华的 ”图˙谱˙马尔可夫过程˙聚类结构 “————经典、透彻
- dpkg 安装错误解决
- malloc/free+new/delete
- Fat32文件系统存储原理及数据恢复
- CODE 68: Merge Two Sorted Lists
- static 总结
- 数字彩色电视摄像机结构
- Struts 2 Tutorial: Create Struts 2 Application in Eclipse
- HDU 1115 求多边形重心
- 《30天自制操作系统》读书笔记Day17