Written by: Pranshu Bajpai
| Find Pranshu on Google+ And LinkedIn
If you have worked in Linux long enough, you might have come across this nasty error while installing new packages. I'm saying it's nasty simply because you'll try all you know to get rid of it but it just won't go away.
Here's what the error looks like when you try to remove the package that is creating the problem:
This next screen shows what happens when you try to install a new package:
The solution to this would be to remove any traces of this package, in this case vsftpd, in two locations:
Location 1: cd /var/lib/dpkg/info
Location 2: cd /var/cache/apt/archives/
Navigate to these paths and remove the vsftpd files, nomatter what the extension of that file.
After removing said files, the problem should resolve, and you should be able to install new packages.
Note: This solution is something that worked for me and should work for others as well, but if it doesn't, let me know in comments below.
This comment has been removed by a blog administrator.
ReplyDeleteI dont understand
ReplyDeleteplease explain one by one cause i am newbie
im new one to and i fixeed armitage now i have to fix usr bin dpkg damn....
DeleteWorked for me
ReplyDeleteworks perfectly after i tired many other BAD suggestions. thanks!
ReplyDeleteGood post, works well...
ReplyDeleteI spent days trying to figure out why I couldn't remove the vsftpd package to reinstall it after it got corrupt when upgrading ubuntu 12.10 to 14.04. Thank you so much for posting this solution!!!
ReplyDeleteThank you so much for this solution ! Works well !
ReplyDeletethanks it works
ReplyDeleteThanks so much, worked for me.
ReplyDelete