aptitude is sooo strict SOLVED

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

aptitude is sooo strict SOLVED

Postby peyrol on Fri Dec 28, 2012 8:20 pm

I like aptitude because it usually makes package installation and upgrade easy, and I feel confident there will be no conflicts or broken dependencies. HOWever, sometimes it presents an obstacle to progress. I recently added several new sources to my sources.list, and as a result I now have 185 packages labeled as upgradable. I have the following options selected WRT dependency handling:

[X] Automatically resolve dependencies of a package when it is selected
[X} Automatically fix broken packages before installing or removing
[X] Install recommended packages automatically
[X] Remove unused packages automatically

I also have this option enabled:

[X] display a preview of what will be done before doing it

So, when I press g to upgrade the upgradable packages, I see a list of packages, but none of them are selected for upgrade. Instead I see a list of 61 packages being automatically held in their current state, and 124 packages being held back. For example, first on the list of packages being held back is apt 0.9.7.6 prevented from upgrading to 0.9.7.7. When I select apt on this list and press Enter, it gives me the reason that apt 0.9.7.7 would require libapt-pkg4.12 version >= 0.9.7.7. but when I examine the list of 61 packages being automatically held back, lo and behold there is libapt-pkg4.12 version 0.9.7.6 prevented from upgrading to 0.9.7.7 which is available.

But but, I say, why not just upgrade both? My real question is, is there a relatively easy way to upgrade these packages within aptitude? I suppose I could do the upgrade with apt and then run the command aptitude keep-all, but that seems kind of kludgy. Thanks in advance.

Oh and BTW here is my new sources.list:
Code: Select all
deb [arch=amd64,i386]  http://packages.linuxmint.com/ debian main upstream import
deb [arch=amd64,i386]  http://debian.linuxmint.com/latest testing main contrib non-free
deb [arch=amd64,i386]  http://debian.linuxmint.com/latest/security testing/updates main contrib non-free
deb [arch=amd64,i386]  http://debian.linuxmint.com/latest/multimedia testing main non-free
deb [arch=amd64,i386]  http://ftp.debian.org/debian/ testing main contrib non-free
deb [arch=amd64,i386]  http://security.debian.org/ testing/updates main contrib non-free
deb [arch=amd64,i386]  http://www.deb-multimedia.org/ testing main non-free

deb-src [arch=amd64,i386]  http://ftp.debian.org/debian/ testing main contrib non-free
deb-src [arch=amd64,i386]  http://security.debian.org/ testing/updates main contrib non-free
deb-src [arch=amd64,i386]  http://www.deb-multimedia.org/ testing main non-free

# Liquorix sources added by smxi
deb http://liquorix.net/debian/ sid main


EDIT: I just manually set the packages to upgrade, one at a time, starting with the automatic hold backs. On the few occasions that aptitude flagged an error, it found a resolution by upgrading instead of deleting or holding back. SO in this case, aptitude was not as strict as I thought.
peyrol
Level 2
Level 2
 
Posts: 56
Joined: Sun Nov 25, 2012 1:51 am

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 10 guests