unmet dependencies and conflicts boost 1.46 versus 1.42 cant remove 1.42

Asked by Tim Coddington

I'm developing C++ app on Ubuntu 11.10, Netbeans, CMake, with boost libraries. Suddenly I started getting
problems with unresolved references within boost includes and believe I've tracked it down to a conflict between and older version of boost.

Synaptic indicates that all of boost*1.42 is not installed, but when I try to do
sudo apt-get install libboost*

I get:

[snip...snip]

The following packages have unmet dependencies:
 libboost-date-time1.46-dev : Conflicts: libboost-date-time1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-filesystem1.46-dev : Conflicts: libboost-filesystem1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-graph1.46-dev : Conflicts: libboost-graph1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-iostreams1.46-dev : Conflicts: libboost-iostreams1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-math1.46-dev : Conflicts: libboost-math1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-program-options1.46-dev : Conflicts: libboost-program-options1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-python1.46-dev : Conflicts: libboost-python1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-regex1.46-dev : Conflicts: libboost-regex1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-serialization1.46-dev : Conflicts: libboost-serialization1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-signals1.46-dev : Conflicts: libboost-signals1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-system1.46-dev : Conflicts: libboost-system1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-test1.46-dev : Conflicts: libboost-test1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-thread1.46-dev : Conflicts: libboost-thread1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost-wave1.46-dev : Conflicts: libboost-wave1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost1.46-dbg : Conflicts: libboost1.42-dbg but 1.42.0-4ubuntu2 is to be installed
 libboost1.46-dev : Conflicts: libboost1.42-dev but 1.42.0-4ubuntu2 is to be installed
 libboost1.46-doc : Conflicts: libboost1.42-doc but 1.42.0-4ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

While trying to figure this out I found:

https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Here's the output as instructed on

tim@RPS-Laptop5:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for tim:
tim@RPS-Laptop5:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
tim@RPS-Laptop5:~$ uname -a
Linux RPS-Laptop5 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 i686 i386 GNU/Linux
tim@RPS-Laptop5:~$ sudo rm /var/lib/apt/lists/lock
tim@RPS-Laptop5:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
tim@RPS-Laptop5:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
tim@RPS-Laptop5:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
tim@RPS-Laptop5:~$ sudo rm -rf /var/lib/dpkg/updates/*
tim@RPS-Laptop5:~$ sudo rm -rf /var/lib/apt/lists
tim@RPS-Laptop5:~$ sudo rm /var/cache/apt/*.bin
tim@RPS-Laptop5:~$ sudo mkdir /var/lib/apt/lists
tim@RPS-Laptop5:~$ sudo mkdir /var/lib/apt/lists/partial
tim@RPS-Laptop5:~$ LANG=C;sudo apt-get clean
tim@RPS-Laptop5:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
tim@RPS-Laptop5:~$ LANG=C;sudo apt-get --purge autoremoveLANG=C;sudo apt-get --purge autoremove^C
tim@RPS-Laptop5:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-3.0.0-12* linux-headers-3.0.0-12-generic-pae*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 98.3 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 311415 files and directories currently installed.)
Removing linux-headers-3.0.0-12-generic-pae ...
Removing linux-headers-3.0.0-12 ...
Setting up libgl1-mesa-dev (7.11-0ubuntu3) ...
tim@RPS-Laptop5:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.ubuntu.com oneiric-security InRelease
Get:1 http://archive.ubuntu.com oneiric Release.gpg [198 B]
Get:2 http://archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com oneiric-security Release.gpg [198 B]
Get:4 http://archive.ubuntu.com oneiric Release [40.8 kB]
Get:5 http://archive.ubuntu.com oneiric-updates Release [32.4 kB]
Get:6 http://archive.ubuntu.com oneiric-security Release [32.4 kB]
Get:7 http://archive.ubuntu.com oneiric/main Sources [877 kB]
Get:8 http://archive.ubuntu.com oneiric/restricted Sources [5351 B]
Get:9 http://archive.ubuntu.com oneiric/universe Sources [4677 kB]
Get:10 http://archive.ubuntu.com oneiric/multiverse Sources [149 kB]
Get:11 http://archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:12 http://archive.ubuntu.com oneiric/restricted i386 Packages [8216 B]
Get:13 http://archive.ubuntu.com oneiric/universe i386 Packages [4468 kB]
Get:14 http://archive.ubuntu.com oneiric/multiverse i386 Packages [119 kB]
Get:15 http://archive.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:16 http://archive.ubuntu.com oneiric/multiverse TranslationIndex [2265 B]
Get:17 http://archive.ubuntu.com oneiric/restricted TranslationIndex [2263 B]
Get:18 http://archive.ubuntu.com oneiric/universe TranslationIndex [2640 B]
Get:19 http://archive.ubuntu.com oneiric-updates/main Sources [110 kB]
Get:20 http://archive.ubuntu.com oneiric-updates/restricted Sources [1337 B]
Get:21 http://archive.ubuntu.com oneiric-updates/universe Sources [32.3 kB]
Get:22 http://archive.ubuntu.com oneiric-updates/multiverse Sources [2415 B]
Get:23 http://archive.ubuntu.com oneiric-updates/main i386 Packages [249 kB]
Get:24 http://archive.ubuntu.com oneiric-updates/restricted i386 Packages [2968 B]
Get:25 http://archive.ubuntu.com oneiric-updates/universe i386 Packages [80.1 kB]
Get:26 http://archive.ubuntu.com oneiric-updates/multiverse i386 Packages [4654 B]
Get:27 http://archive.ubuntu.com oneiric-updates/main TranslationIndex [74 B]
Get:28 http://archive.ubuntu.com oneiric-updates/multiverse TranslationIndex [72 B]
Get:29 http://archive.ubuntu.com oneiric-updates/restricted TranslationIndex [71 B]
Get:30 http://archive.ubuntu.com oneiric-updates/universe TranslationIndex [73 B]
Get:31 http://archive.ubuntu.com oneiric-security/main Sources [22.6 kB]
Get:32 http://archive.ubuntu.com oneiric-security/restricted Sources [14 B]
Get:33 http://archive.ubuntu.com oneiric-security/universe Sources [7484 B]
Get:34 http://archive.ubuntu.com oneiric-security/multiverse Sources [653 B]
Get:35 http://archive.ubuntu.com oneiric-security/main i386 Packages [64.5 kB]
Get:36 http://archive.ubuntu.com oneiric-security/restricted i386 Packages [14 B]
Get:37 http://archive.ubuntu.com oneiric-security/universe i386 Packages [20.7 kB]
Get:38 http://archive.ubuntu.com oneiric-security/multiverse i386 Packages [1653 B]
Get:39 http://archive.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:40 http://archive.ubuntu.com oneiric-security/multiverse TranslationIndex [71 B]
Get:41 http://archive.ubuntu.com oneiric-security/restricted TranslationIndex [70 B]
Get:42 http://archive.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:43 http://archive.ubuntu.com oneiric/main Translation-en [701 kB]
Get:44 http://archive.ubuntu.com oneiric/multiverse Translation-en [92.6 kB]
Get:45 http://archive.ubuntu.com oneiric/restricted Translation-en [2229 B]
Get:46 http://archive.ubuntu.com oneiric/universe Translation-en [3165 kB]
Get:47 http://archive.ubuntu.com oneiric-updates/main Translation-en [116 kB]
Get:48 http://archive.ubuntu.com oneiric-updates/multiverse Translation-en [2665 B]
Get:49 http://archive.ubuntu.com oneiric-updates/restricted Translation-en [508 B]
Get:50 http://archive.ubuntu.com oneiric-updates/universe Translation-en [49.0 kB]
Get:51 http://archive.ubuntu.com oneiric-security/main Translation-en [34.2 kB]
Get:52 http://archive.ubuntu.com oneiric-security/multiverse Translation-en [840 B]
Get:53 http://archive.ubuntu.com oneiric-security/restricted Translation-en [14 B]
Get:54 http://archive.ubuntu.com oneiric-security/universe Translation-en [15.1 kB]
Fetched 16.4 MB in 1min 57s (140 kB/s)
Reading package lists... Done
tim@RPS-Laptop5:~$ sudo dpkg --configure -a
tim@RPS-Laptop5:~$ sudo dpkg --clear-avail
tim@RPS-Laptop5:~$ LANG=C;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 0 not upgraded.
tim@RPS-Laptop5:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tim@RPS-Laptop5:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.ubuntu.com oneiric-security InRelease
Hit http://archive.ubuntu.com oneiric Release.gpg
Hit http://archive.ubuntu.com oneiric-updates Release.gpg
Hit http://archive.ubuntu.com oneiric-security Release.gpg
Hit http://archive.ubuntu.com oneiric Release
Hit http://archive.ubuntu.com oneiric-updates Release
Hit http://archive.ubuntu.com oneiric-security Release
Hit http://archive.ubuntu.com oneiric/main Sources
Hit http://archive.ubuntu.com oneiric/restricted Sources
Hit http://archive.ubuntu.com oneiric/universe Sources
Hit http://archive.ubuntu.com oneiric/multiverse Sources
Hit http://archive.ubuntu.com oneiric/main i386 Packages
Hit http://archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric/universe i386 Packages
Hit http://archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://archive.ubuntu.com oneiric/main TranslationIndex
Hit http://archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/main Sources
Hit http://archive.ubuntu.com oneiric-updates/restricted Sources
Hit http://archive.ubuntu.com oneiric-updates/universe Sources
Hit http://archive.ubuntu.com oneiric-updates/multiverse Sources
Hit http://archive.ubuntu.com oneiric-updates/main i386 Packages
Hit http://archive.ubuntu.com oneiric-updates/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric-updates/universe i386 Packages
Hit http://archive.ubuntu.com oneiric-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com oneiric-updates/main TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/main Sources
Hit http://archive.ubuntu.com oneiric-security/restricted Sources
Hit http://archive.ubuntu.com oneiric-security/universe Sources
Hit http://archive.ubuntu.com oneiric-security/multiverse Sources
Hit http://archive.ubuntu.com oneiric-security/main i386 Packages
Hit http://archive.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric-security/universe i386 Packages
Hit http://archive.ubuntu.com oneiric-security/multiverse i386 Packages
Hit http://archive.ubuntu.com oneiric-security/main TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric/main Translation-en
Hit http://archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric/restricted Translation-en
Hit http://archive.ubuntu.com oneiric/universe Translation-en
Hit http://archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://archive.ubuntu.com oneiric-security/main Translation-en
Hit http://archive.ubuntu.com oneiric-security/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric-security/restricted Translation-en
Hit http://archive.ubuntu.com oneiric-security/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tim@RPS-Laptop5:~$

BTW, I still get same complaint of unmet dependencies and conflicts after running these steps.

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Try installing libboost1.46-all-dev

May just be ok

Can you help with this problem?

Provide an answer of your own, or ask Tim Coddington for more information if necessary.

To post a message you must log in.