cant install or uninstall a package

Asked by unixchaos

Package: /var/cache/apt/archives/libboost1.46-dev_1.46.1-5ubuntu2_amd64.deb
Error: trying to overwrite '/usr/include/boost/aligned_storage.hpp', which is also in package libboost1.40-dev 1.40.0-6ubuntu1
                thats the output from muon

now for apt-get -f install
jza873 ~ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libtotem0 gir1.2-totem-1.0 gir1.2-totem-plparser-1.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libboost1.46-dev
Suggested packages:
  libboost1.46-doc libboost-date-time1.46-dev libboost-filesystem1.46-dev
  libboost-graph1.46-dev libboost-iostreams1.46-dev libboost-math1.46-dev
  libboost-program-options1.46-dev libboost-python1.46-dev
  libboost-random1.46-dev libboost-regex1.46-dev
  libboost-serialization1.46-dev libboost-signals1.46-dev
  libboost-system1.46-dev libboost-test1.46-dev libboost-thread1.46-dev
  libboost-wave1.46-dev default-jdk fop
The following NEW packages will be installed:
  libboost1.46-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/7,666 kB of archives.
After this operation, 77.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 365694 files and directories currently installed.)
Unpacking libboost1.46-dev (from .../libboost1.46-dev_1.46.1-5ubuntu2_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libboost1.46-dev_1.46.1-5ubuntu2_amd64.deb (--unpack):
 trying to overwrite '/usr/include/boost/aligned_storage.hpp', which is also in package libboost1.40-dev 1.40.0-6ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libboost1.46-dev_1.46.1-5ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

what happened was muon froze and i killed it and now im trying to install something and it says unmet dependancys do apt-get -f install i do that with no avail. any ways cant fix. aptitude -f install wants me to remove like 800 packages to fix it but in the mist of that it ununstalls ubuntu-desktop and everything else that is important. any help will be appreicated thnx

Question information

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

sudo dpkg --force-all -i /var/cache/apt/archives/libboost1.46-dev_1.46.1-5ubuntu2_amd64.deb; sudo apt-get -f install

Will get things moving. I also suggest you run:

ubuntu-bug libboost1.46-dev

And report the bug, there are overlapping files in the packages and this is not good and the packaging will report it. The command I gave will force the package to be installed but the bug needs resolving.

Revision history for this message
unixchaos (jza873) said :
#2

thanks i appreicate the help i reported the bug too

Revision history for this message
unixchaos (jza873) said :
#3

Thanks actionparsnip, that solved my question.