Skip to content

Instantly share code, notes, and snippets.

@dz0ny
Created October 4, 2014 14:27
Show Gist options
  • Save dz0ny/b9e3fce83d0c52e16857 to your computer and use it in GitHub Desktop.
Save dz0ny/b9e3fce83d0c52e16857 to your computer and use it in GitHub Desktop.
fix for fglrx-amdcccle depends on libc6-amd64 (>= 2.3). and fglrx depends on libc6-amd64 (>= 2.3). under ubuntu trusty
#!/bin/sh
mkdir -p driver
mkdir -p cc
dpkg-deb -R fglrx_14.301-0ubuntu1_amd64.deb driver
dpkg-deb -R fglrx-amdcccle_14.301-0ubuntu1_amd64.deb cc
sed -i "s/libc6-amd64/libc6:amd64/" driver/DEBIAN/control
sed -i "s/libc6-amd64/libc6:amd64/" cc/DEBIAN/control
dpkg-deb -b driver fglrx_14.301-0ubuntu1_amd64_fix.deb
dpkg-deb -b cc fglrx-amdcccle_14.301-0ubuntu1_amd64_fix.deb
rm -rf driver
rm -rf cc
sudo dpkg -i fglrx_14.301-0ubuntu1_amd64_fix.deb
sudo dpkg -i fglrx-amdcccle_14.301-0ubuntu1_amd64_fix.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment