Hi,<br><br>I made a custom package to customize the Gnome2 menus. When I install the package I get the warning: <br> trying to overwrite '/etc/xdg/menus/applications.menu', which is also in package gnome-menus 0:2.30.0-0ubuntu4<br>
<br>To fix this I was looking into dpkg-divert, but it didn't became clear to me how this actually works and how I should use it.<br><br>The existing applications.menu file (gnome-menu package) should be renamed to something like applications.menu_bak right?<br>
<br>This is what I have in the preinst file right now:<br><br>dpkg-divert --divert /etc/xdg/menus/applications.menu_gnome --rename /etc/xdg/menus/applications.menu<br><br>But it gives:<br><br>(Reading database ... 141750 files and directories currently installed.)<br>
Unpacking openstudiomenu (from .../openstudiomenu_0.1-1ubuntu1_i386.deb) ...<br>Adding `local diversion of /etc/xdg/menus/applications.menu to /etc/xdg/menus/applications.menu_gnome'<br>dpkg: error processing /tmp/openstudiomenu_0.1-1ubuntu1_i386.deb (--install):<br>
 trying to overwrite '/etc/xdg/menus/applications.menu', which is also in package gnome-menus 0:2.30.0-0ubuntu4<br>Removing `local diversion of /etc/xdg/menus/applications.menu to /etc/xdg/menus/applications.menu_gnome'<br>
Processing triggers for desktop-file-utils ...<br>Processing triggers for python-gmenu ...<br>Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...<br>Processing triggers for python-support ...<br>Errors were encountered while processing:<br>
 /tmp/openstudiomenu_0.1-1ubuntu1_i386.deb<br><br><br>Another thing I would like to know is how to make upgrades to new versions of the package run ok?<br><br>Thanks in advance,<br><br>\r<br><br>