LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-28-2012, 11:19 AM   #1
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & CentOS
Posts: 2,970
Blog Entries: 1

Rep: Reputation: Disabled
Synaptic Unable to remove packages and applications


Hi:

Having troble with Synaptic Package Manager today in regard to the removal of a few packages.

These 2 packages are applications/programs for writing code and I don't need them as I don't write code.
-trousers 0.3.5-2+squeeze1 (daemon)
-trousers-debug

So I've tried to remove these but within the drop down menu the option to 'mark for removal' is grayed out. (I see the option to mark for removal but it's in-operative and can not click on it) The only option available to me is to 'mark for installation'

How do I fix this? I'm Confused

I appreciate any help for this
 
Old 11-28-2012, 05:29 PM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Slackware
Posts: 1,092
Blog Entries: 4

Rep: Reputation: 267Reputation: 267Reputation: 267
If "mark for installation" is available but "mark for removal" is not, it suggests the packages are not installed.
 
Old 11-29-2012, 06:59 AM   #3
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
I agree with Randicus Draco Albus, let's check it...
please, post the terminal output of
Code:
apt-cache policy trousers-debug
apt-cache policy trousers
you might need to run
Code:
sudo apt-get update
first.
 
1 members found this post helpful.
Old 11-29-2012, 07:15 AM   #4
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Slackware
Posts: 1,092
Blog Entries: 4

Rep: Reputation: 267Reputation: 267Reputation: 267
Quote:
sudo apt-get update
Or since this is Debian, perhaps use su instead of sudo.
 
1 members found this post helpful.
Old 11-29-2012, 07:25 AM   #5
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
Those packages are certain;y not installed. Also, trousers-debug is an invalid .deb package name. A debug package contains the stripped symbols for the pertinent package.

According to the Debian Policy manual, debug packages must be named packagename-dbg. What you have specified:
Quote:
-trousers 0.3.5-2+squeeze1 (daemon)
-trousers-debug
are from the description field, they are not the name of the package. With that:
Code:
apt-cache policy trousers-debug
will return
Code:
N: Unable to locate package trousers-debug
It should be:
Code:
apt-cache policy trousers trousers-dbg
which sould return:
Code:
trousers:
  Installed: (none)
  Candidate: 0.3.5-2+squeeze1
  Version table:
     0.3.5-2+squeeze1 0
        500 http://security.debian.org/ squeeze/updates/main i386 Packages
     0.3.5-2 0
        500 http://ftp.us.debian.org/debian/ squeeze/main i386 Packages
trousers-dbg:
  Installed: (none)
  Candidate: 0.3.5-2+squeeze1
  Version table:
     0.3.5-2+squeeze1 0
        500 http://security.debian.org/ squeeze/updates/main i386 Packages
     0.3.5-2 0
        500 http://ftp.us.debian.org/debian/ squeeze/main i386 Packages
Again, no need to worry, those packages are not installed by default.
 
1 members found this post helpful.
Old 11-29-2012, 07:26 AM   #6
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
Quote:
Originally Posted by Randicus Draco Albus View Post
Or since this is Debian, perhaps use su instead of sudo.
I do use Debian and I rarely login into the root shell, I think it is just a matter of personal habit. By the way Debian's wiki say
Quote:
For the reasons above, switching to root using sudo -i (or sudo su) is usually deprecated because it cancels the above features.
edit: Ztcoracat, sorry for the divagation...anyway towheedm is right the debug packages are named *-dbg...

Last edited by VDP76; 11-29-2012 at 07:32 AM.
 
1 members found this post helpful.
Old 11-29-2012, 07:20 PM   #7
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & CentOS
Posts: 2,970
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Randicus Draco Albus View Post
If "mark for installation" is available but "mark for removal" is not, it suggests the packages are not installed.
How do I remove them?

Open the terminal and use the 'rm'<name of package> command?

Last edited by Ztcoracat; 11-29-2012 at 07:24 PM.
 
Old 11-29-2012, 07:23 PM   #8
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & CentOS
Posts: 2,970
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Here's the output Towheedm:

Code:
ztcoracat@:~$ su
Password: 
root@:/home/ztcoracat# apt-cache policy trousers trousers-dbg
trousers:
  Installed: (none)
  Candidate: 0.3.5-2+squeeze1
  Version table:
     0.3.5-2+squeeze1 0
        500 http://security.debian.org/ squeeze/updates/main amd64 Packages
        500 http://ftp.us.debian.org/debian/ squeeze-proposed-updates/main amd64 Packages
     0.3.5-2 0
        500 http://ftp.us.debian.org/debian/ squeeze/main amd64 Packages
trousers-dbg:
  Installed: (none)
  Candidate: 0.3.5-2+squeeze1
  Version table:
     0.3.5-2+squeeze1 0
        500 http://security.debian.org/ squeeze/updates/main amd64 Packages
        500 http://ftp.us.debian.org/debian/ squeeze-proposed-updates/main amd64 Packages
     0.3.5-2 0
        500 http://ftp.us.debian.org/debian/ squeeze/main amd64 Packages
root@:/home/ztcoracat#
 
Old 11-29-2012, 07:25 PM   #9
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & CentOS
Posts: 2,970
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by VDP76 View Post
I do use Debian and I rarely login into the root shell, I think it is just a matter of personal habit. By the way Debian's wiki say

edit: Ztcoracat, sorry for the divagation...anyway towheedm is right the debug packages are named *-dbg...
Thanks
 
Old 11-29-2012, 07:58 PM   #10
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by Ztcoracat View Post
Here's the output Towheedm:

Code:
ztcoracat@:~$ su
Password: 
root@:/home/ztcoracat# apt-cache policy trousers trousers-dbg
trousers:
  Installed: (none)
  Candidate: 0.3.5-2+squeeze1

trousers-dbg:
  Installed: (none)
  Candidate: 0.3.5-2+squeeze1
As you can see from the Installed field, it's not installed.
Code:
Installed: (none)
means the package is not installed.

Unless you installed it previously (and from your posts, I'm certain you did not), the package files (trousers_0.3.5-2+squeeze1.deb and trousers-dbg_0.3.5-2+squeeze1.deb) will not even be on your computer.

Quote:
How do I remove them?

Open the terminal and use the 'rm'<name of package> command?
No!!!!! That would not work. Again, the package files will not be on your computer.

But, for reference sake, Debian keeps it's packages in the directory /var/cache/apt/archives.

To rm a package file from the above directory:
Code:
sudo rm /var/cache/apt/archives/<package-filename>.deb
ESP at work: Your next question, "Is it safe to remove files from /var/cache/apt/archives?"

Yes it is. The package manager will simply re-download it the next time you try to re-install it.

BTW: It is not necessary to run the apt-cache utility with root privileges. It runs as a normal user.

And again, those packages are not installed on your system.

Hope this helps.

Last edited by towheedm; 11-29-2012 at 07:59 PM.
 
1 members found this post helpful.
Old 11-30-2012, 12:51 AM   #11
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Slackware
Posts: 1,092
Blog Entries: 4

Rep: Reputation: 267Reputation: 267Reputation: 267
Quote:
Originally Posted by VDP76 View Post
By the way Debian's wiki say ...
At the risk of de-railing the thread; of course, the wiki presumes that the reader knows what the function of sudo is. The function is not to be a general purpose method of acquiring root access. That would defeat the purpose of sudo. In fact, when Debian is installed, sudo is not enabled, and why I refer to su as the Debian way.
 
Old 11-30-2012, 05:38 PM   #12
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & CentOS
Posts: 2,970
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by towheedm View Post
As you can see from the Installed field, it's not installed.
Code:
Installed: (none)
means the package is not installed.

Unless you installed it previously (and from your posts, I'm certain you did not), the package files (trousers_0.3.5-2+squeeze1.deb and trousers-dbg_0.3.5-2+squeeze1.deb) will not even be on your computer.



No!!!!! That would not work. Again, the package files will not be on your computer.

But, for reference sake, Debian keeps it's packages in the directory /var/cache/apt/archives.

To rm a package file from the above directory:
Code:
sudo rm /var/cache/apt/archives/<package-filename>.deb
ESP at work: Your next question, "Is it safe to remove files from /var/cache/apt/archives?"

Yes it is. The package manager will simply re-download it the next time you try to re-install it.

BTW: It is not necessary to run the apt-cache utility with root privileges. It runs as a normal user.

And again, those packages are not installed on your system.

Hope this helps.
Thank You for confirming that those packages are not installed; however I did notice that from the output just before I posted it.

And Thank You for showing me the correct way of removing a package that is unwanted-

Your are good at thoroughly documenting important key factors folks need to know.
 
Old 11-30-2012, 10:24 PM   #13
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
Another way to clean the package cache is with apt-get:
Code:
sudo apt-get clean
This will remove all package files from the cache (/var/cache/apt/archives)

See
Code:
man apt-get
for more info on apt-get options and commands.
 
Old 12-01-2012, 11:44 AM   #14
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & CentOS
Posts: 2,970
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by towheedm View Post
Another way to clean the package cache is with apt-get:
Code:
sudo apt-get clean
This will remove all package files from the cache (/var/cache/apt/archives)

See
Code:
man apt-get
for more info on apt-get options and commands.
Once a month I run:
Code:
aptitude autoclean
I'll look up 'man apt-get'in the man pages; Thank You
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you fix broken packages when Synaptic is unable to? TokyoJohn Ubuntu 3 10-18-2011 01:31 AM
Remove all packages except those used by applications Ulysses_ Linux - Desktop 3 12-22-2010 12:41 PM
Difference between Add/Remove Applications and Synaptic Package Manager SHENGTON Linux - Newbie 6 03-24-2009 12:30 PM
Unable to use Add or Remove Packages !!! jmax24 Linux - General 1 04-13-2004 01:30 AM
packages not found when installing programs from add/remove applications barryjones Red Hat 5 01-10-2004 01:51 PM


All times are GMT -5. The time now is 03:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration