Comment 20 for bug 1376587

per terje (perterje22) wrote :

Hi, heres a workaround
Download driver and --buildpkg for your dist.

From a directory with the package,

fglrx-updates-core_14.201-0ubuntu2_amd64.deb

1) make a place to unpack the package,

mkdir tmp

2) Unpack the package with two commands,

dpkg -x fglrx-updates-core_14.201-0ubuntu2_amd64.deb tmp

dpkg --control fglrx-updates-core_14.201-0ubuntu2_amd64.deb tmp/DEBIAN

3) edit the text file "control" that has the dependencies,

nano tmp/DEBIAN/control

Remove libopencl1 from provides and conflics. It should look like this:

Package: fglrx-updates-core
Source: fglrx-installer-updates
Version: 2:14.201-0ubuntu2.1
Architecture: amd64
Maintainer: Ubuntu Core Developers <email address hidden>
Installed-Size: 121292
Depends: libc6 (>= 2.3.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), lib32gcc1, libc6-i386, dkms, make, linux-libc-dev
Conflicts: fglrx-driver-core
Replaces: fglrx-driver-core, libopencl1
Provides: fglrx-driver-core
Section: restricted/misc
Priority: extra
Homepage: http://support.amd.com
Description: Minimal video driver for the AMD graphics accelerators
Minimal video driver for the AMD Radeon and FireGL graphics accelerators.
.
This package provides 2D display drivers.

Only Version, Conflicts and Provides are changed. Leaving the version unchanged is OK, but then the package manager will say the original file in the repo is an update, something you want to be sure NOT to do.

Save, and exit nano.

4) put the results back into a package of some different name,

dpkg -b tmp fglrx-updates-core_14.201-0ubuntu2_amd64-FIXED.deb

5) install,

sudo dpkg -i fglrx-updates-core_14.201-0ubuntu2_amd64-FIXED.deb

still cant compile wine tho ^^