PDA

View Full Version : Apt-Get Dependency Problem



hal8000
01-11-2007, 11:07 PM
Fresh install of Knoppix 5.0 , I used apt-get update to update source lists then
apt-get install kde and also
apt-get install openoffice.org

which failed to install.
If I use apt-get -f install (output is below)

root@orac:/home/anc# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
bsh openoffice.org-common
Suggested packages:
bsh-doc
Recommended packages:
xlibs openoffice.org-style-industrial openoffice.org-style-crystal
openoffice.org-style-hicontrast
The following NEW packages will be installed:
bsh openoffice.org-common
0 upgraded, 2 newly installed, 0 to remove and 745 not upgraded.
58 not fully installed or removed.
Need to get 0B/27.4MB of archives.
After unpacking 55.0MB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 127676 files and directories currently installed.)
Unpacking openoffice.org-common (from .../openoffice.org-common_2.0.4.dfsg.2-2_all.deb) ...
dpkg: error processing /var/cache/apt/archives/openoffice.org-common_2.0.4.dfsg.2-2_all.deb (--unpack):
trying to overwrite `/usr/bin/openoffice', which is also in package openoffice-de-en
Unpacking bsh (from .../archives/bsh_2.0b4-4_all.deb) ...
dpkg: error processing /var/cache/apt/archives/bsh_2.0b4-4_all.deb (--unpack):
trying to overwrite `/usr/share/man/man1/bsh.1.gz', which is also in package ash-knoppix-26
Errors were encountered while processing:
/var/cache/apt/archives/openoffice.org-common_2.0.4.dfsg.2-2_all.deb
/var/cache/apt/archives/bsh_2.0b4-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


How can I resolve this? Thanks in advance.

onemyndseye
01-12-2007, 07:32 AM
" trying to overwrite `/usr/share/man/man1/bsh.1.gz', which is also in package ash-knoppix-26 "

There is your clue :)... and for this situation the only one apt is going to give ya ..


resolve by removing the package ash-knoppix-26.. It isnt needed in a HD install anyway.

with:
[code]

dpkg -r ash-knoppix-26

[code]

Then you can finish your upgrade. ... If your goes like mine last couple there will be another package or 2 youll have to get around this way. Even if it ends up being something you need... go ahead and remove it - You can always reinstall it once your upgrade is done.


Take Care,
-Justin
One Mynds Eye

hal8000
01-12-2007, 04:31 PM
" trying to overwrite `/usr/share/man/man1/bsh.1.gz', which is also in package ash-knoppix-26 "

There is your clue :)... and for this situation the only one apt is going to give ya ..


resolve by removing the package ash-knoppix-26.. It isnt needed in a HD install anyway.

with:
[code]

dpkg -r ash-knoppix-26

[code]

Then you can finish your upgrade. ... If your goes like mine last couple there will be another package or 2 youll have to get around this way. Even if it ends up being something you need... go ahead and remove it - You can always reinstall it once your upgrade is done.


Take Care,
-Justin
One Mynds Eye


Thanks Justin, that took care of it.
I also had to remove dpkg -r openoffice-de-en

and then run apt-get -f install which has took acre of things for me. Thanks a lot.

onemyndseye
01-16-2007, 07:02 AM
Most welcome :)