sbaratheon
Posts: 81
Joined: Sun Sep 30, 2012 10:33 am

Cannot uninstall package

Sun Sep 30, 2012 10:53 am

Hi everyone,

I'm trying to uninstall a package I installed via apt. I've tried "apt-get remove [package name]" but I get "dpkg was interrupted you must manually run sudo dpkg --configure -a" but this says that there is no space left on the device.

Any help would be great.

User avatar
stevepdp
Posts: 285
Joined: Fri Oct 28, 2011 7:41 am
Contact: Website Twitter

Re: Cannot uninstall package

Sun Sep 30, 2012 11:35 am

You can look at your disk usage by using the command:

Code: Select all

df -h
An easy way to free up some space:

Code: Select all

sudo apt-get clean
That will remove package cache which can be quite weighty if you've been running lots of installs and upgrades.

Run df -h again to see how much space you've freed up, and if it looks good then attempt the dpkg command again.

Let us know how you get on.

sbaratheon
Posts: 81
Joined: Sun Sep 30, 2012 10:33 am

Re: Cannot uninstall package

Sun Sep 30, 2012 11:52 am

Ah, I've got more space now and successfully ran "dpkg -- configure -a" but "sudo apt-get remove [packge]" said the package didn't exist.

Running "dpkg -s hplip [package]" came out with:

"
Package: hplip
Status: install ok not-installed
Priority: optional
Section: utils
Architecture: armhf
"

Return to “Beginners”