How to fix a broken package

Asked by ejt

Dpkg error processing /var/cache/apt/archives/kdebase_runtime_4%3a4:4.2.2-0ubuntu1.1_i386.deb (--unpack)
trying to overwrite 'usr/lib/kde4/libexec/kdesu'
using kubuntu 9.04
I was just updating packages using synaptic, now I can't update until I fix this broken dependency. I have tried to force overwrite but that didn't work.

Question information

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

You have found a bug. You can get yourself righted with:

sudo dpkg --force-all -i /var/cache/apt/archives/kdebase_runtime_4%3a4:4.2.2-0ubuntu1.1_i386.deb; sudo apt-get -f install

Please log a bug with kdebase_runtime for the conflicting file.

Revision history for this message
ejt (sytes) said :
#2

I'm afraid that didn't help. Here's what happened:

@ed-desktop:~$ sudo dpkg --force-all -i /var/cache/apt/archives/kdebase_runtime_4%3a4:4.2.2-0ubuntu1.1_i386.deb
dpkg: error processing /var/cache/apt/archives/kdebase_runtime_4%3a4:4.2.2-0ubuntu1.1_i386.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/kdebase_runtime_4%3a4:4.2.2-0ubuntu1.1_i386.deb

I do see that the file is there!

Then after sudo apt-get -f install I get:

Preparing to replace kdebase-runtime 4:4.2.2-0ubuntu1 (using .../kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb) ...
Unpacking replacement kdebase-runtime ...
dpkg: error processing /var/cache/apt/archives/kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb (--unpack):
 trying to overwrite `/usr/lib/kde4/libexec/kdesu', which is also in package kdesudo
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/kdebase-runtime_4%3a4.2.2-0ubuntu1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

lets do it the easy way:

cd /var/cache/apt/archives; sudo dpkg --force-all -i ./*.deb; cd; sudo apt-get clean; sudo apt-get -f install

Revision history for this message
ejt (sytes) said :
#4

Thanks for your help but I tried something else and it appears to have worked. I uninstalled kdesudo, did an upgrade and voila, I'm back to normal. Thanks again