apt-get problems


Recommended Posts

I've had some trouble with apt-get recently. Sometimes if I remove all of Gnome or KDE and then reinstall it without a component like KOffice then I can get the system back to normal. If I don't apt-get will no longer function as it complains about broken dependencies.

Unpacking hicolor-icon-theme (from .../hicolor-icon-theme_0.4-2_all.deb) ...

dpkg: error processing /var/cache/apt/archives/hicolor-icon-theme_0.4-2_all.deb (--install):

trying to overwrite `/usr/share/icons/hicolor/index.theme', which is also in package kdelibs-data

Errors were encountered while processing:

/var/cache/apt/archives/hicolor-icon-theme_0.4-2_all.deb

So I got a little sick and tired of all this and I got out the big guns.
dpkg -i --force-overwrite /var/cache/apt/archives/hicolor-icon-theme_0.4-2_all.deb

(Reading database ... 175747 files and directories currently installed.)

Unpacking hicolor-icon-theme (from .../hicolor-icon-theme_0.4-2_all.deb) ...

dpkg - warning, overriding problem because --force enabled:

trying to overwrite `/usr/share/icons/hicolor/index.theme', which is also in package kdelibs-data

Setting up hicolor-icon-theme (0.4-2) ...

I have no idea what this will do for my system stability but at least apt-get works properly again.

Link to comment
Share on other sites

This is exactly the problem I had running Debian Sid, after about 6 months several package conflicts arose, particularly around KDE as several componants have changed recently (been merged I think) but I suppose that's bound to happen as Sid really is bleeding edge, and the packages aren't as well tested as with Sarge. As far as staility goes I can't see a problem with the file you've overwritten, just hope you kept a backup in case.

If you don't want to get any problems like this try Sarge, although the software is quite out of date. If you don't want the install process (which is quite easy anyway IMO) try the new Sarge installer, it worked well on my test system and as Sarge is soon to become stable it's gone a long way recently.

Link to comment
Share on other sites

This is exactly the problem I had running Debian Sid, after about 6 months several package conflicts arose, particularly around KDE as several componants have changed recently (been merged I think) but I suppose that's bound to happen as Sid really is bleeding edge, and the packages aren't as well tested as with Sarge. As far as staility goes I can't see a problem with the file you've overwritten, just hope you kept a backup in case.

If you don't want to get any problems like this try Sarge, although the software is quite out of date.

Um, what's this "backup" thing you speak of? :D

Well see how it goes. I've gotten around other apt-get issues by doing some major removing and reinstalling but that takes time and effort. If I really wanted to waste time and effort then I'd run Gentoo. :D

I do rather like to be bleeding edge. So i'll have to see what happens. Using dpkg -- force-overwrite seems to be a good quick fix, so I'll just hope it doesn't implode.

My linux box is not a production station. It's a fun / learning thing. I must admit that I still reboot to Windows to get any real work done. :blush:

Link to comment
Share on other sites

Um, what's this "backup" thing you speak of? :D

Well see how it goes.  I've gotten around other apt-get issues by doing some major removing and reinstalling but that takes time and effort.  If I really wanted to waste time and effort then I'd run Gentoo. :D

I do rather like to be bleeding edge.  So i'll have to see what happens.  Using dpkg -- force-overwrite seems to be a good quick fix, so I'll just hope it doesn't implode.

My linux box is not a production station.  It's a fun / learning thing.  I must admit that I still reboot to Windows to get any real work done.  :blush:

All I meant was to make a copy of the `/usr/share/icons/hicolor/index.theme' file before forcing the overwrite, in future I'de do this just in case things go ###### up!

EDIT: also, you can still install experimental packages using Sarge, you just have to add sources to your sources.list and state when fetching the package to get the experimental/testing version, but this can still fry your setup.

Link to comment
Share on other sites

All I meant was to make a copy of the `/usr/share/icons/hicolor/index.theme' file before forcing the overwrite, in future I'de do this just in case things go ###### up!

If I really need to get this file back then I'll "apt-get remove" both Gnome and KDE and then apt-get reinstall them. That's probably what's needed to fix the conflict in the first place. Or I could stop using experimental packages... nah.

So far the system seems fine (after the dpkg --force-overwrite). Mind you, I have yet to try KDE.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.