User avatar
dasmanul
Posts: 502
Joined: Wed Sep 30, 2015 10:20 am
Location: Frankfurt, Germany

xserver-xorg-legacy not installable?

Wed Dec 21, 2016 11:37 pm

I have an X11 problem I wrote about in another thread. As mentioned there, I guess this might be related to the Xorg server no longer being setuid root, so I tried to install xserver-xorg-legacy as suggested in /usr/share/doc/xserver-xorg-core/NEWS.Debian.gz:
xorg-server (2:1.17.3-1) unstable; urgency=medium

The Xorg server is no longer setuid root by default. This change reduces the
risk of privilege escalation due to X server bugs, but has some side effects:

* it relies on logind and libpam-systemd
* it relies on a kernel video driver (so the userspace component doesn't
touch the hardware directly)
* it needs X to run on the virtual console (VT) it was started from
* it changes the location for storing the Xorg log from /var/log/ to
~/.local/share/xorg/

On systems where those are not available, the new xserver-xorg-legacy package
is needed to allow X to run with elevated privileges. See the
Xwrapper.config(5) manual page for configuration details.
This, however, failed due to dependency reasons:

Code: Select all

$ sudo apt-get install xserver-xorg-legacy
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xserver-xorg-legacy : Depends: xserver-common (>= 2:1.18.4-2+rpi1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I don't understand this since

Code: Select all

$ apt-cache policy xserver-common
xserver-common:
  Installed: 2:1.18.4-2+rpi1
  Candidate: 2:1.18.4-2+rpi1
  Version table:
 *** 2:1.18.4-2+rpi1 0
        500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages
        100 /var/lib/dpkg/status
     2:1.16.4-1 0
        500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
but tried to install xserver-common as well anyway, alas without success:

Code: Select all

$ sudo apt-get install xserver-xorg-legacy xserver-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xserver-common is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xserver-xorg-legacy : Breaks: x11-common (< 1:7.7+10~) but 1:7.7+7 is to be installed
E: Unable to correct problems, you have held broken packages.
and indeed:

Code: Select all

$ apt-cache policy x11-common
x11-common:
  Installed: 1:7.7+7
  Candidate: 1:7.7+7
  Version table:
 *** 1:7.7+7 0
        500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
        100 /var/lib/dpkg/status
So xserver-xorg-legacy seems to depend on a version of x11-common that's not available for Jessie.

Any suggestions how to proceed?

plugwash
Forum Moderator
Forum Moderator
Posts: 3755
Joined: Wed Dec 28, 2011 11:45 pm

Re: xserver-xorg-legacy not installable?

Thu Dec 22, 2016 12:09 am

It looks like the raspberry pi foundation's backporting of the new X server left a bit to be desired :(

try

wget http://snapshot.raspbian.org/2016111804 ... 16_all.deb
dpkg -i x11-common_7.7+16_all.deb

User avatar
dasmanul
Posts: 502
Joined: Wed Sep 30, 2015 10:20 am
Location: Frankfurt, Germany

Re: xserver-xorg-legacy not installable?

Thu Dec 22, 2016 8:04 am

Thanks, that worked. Unfortunately, it did not fix my problem, but that belongs in the other thread.

Is there any place I should file a bug report for this, or is this thread enough?

bnielsen
Posts: 5
Joined: Thu Dec 22, 2016 6:04 pm

Re: xserver-xorg-legacy not installable?

Thu Dec 22, 2016 6:52 pm

I've been hit by this bug as well.

I submitted a bug report...

https://github.com/RPi-Distro/repo/issues/49


When you install the newer x11-common package with dpkg did it create issues with other packages?

I haven't decided yet if I should just wait for the repo to be fixed or if I should do a work around.

User avatar
dasmanul
Posts: 502
Joined: Wed Sep 30, 2015 10:20 am
Location: Frankfurt, Germany

Re: xserver-xorg-legacy not installable?

Fri Dec 23, 2016 6:36 am

I haven't seen any side effects so far, as far as I can tell everything is working as it should.

bnielsen
Posts: 5
Joined: Thu Dec 22, 2016 6:04 pm

Re: xserver-xorg-legacy not installable?

Thu Jan 12, 2017 4:20 pm

Just a quick note, the issue with installing xserver-xorg-legacy has been resolved.

https://github.com/RPi-Distro/repo/issues/49

Return to “Raspberry Pi OS”