apt-get autoremove不能删除包的解决方法
2009-03-20 00:55
453 查看
进入死循环,dpkg系统不能升级或者安装了。
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
jython-gcj libreadline-java bicyclerepair jython exuberant-ctags
libcommons-codec-java
The following packages will be REMOVED
bicyclerepair exuberant-ctags jython jython-gcj libcommons-codec-java
libreadline-java
0 upgraded, 0 newly installed, 6 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 17.5MB disk space will be freed.
Do you want to continue [Y/n]? Y
Setting up dash (0.5.4-9ubuntu1.1) ...
/usr/sbin/dpkg-divert: 1: Syntax error: word unexpected (expecting ")")
dpkg: error processing dash (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
dash
E: Sub-process /usr/bin/dpkg returned an error code (1)
找到了解决办法。便是在/var/lib/dpkg/info/中找到损坏的包,并且删除之。
/var/lib/dpkg/info$ ls |grep dash
dash.config
dash.list
dash.md5sums
dash.postinst
dash.postrm
dash.prerm
dash.templates
然后sudo rm dash*
重新sudo apt-get install dash
再次sudo apt-get autoremove
并且sudo apt-get upgrade
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
jython-gcj libreadline-java bicyclerepair jython exuberant-ctags
libcommons-codec-java
The following packages will be REMOVED
bicyclerepair exuberant-ctags jython jython-gcj libcommons-codec-java
libreadline-java
0 upgraded, 0 newly installed, 6 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 17.5MB disk space will be freed.
Do you want to continue [Y/n]? Y
Setting up dash (0.5.4-9ubuntu1.1) ...
/usr/sbin/dpkg-divert: 1: Syntax error: word unexpected (expecting ")")
dpkg: error processing dash (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
dash
E: Sub-process /usr/bin/dpkg returned an error code (1)
找到了解决办法。便是在/var/lib/dpkg/info/中找到损坏的包,并且删除之。
/var/lib/dpkg/info$ ls |grep dash
dash.config
dash.list
dash.md5sums
dash.postinst
dash.postrm
dash.prerm
dash.templates
然后sudo rm dash*
重新sudo apt-get install dash
再次sudo apt-get autoremove
并且sudo apt-get upgrade
相关文章推荐
- ubuntu16.04使用sudo apt-get autoremove导致系统崩溃的解决办法
- mysql ERROR 1045(完全删除mysql包括密码:apt-get autoremove --purge mysql-server-5.0)
- 解决apt-get无法删除和安装软件的问题的方法
- 关于BT5不能使用apt-get命令的解决方法
- 当apt-get intall出问题的时候,而使用“apt-get -f install”不能解决问题的时候,使用一下方法兴许能够解决
- 解决apt-get无法删除和安装软件的问题的方法
- 解决apt-get无法删除和安装软件的问题的方法
- apt-get错误:not fully install or remove解决方法
- IE 浏览器中不能使remove删除节点的解决方法
- 泛型List<T>中方法Remove不能删除对象的解决
- exFAT不能新建/删除文档的解决方法
- Ubuntu 16.04 apt-get无法自动解决依赖的解决方法
- 在Docker中解决ubuntu中apt-get update使用的方法
- Ubuntu安装telent服务器时出现:apt-get:Package has no installation的原因及解决方法
- 慎用 apt-get autoremove !
- apt-get update 出现GPG错误解决方法
- file_get_contents函数不能使用的解决方法
- Ubuntu apt-get install 被锁定的解决方法
- getHibernateTemplate().save ()成功但不能写入数据库 解决方法
- sudo apt-get update 错误 解决方法