Can't install xfce4 - Conflict between xfce4-session and trisquel-desktop-common-data

Category:bug report
Status:patch (needs review)

Packages xfce4-session and trisquel-desktop-common-data can't be installed together because both contain file /etc/xdg/autostart/xscreensaver.desktop . This means xfce4 can't be installed, since it depends on xfce4-session, if trisquel-desktop-common-data is installed (and it is by default).

Further, if installed, trisquel-desktop-common-data can't be removed. See issue #7610: Can not remove package trisquel-desktop-common-data.

Wed, 11/05/2014 - 18:50

Here is a script I made as a quick fix for users who want to use xfce4 before the issue is resolved: xfce-fix-7.txt

You can execute this in a terminal to download the script and run it:

wget && chmod +x xfce-fix-7.txt && ./xfce-fix-7.txt

Edit: If the script fails, remove xfce4 and xfce4-session and try again.

Tue, 11/11/2014 - 19:32

Thank you very much for this fix. I can now use XFCE desktop in Trisquel 7.

However your command line didn't work at first time, though I had removed xfce4 and xfce4-session packages.

Indeed, I had to install the fakeroot package first.

Tue, 01/27/2015 - 00:32

Since in Trisquel 7 package trisquel (also recursively) doesn't depend on or recommend xscreensaver, to fix this bug, just remove /etc/xdg/autostart/xscreensaver.desktop from trisquel-desktop-common-data.

Mon, 05/11/2015 - 13:23
Status:active» closed

Fixed in Trisquel 7.0.

Mon, 01/18/2016 - 01:04
Status:closed» patch (needs review)

This is not (completely) fixed in 7.0. From a fresh install, I just found:

Preparing to unpack .../xfce4-session_4.10.1-3ubuntu5_amd64.deb ...
Unpacking xfce4-session (4.10.1-3ubuntu5) ...
dpkg: error processing archive /var/cache/apt/archives/xfce4-session_4.10.1-3ubuntu5_amd64.deb (--unpack):
trying to overwrite '/etc/xdg/autostart/xscreensaver.desktop', which is also in package trisquel-desktop-common-data 7.0-15

EDIT - nevermind, it is fixed but not in the download media.

I just needed an "aptitude update" and "aptitude full-upgrade" to get the install to work correctly. xfce4-session version is still the exactly same, but I'm guessing trisquel-desktop-common-data was fixed in the upgrade.
(It seems I can't re-close the issue now sorry.)

Mon, 02/29/2016 - 13:44

Hi, when you install Trisquel first, you will have this issue, when you install xfce before full system/packages update. Worked fine for me, first update all packages and then install xfce4.