LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   apt-get update problem (https://www.linuxquestions.org/questions/debian-26/apt-get-update-problem-452602/)

microsoft/linux 06-07-2006 09:18 PM

apt-get update problem
 
I tried to upgrade my KDE install, and it broke it. I can't get KDE to happen anymore. When I try to run apt-get update; apt-get dist-upgrade, I get the error
Code:

dpkg: error processing /var/cache/apt/archives/x11-common_1%3a7.0.20_i386.deb (--unpack): trying to overwrite '/usr/X11R6/bin', which is also in package opera
Errors encountered while processing: /var/cache/apt/archives/x11-common_1%3a7.0.20_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried to fix it a couple of times, and sometimes I get errors about that package not being authentic. I'm getting them from the debian repos. Suggestions?

docalton 06-07-2006 09:39 PM

I had problems like that, I believe that I fixed it by cleaning up the cached updates. Of course, if your on a slow modem that might suck having to start over. But the command: apt-get clean
will clean up your downloads of previous updates and partial downloads. Perhaps a corrupt download? I don't remember exactly. I suppose I should document these types of things. :-(

As for the authenticity warnings, it sounds like gnupg isnt installed. Or perhaps the keys have expired and you need to put the latest keys on the keyring. The command: apt-keys list
will list all the keys on that keyring and tell you which are expired. It will complain if gnupg isn't installed and will give you a hint.

Hope this helps

microsoft/linux 06-07-2006 11:14 PM

I've got gnupg, I'll look into the expiration of it. I've cleaned the cache a couple of times.

craigevil 06-08-2006 12:04 AM

Uninstall Opera then run it again. Opera has been causing problems lately. There are a couple other threads with the same problems.

microsoft/linux 06-08-2006 12:07 AM

it won't let me uninstall opera. I tried that, and it kept giving me a similar error, about how packages were broken. I've tried everything I can think of. Is there a way to force dpkg to uninstall a package?

microsoft/linux 06-08-2006 05:53 PM

I'm not exactly sure what I did to fix it. I did the
Code:

apt-key update
and that did a little bit. Then I ran deselect, and hit the "remove" option. It deleted a bunch of stuff. I had to go back and reinstall the xserver, and KDE. But it's now working, so all is good. Thanks for your help

Cataract 06-09-2006 07:17 AM

you can also try the command
Code:

dpkg --force-overwrite -i /var/cache/apt/archives/x11-common_1%3a7.0.20_i386.deb


All times are GMT -5. The time now is 02:55 AM.