Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Why aptitude install -f not same as apt-get install -f

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
umarzuki
Posts: 306
Joined: 2007-07-22 11:23
Location: Malaysia

Why aptitude install -f not same as apt-get install -f

#1 Post by umarzuki »

Situaton: Installing deluge package downloaded from deluge's site

Code: Select all

nastything:/home/umarzuki/Desktop# [b]dpkg -i deluge-torrent_1.0.99+1.1.0RC-3_i386.lenny.deb[/b] 
Selecting previously deselected package deluge-torrent.
(Reading database ... 96599 files and directories currently installed.)
Unpacking deluge-torrent (from deluge-torrent_1.0.99+1.1.0RC-3_i386.lenny.deb) ...
dpkg: dependency problems prevent configuration of deluge-torrent:
 deluge-torrent depends on libboost-date-time1.34.1 (>= 1.34.1-8); however:
  Package libboost-date-time1.34.1 is not installed.
 deluge-torrent depends on libboost-filesystem1.34.1 (>= 1.34.1-8); however:
  Package libboost-filesystem1.34.1 is not installed.
 deluge-torrent depends on libboost-iostreams1.34.1 (>= 1.34.1-8); however:
  Package libboost-iostreams1.34.1 is not installed.
 deluge-torrent depends on libboost-python1.34.1 (>= 1.34.1-8); however:
  Package libboost-python1.34.1 is not installed.
 deluge-torrent depends on libboost-thread1.34.1 (>= 1.34.1-8); however:
  Package libboost-thread1.34.1 is not installed.
 deluge-torrent depends on python-pyopenssl; however:
  Package python-pyopenssl is not installed.
 deluge-torrent depends on python-setuptools; however:
  Package python-setuptools is not installed.
dpkg: error processing deluge-torrent (--install):
 dependency problems - leaving unconfigured
Processing triggers for menu ...
Processing triggers for man-db ...
Errors were encountered while processing:
 deluge-torrent[
I tried with aptitude install -f

Code: Select all

nastything:/home/umarzuki/Desktop# aptitude install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done         
The following packages are BROKEN:
  deluge-torrent w32codecs 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.3MB of archives. After unpacking 34.4MB will be used.
The following packages have unmet dependencies:
  deluge-torrent: Depends: libboost-date-time1.34.1 (>= 1.34.1-8) but it is not installable
                  Depends: libboost-filesystem1.34.1 (>= 1.34.1-8) but it is not installable
                  Depends: libboost-iostreams1.34.1 (>= 1.34.1-8) but it is not installable
                  Depends: libboost-python1.34.1 (>= 1.34.1-8) but it is not installable
                  Depends: libboost-thread1.34.1 (>= 1.34.1-8) but it is not installable
                  Depends: python-pyopenssl but it is not installable
                  Depends: python-setuptools but it is not installable
  w32codecs: Depends: libstdc++5 (>= 1:3.3.4-1) but it is not installable
The following actions will resolve these dependencies:

Remove the following packages:
deluge-torrent

Install the following packages:
libstdc++5 [1:3.3.6-18 (testing, now)]

Score is 110

Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
Then I was surprised with apt-get install -f

Code: Select all

nastything:/home/umarzuki/Desktop# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libboost-date-time1.34.1 libboost-filesystem1.34.1 libboost-iostreams1.34.1
  libboost-python1.34.1 libboost-thread1.34.1 python-openssl
  python-pkg-resources python-pyopenssl python-setuptools
Suggested packages:
  python-openssl-doc python-openssl-dbg
The following NEW packages will be installed:
  libboost-date-time1.34.1 libboost-filesystem1.34.1 libboost-iostreams1.34.1
  libboost-python1.34.1 libboost-thread1.34.1 python-openssl
  python-pkg-resources python-pyopenssl python-setuptools
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 350kB/923kB of archives.
After this operation, 2957kB of additional disk space will be used.
Do you want to continue [Y/n]?

User avatar
BioTube
Posts: 7520
Joined: 2007-06-01 04:34

#2 Post by BioTube »

Probably assumptions on the part of aptitude's dev.
Image
Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.

User avatar
AdrianTM
Posts: 2499
Joined: 2004-09-19 01:08

#3 Post by AdrianTM »

because it uses different algorithms to determine what programs need to be installed. Also some packages might be placed manually on hold in aptitude, apt-get doesn't know about them.
Ubuntu hate is a mental derangement.

infinitycircuit
Posts: 1137
Joined: 2007-07-24 03:31
Location: California

#4 Post by infinitycircuit »

By default, if you run aptitude install -f following a manual dpkg -i of a package, its first choice is to just remove the offending package. If you reject the first solution, it will try to install other packages to meet the dependencies. This is a conscious design choice because removing one partially-configured package is by default less invasive than installing an unknown number of new or upgraded packages.

Aptitude is smart--it can solve Sudoku puzzles.

Post Reply