Removing packages installed from Debian backports

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Removing packages installed from Debian backports

Post by ayu »

I installed a package from Debian Squeeze Backports a while ago, but now I get the following problem;

* When I try to compile Emerald, it depends on an older version of the package that I installed from backports (thus I need to remove it and install another one)
* If I try to remove it, it says that it's not installed
* If I try to install it, it says it's already installed

Ideas?

The package in question is libgtk2.0-dev
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: Removing packages installed from Debian backports

Post by bad_brain »

ok, first do:

Code: Select all

dpkg -l libgtk2.0-dev
check the first 2 (or 3) letters, it will tell you the status of the package.

the try to remove it with:

Code: Select all

dpkg -r libgtk2.0-dev
or, most likely better because it also removes all the config files:

Code: Select all

dpkg --purge libgtk2.0-dev
Image

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: Removing packages installed from Debian backports

Post by ayu »

Code: Select all

root@Enma:/home/cats# dpkg -l libgtk2.0-dev
No packages found matching libgtk2.0-dev.
root@Enma:/home/cats# dpkg -r libgtk2.0-dev
dpkg: warning: ignoring request to remove libgtk2.0-dev which isn't installed.
root@Enma:/home/cats# dpkg --purge libgtk2.0-dev
dpkg: warning: ignoring request to remove libgtk2.0-dev which isn't installed.
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: Removing packages installed from Debian backports

Post by bad_brain »

output of:

Code: Select all

apt-get -o Debug::pkgProblemResolver=yes remove libgtk2.0-dev
also look if that file exists:

Code: Select all

/var/lib/dpkg/info/libgtk2.0-dev
Image

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: Removing packages installed from Debian backports

Post by ayu »

Think I solved it by enabling backports again and just installed all the newer packets instead :P

so basically the solution was

Code: Select all

apt-get install -t squeeze-backports libgtk2.0-dev
"The best place to hide a tree, is in a forest"

Post Reply