Is it safe to mix aptitude with apt-get ?

I Am Me theunknownandrew at gmail.com
Sun Aug 1 08:54:32 UTC 2010


On Sunday 01 Aug 2010 8:49:52 am listofx wrote:
> > xiang at xiang-laptop:~$ sudo aptitude -f install
> > [sudo] password for xiang:
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > Reading extended state information
> > Initialising package states... Done
> > The following packages are BROKEN:
> >   openjdk-6-jdk
> > The following NEW packages will be installed:
> >   clamav clamav-base clamav-freshclam libclamav6 libnunit-doc libtommath0
> > nunit nunit-console nunit-gui
> 
> Those packages above have been removed through apt-get. (I rather prefer
> apt-get --purge autoremove pkgs.)
> 
> > The following packages will be REMOVED:
> >   libqt4-mendeley-dbus{p} libqt4-mendeley-designer{p}
> > libqt4-mendeley-network{p} libqt4-mendeley-qt3support{p}
> > libqt4-mendeley-script{p} libqt4-mendeley-sql{p}
> > libqt4-mendeley-sql-sqlite{p} libqt4-mendeley-svg{p}
> > libqt4-mendeley-webkit{p} libqt4-mendeley-xml{p}
> > libqt4-mendeley-xmlpatterns{p} libqtcore4-mendeley{p}
> > libqtgui4-mendeley{p} linux-headers-2.6.32-23{p}
> > linux-headers-2.6.32-23-generic{p} linux-image-2.6.32-23-generic{p}
> > mendeleydesktop{p} qt4-mendeley-qtconfig{p}
> 
> mendeley was installed through apt-get
> 
> > 1 packages upgraded, 9 newly installed, 18 to remove and 13 not upgraded.
> > Need to get 11.9MB/16.5MB of archives. After unpacking 280MB will be
> > freed. The following packages have unmet dependencies:
> >   openjdk-6-jdk: Depends: openjdk-6-jre (>= 6b18-1.8-4ubuntu3) but
> > 6b18-1.8-0ubuntu1 is installed and it is kept back. The following actions
> > will resolve these dependencies:
> >
> > Keep the following packages at their current version:
> > openjdk-6-jdk [6b18-1.8-0ubuntu1 (lucid, now)]
> >
> > Score is 60
> >
> > Accept this solution? [Y/n/q/?] ^C
> 
> So, the solution is absolutely wrong for me. but how to fix the wrong
>  package state information in aptitude? Or
> It is not safe to use both aptitude and apt-get, right?
> 
> > xiang at xiang-laptop:~$ sudo apt-get -f install
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > 0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
> 

Have you tried : dpkg --configure all It may help
& AFA your question goes, I generally prefer aptitude and don't mix it with apt-get

-- 
d*_*b &ru Chelladurai




More information about the ubuntu-users mailing list