[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help- desktop-base - dpkg-divert - mismatch on package when removing diversion of gnome-splash.png



Hereon wrote:
dpkg-divert: mismatch on package when removing `diversion of
/usr/share/pixmaps/splash/gnome-splash.png


Hi - How can I fix this?

[...]

:/etc/apt# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  desktop-base gnome-applets-data gstreamer0.8-oss libgtop2-2
Suggested packages:
  gnome kde wmaker
The following packages will be REMOVED:
  libgtop2
The following NEW packages will be installed:
  gnome-applets-data gstreamer0.8-oss libgtop2-2
The following packages will be upgraded:
  desktop-base
1 upgraded, 3 newly installed, 1 to remove and 455 not upgraded.
175 not fully installed or removed.
Need to get 0B/8210kB of archives.
After unpacking 30.3MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 61949 files and directories currently installed.)

Preparing to replace desktop-base 0.3.6 (using
.../desktop-base_0.3.15_all.deb) ...
dpkg-divert: mismatch on package
  when removing `diversion of /usr/share/pixmaps/splash/gnome-splash.png
  to /usr/share/pixmaps/splash/gnome-splash.png.orig by desktop-base'
  found `local diversion of /usr/share/pixmaps/splash/gnome-splash.png
  to /usr/share/pixmaps/splash/gnome-splash.png.orig'
dpkg: error processing
/var/cache/apt/archives/desktop-base_0.3.15_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/desktop-base_0.3.15_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I think you could try to remove the problematic package with dpkg (as root):

dpkg -r desktop-base

If that works you can issue the "apt-get -f install" command again. I
think apt might even notice that it has to reinstall the newer version
of the desktop-base package to satisfy dependencies. If that is not the
case do it yourself: "apt-get install desktop-base".

As far as I understand the problem with the diversions during upgrades,
it has something to do with the fact that the post/pre-rm scripts which
remove the created diversions are not (fully) run during an upgrade. I
hope that explicitly removing the package with dpkg will run the
post/pre-rm scripts and create a clean slate for the installation of the
newer version.

If the dpkg command given above also fails, then you can try to be more
insistent with the "force-all" option:

dpkg --force-all -r desktop-base

Regards,
            Florian



Reply to: