package fglrx 2:8.861-0ubuntu2 failed to install/upgrade due to missing /usr/lib/dri

Bug #807347 reported by Per-Inge
90
This bug affects 10 people
Affects Status Importance Assigned to Milestone
fglrx-installer (Ubuntu)
Fix Released
High
Alberto Milone
Oneiric
Fix Released
High
Alberto Milone

Bug Description

[Problem]
The /usr/lib/dri directory was not present, so fglrx failed to install. Simply running "sudo mkdir /usr/lib/dri" fixed this problem for me. Installing gstreamer apparently also causes the directory to be created so installing gstreamer first will allow avoiding the problem.

[Original Report]
Tried to install fglrx earlier, but this did not succeed. Rebooted and installed mesa-utils, but this did not succeed either. Got this log in the terminal:
The program 'glxinfo' is currently not installed. You can install it by typing:
sudo apt-get install mesa-utils
p-i@pi-MS-7125-oneiric-alpha2:~$ sudo apt-get install mesa-utils
[sudo] password for p-i:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  mesa-utils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 30.3 kB of archives.
After this operation, 152 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ oneiric/universe mesa-utils amd64 8.0.1+git20110129+d8f7d6b-0ubuntu2 [30.3 kB]
Fetched 30.3 kB in 0s (72.0 kB/s)
Selecting previously deselected package mesa-utils.
(Reading database ... 126439 files and directories currently installed.)
Unpacking mesa-utils (from .../mesa-utils_8.0.1+git20110129+d8f7d6b-0ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Setting up fglrx (2:8.861-0ubuntu2) ...
update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory
dpkg: error processing fglrx (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of fglrx-amdcccle:
 fglrx-amdcccle depends on fglrx; however:
  Package fglrx is not configured yet.
dpkg: error processing fglrx-amdcccle (--configure):
 dependency problems - leaving unconfigured
Setting up mesa-utils (8.0.1+git20110129+d8f7d6b-0ubuntu2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 fglrx
 fglrx-amdcccle
E: Sub-process /usr/bin/dpkg returned an error code (1)
p-i@pi-MS-7125-oneiric-alpha2:~$

ProblemType: Package
DistroRelease: Ubuntu 11.10
Package: fglrx 2:8.861-0ubuntu2
ProcVersionSignature: Ubuntu 3.0-3.4-generic 3.0.0-rc5
Uname: Linux 3.0-3-generic x86_64
AptOrdering:
 mesa-utils: Install
 fglrx: Configure
 fglrx-amdcccle: Configure
 mesa-utils: Configure
Architecture: amd64
Date: Fri Jul 8 06:52:14 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110705.1)
SourcePackage: fglrx-installer
Title: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Per-Inge (per-inge-hallin) wrote :
summary: - package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: subprocess
- installed post-installation script returned error exit status 2
+ package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-
+ alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a
+ symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or
+ directory
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory

confirmed by duplicates.

Changed in fglrx-installer (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
rbrick49 (ronb19495) wrote : Re: [Bug 807347] Re: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory

On 07/09/2011 04:13 PM, Jean-Baptiste Lallement wrote:
> confirmed by duplicates.
>
> ** Changed in: fglrx-installer (Ubuntu)
> Importance: Undecided => High
>
> ** Changed in: fglrx-installer (Ubuntu)
> Status: New => Confirmed
>
I cant give anymore info except jockey has something to do with it on my
system asus amd 64 dual core with 8 gig of ram 4 hard drives sda
fedora15,sdb oneiric alpha2,sdc kubuntu alpa2 sdd natty
regards Ron

Revision history for this message
rbrick49 (ronb19495) wrote : Re: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory

solved i installed gstreamer codecs and fglrx auto installed the same on kubuntu 11.10 all is ok thank folks
regards Ronnie

Changed in fglrx-installer (Ubuntu Oneiric):
assignee: nobody → Canonical X.org (canonical-x)
Revision history for this message
Per-Inge (per-inge-hallin) wrote : Re: [Bug 807347] Re: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory

I actually managed to install fglrx today.
A thread in the oneiric forum adviced to install gstreamer codecs before
installing fglrx. I used Synaptic to install gstreamer0.10-ffmpeg and
then fglrx.
This seems very odd, but fglrx is now working.

On 07/11/2011 02:26 PM, Jean-Baptiste Lallement wrote:
> ** Changed in: fglrx-installer (Ubuntu Oneiric)
> Assignee: (unassigned) => Canonical X.org (canonical-x)
>

Revision history for this message
Robin Munn (rmunn) wrote : Re: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory

I got the same bug on my system that I upgraded from Natty to Oneiric. The cause turned out to be simple: the /usr/lib/dri directory did not exist, and so update-alternatives could not create the /usr/lib/dri/fglrx_dri.so.dpkg-tmp symlink.

Simply running "sudo mkdir /usr/lib/dri" fixed this problem for me.

Revision history for this message
Irwin (iffonseca) wrote : RE: [Bug 807347] Re: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory
Download full text (4.6 KiB)

Thanks a lot your fix worked for me too.

> Date: Mon, 11 Jul 2011 15:10:09 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: Re: [Bug 807347] Re: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory
>
> I actually managed to install fglrx today.
> A thread in the oneiric forum adviced to install gstreamer codecs before
> installing fglrx. I used Synaptic to install gstreamer0.10-ffmpeg and
> then fglrx.
> This seems very odd, but fglrx is now working.
>
> On 07/11/2011 02:26 PM, Jean-Baptiste Lallement wrote:
> > ** Changed in: fglrx-installer (Ubuntu Oneiric)
> > Assignee: (unassigned) => Canonical X.org (canonical-x)
> >
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (808375).
> https://bugs.launchpad.net/bugs/807347
>
> Title:
> package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-
> alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp
> a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such
> file or directory
>
> Status in “fglrx-installer” package in Ubuntu:
> Confirmed
> Status in “fglrx-installer” source package in Oneiric:
> Confirmed
>
> Bug description:
> Tried to install fglrx earlier, but this did not succeed. Rebooted and installed mesa-utils, but this did not succeed either. Got this log in the terminal:
> The program 'glxinfo' is currently not installed. You can install it by typing:
> sudo apt-get install mesa-utils
> p-i@pi-MS-7125-oneiric-alpha2:~$ sudo apt-get install mesa-utils
> [sudo] password for p-i:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following NEW packages will be installed:
> mesa-utils
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> 2 not fully installed or removed.
> Need to get 30.3 kB of archives.
> After this operation, 152 kB of additional disk space will be used.
> Get:1 http://archive.ubuntu.com/ubuntu/ oneiric/universe mesa-utils amd64 8.0.1+git20110129+d8f7d6b-0ubuntu2 [30.3 kB]
> Fetched 30.3 kB in 0s (72.0 kB/s)
> Selecting previously deselected package mesa-utils.
> (Reading database ... 126439 files and directories currently installed.)
> Unpacking mesa-utils (from .../mesa-utils_8.0.1+git20110129+d8f7d6b-0ubuntu2_amd64.deb) ...
> Processing triggers for man-db ...
> Setting up fglrx (2:8.861-0ubuntu2) ...
> update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
> update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory
> dpkg: error processing fglrx (--configure):
> subprocess installed post-installation script returned error exit status 2
> dpkg: dependency problems prevent configuration of fglrx-amdcccle:
> fglrx-amdcccle depends on f...

Read more...

Revision history for this message
Bryce Harrington (bryce) wrote :

@Alberto, assigning to you; it looks like a pretty straightforward packaging bug. Just need to make sure /usr/lib/dri exists.

summary: - package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-
- alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a
- symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or
- directory
+ package fglrx 2:8.861-0ubuntu2 failed to install/upgrade due to missing
+ /usr/lib/dri
description: updated
Changed in fglrx-installer (Ubuntu Oneiric):
assignee: Canonical X.org (canonical-x) → Alberto Milone (albertomilone)
status: Confirmed → Triaged
Changed in fglrx-installer (Ubuntu Oneiric):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fglrx-installer - 2:8.861-0ubuntu3

---------------
fglrx-installer (2:8.861-0ubuntu3) oneiric; urgency=low

  * debian/fglrx.dirs.in:
    - Make sure to create the /usr/lib/dri directory (LP: #807347).
  * debian/fglrx.postrm.in:
    - Do not fail when trying to remove only the files in
      /usr/lib/fglrx (LP: #807092). We don't want to remove the
      /usr/lib/fglrx/etc directory unless we're using --purge
      remove, otherwise user settings will be lost.
  * debian/rules:
    - Make sure that the copyright file is installed after it's
      generated. On some systems this wasn't guaranteed to happen.
      Thanks to Felix Kuehling and Mabel Lee for reporting the
      problem and for debugging the issue on the affected systems.
    - Use the multi-arch path for xorg extra-modules (LP: #807209).
 -- Alberto Milone <email address hidden> Wed, 20 Jul 2011 17:15:31 +0200

Changed in fglrx-installer (Ubuntu Oneiric):
status: In Progress → Fix Released
Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

This seems not fixed yet?

Setting up fglrx (2:8.861-0ubuntu3) ...
update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
update-alternatives: warning: skip creation of /usr/bin/amdcccle because associated file /usr/lib/fglrx/bin/amdcccle (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: warning: skip creation of /usr/bin/amdxdg-su because associated file /usr/lib/fglrx/bin/amdxdg-su (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: warning: skip creation of /usr/bin/amdupdaterandrconfig because associated file /usr/lib/fglrx/bin/amdupdaterandrconfig (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: warning: skip creation of /usr/share/applications/ubuntu-amdcccle.desktop because associated file /usr/share/fglrx/amdcccle.desktop (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: warning: skip creation of /usr/share/applications/ubuntu-amdccclesu.desktop because associated file /usr/share/fglrx/amdccclesu.desktop (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: error: unable to make /usr/lib/xorg/modules/drivers/fglrx_drv.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_drv: No such file or directory
dpkg: error processing fglrx (--configure):
 subprocess installed post-installation script returned error exit status 2

Revision history for this message
Alberto Milone (albertomilone) wrote :

@Jean-Louis
Are you installing the package in a chroot?

Revision history for this message
Jean-Louis Dupond (dupondje) wrote :
Revision history for this message
rbrick49 (ronb19495) wrote : Re: [Bug 807347] Re: package fglrx 2:8.861-0ubuntu2 failed to install/upgrade due to missing /usr/lib/dri
Download full text (4.7 KiB)

On 07/19/2011 06:27 AM, Bryce Harrington wrote:
> @Alberto, assigning to you; it looks like a pretty straightforward
> packaging bug. Just need to make sure /usr/lib/dri exists.
>
> ** Summary changed:
>
> - package fglrx 2:8.861-0ubuntu2 failed to install/upgrade: update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory
> + package fglrx 2:8.861-0ubuntu2 failed to install/upgrade due to missing /usr/lib/dri
>
> ** Description changed:
>
> + [Problem]
> + The /usr/lib/dri directory was not present, so fglrx failed to install. Simply running "sudo mkdir /usr/lib/dri" fixed this problem for me. Installing gstreamer apparently also causes the directory to be created so installing gstreamer first will allow avoiding the problem.
> +
> +
> + [Original Report]
> Tried to install fglrx earlier, but this did not succeed. Rebooted and installed mesa-utils, but this did not succeed either. Got this log in the terminal:
> The program 'glxinfo' is currently not installed. You can install it by typing:
> sudo apt-get install mesa-utils
> p-i@pi-MS-7125-oneiric-alpha2:~$ sudo apt-get install mesa-utils
> - [sudo] password for p-i:
> + [sudo] password for p-i:
> Reading package lists... Done
> - Building dependency tree
> + Building dependency tree
> Reading state information... Done
> The following NEW packages will be installed:
> - mesa-utils
> + mesa-utils
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> 2 not fully installed or removed.
> Need to get 30.3 kB of archives.
> After this operation, 152 kB of additional disk space will be used.
> Get:1 http://archive.ubuntu.com/ubuntu/ oneiric/universe mesa-utils amd64 8.0.1+git20110129+d8f7d6b-0ubuntu2 [30.3 kB]
> - Fetched 30.3 kB in 0s (72.0 kB/s)
> + Fetched 30.3 kB in 0s (72.0 kB/s)
> Selecting previously deselected package mesa-utils.
> (Reading database ... 126439 files and directories currently installed.)
> Unpacking mesa-utils (from .../mesa-utils_8.0.1+git20110129+d8f7d6b-0ubuntu2_amd64.deb) ...
> Processing triggers for man-db ...
> Setting up fglrx (2:8.861-0ubuntu2) ...
> update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
> update-alternatives: error: unable to make /usr/lib/dri/fglrx_dri.so.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_fglrx_dri: No such file or directory
> dpkg: error processing fglrx (--configure):
> - subprocess installed post-installation script returned error exit status 2
> + subprocess installed post-installation script returned error exit status 2
> dpkg: dependency problems prevent configuration of fglrx-amdcccle:
> - fglrx-amdcccle depends on fglrx; however:
> - Package fglrx is not configured yet.
> + fglrx-amdcccle depends on fglrx; however:
> + Package fglrx is not configured yet.
> dpkg: error processing fglrx-amdcccle (--configure):
> - dependency problems - leaving unconfigured
> + dependency problems - leaving unconfigured
> Setting up mesa-utils...

Read more...

Revision history for this message
Alberto Milone (albertomilone) wrote :

@Jean-Louis
fglrx 2:8.861-0ubuntu4 solves the problem here in my pbuilder chroot

Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

Catalyst 11.8 (preview) installer by AMD still generate packages with same problem. Workroundalso still the same: sudo mkdir /usr/lib/dri

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.