aptitude -f install installs unnecessary packages?

Questions about applications and software
Forum rules
Before you post please read this

aptitude -f install installs unnecessary packages?

Postby pythonscript on Sat Jan 14, 2012 12:46 pm

When I run

Code: Select all
sudo aptitude -f install


Debian presents me with this list of packages:
Code: Select all
dhcp3-common gir1.2-gtk-2.0 gnome-session-canberra libavcodec53
  libclutter-gtk-0.10-0 libgail-gnome-module libgconfmm-2.6-1c2 libgcr0
  libglademm-2.4-1c2a libgnome-keyring1.0-cil libgnome-speech7 libgsf-1-114
  libgsf-1-common libiptcdata0 liblockfile1 libmjpegtools-2.0-0
  libnfsidmap2 libntfs10 liboil0.3 libopenal1 libquicktime2 libssl0.9.8
  libswscale2 libvo-aacenc0 libvo-amrwbenc0 libxcb-dri2-0
  libxcb-render-util0 libxml-parser-ruby1.8


However, running sudo deborphan presents me with this list:

Code: Select all
libgnome-speech7
libxml-parser-ruby1.8
libssl0.9.8
libxcb-render-util0
libgcr0
liboil0.3
libgsf-1-114
gnome-session-canberra
libxcb-dri2-0
libgnome-keyring1.0-cil
libclutter-gtk-0.10-0
libmjpegtools-2.0-0
libopenal1
libntfs10
libglademm-2.4-1c2a
libiptcdata0
libnfsidmap2
libgconfmm-2.6-1c2
libgail-gnome-module
gir1.2-gtk-2.0
dhcp3-common
liblockfile1


Why does aptitude say that these packages are necessary, but deborphan says that nothing depends on them? I'm trying to get my system as "clean" as possible, but if I purge the list of packages that deborphan gives me, aptitude -f install simply asks to reinstall them.
pythonscript
Level 2
Level 2
 
Posts: 53
Joined: Wed Nov 09, 2011 3:49 pm

Linux Mint is funded by ads and donations.
 

Re: aptitude -f install installs unnecessary packages?

Postby viking777 on Sat Jan 14, 2012 2:51 pm

Do you run apt-get or synaptic as well as aptitude?

The general feeling is that you shouldn't mix the two managers because they do not deal with problems in the same way. In particular if you have been using apt-get (or something that uses it) then you switch to aptitude then the latter will not correctly identify packages that are dependencies installed by the former and will try to remove them. Therefore if you do use both of them you should always run the command

Code: Select all
sudo aptitude keep-all


before any other aptitude command.

If you do that you will get a very different result to your 'install' command.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am


Return to Software & Applications

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests