Comment 1 for bug 1511301

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

Quoting the original reporter: this issue happens when using the fglrx packages provided by AMD, where the /etc/ati directory is not a symbolic link, but a real directory.

Modifying debian/fglrx.preinst.in can solve this issue:

diff --git a/fglrx.preinst.in b/fglrx.preinst.in
index 50bfd4a..10f4afb 100644
--- a/fglrx.preinst.in
+++ b/fglrx.preinst.in
@@ -91,7 +91,7 @@ case "$1" in
             echo "Moving ati dir to /etc for the fglrx-core transition"
             cp -RL /etc/ati /etc/ati.dpkg-bak 2>/dev/null || true
             # Remove the link
- rm -f /etc/ati 2>/dev/null
+ rm -rf /etc/ati 2>/dev/null
             # Finally move ati into /etc
             mv /etc/ati.dpkg-bak /etc/ati 2>/dev/null || true