rmhatch
Posts: 11
Joined: Thu Oct 03, 2013 9:13 am

Package Problems

Sun Mar 02, 2014 7:21 am

I screwed up a package installation! I'm not sure if I hit a key too soon, maybe, but I need 2 re-install it. I cannot find in the Debian user guide or on-line how 2 un-install a package so that it can B re-installed. I'd appreciate any helpful comments on this subject--Thanx!!!

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Package Problems

Sun Mar 02, 2014 8:48 am

If you installed the package using apt-get (or aptitude/synaptic), then you can remove the package and all its configuration files with

Code: Select all

sudo apt-get purge packagename
Then try the install again.

You could also try

Code: Select all

sudo apt-get --reinstall install packagename
which will try and reinstall the package over the top of the existing installed version, or

Code: Select all

sudo apt-get -f install
which will try and complete any failed installations.

rmhatch
Posts: 11
Joined: Thu Oct 03, 2013 9:13 am

Re: Package Problems

Sun Apr 13, 2014 12:10 pm

rpdom wrote:If you installed the package using apt-get (or aptitude/synaptic), then you can remove the package and all its configuration files with

Code: Select all

sudo apt-get purge packagename
Then try the install again.

You could also try

Code: Select all

sudo apt-get --reinstall install packagename
which will try and reinstall the package over the top of the existing installed version, or

Code: Select all

sudo apt-get -f install
which will try and complete any failed installations.
=================================================
Thanx 4 the suggestions!!! I should B able 2 fix it this way ....
=================================================

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Package Problems

Sun Apr 13, 2014 1:50 pm

man apt-get will show you all the ways to use apt-get
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

Return to “Beginners”