Package: dpkg Version: 1.15.8.11 Severity: normal Hi
The following situation causes a problem with version of update-alternatives in Squeeze, which worked in Lenny. Prerequisites: We have diskless Clients with read-only /usr and writable /etc. In /usr/lib there are packages installing /usr/lib/nvidia-280.13 and /usr/lib/nvidia-173.14.30 directories. Furthermore a symlink /usr/lib/nvidia to /etc/alternatives/nvidia Via the alternatives system now we choose where to point /etc/alternatives/nvdia: either to /usr/lib/nvidia-173.14.30 or /usr/lib/nvidia-280.13. With the Lenny Version of update-alternatives updating the alternative works fine even if /usr is mounted read-only. In Squeeze this now causes update-alternatives to fail with: # update-alternatives --list nvidia /usr/lib/nvidia-173.14.30 /usr/lib/nvidia-280.13 # ls -ld /usr/lib/nvidia* lrwxrwxrwx 1 root root 24 Aug 4 18:20 /usr/lib/nvidia -> /etc/alternatives/nvidia drwxr-xr-x 6 root root 512 Aug 4 16:38 /usr/lib/nvidia-173.14.30 drwxr-xr-x 6 root root 512 Aug 4 16:40 /usr/lib/nvidia-280.13 # ls -l /etc/alternatives/nvidia lrwxrwxrwx 1 root root 22 Aug 5 11:12 /etc/alternatives/nvidia -> /usr/lib/nvidia-280.13 # update-alternatives --set nvidia /usr/lib/nvidia-173.14.30 update-alternatives: using /usr/lib/nvidia-173.14.30 to provide /usr/lib/nvidia (nvidia) in manual mode. update-alternatives: error: unable to remove /usr/lib/nvidia.dpkg-tmp: Read-only file system [11:31] < buxy> but in general --set might have to remove some of the installed symlinks if the slaves are not provided by the new choice [11:31] < buxy> and also the new version tends to fix the symlinks on the fly when needed [11:37] < buxy> carnil: feel free to open a bug report suggesting that it would be nice to not update symlinks when they are already correct Indeed in the above setup, /usr/lib/nvidia does not have to be touched, as it is already correctly pointing to /etc/alternatives/nvidia. It would thus be nice, to not update symlinks in this case, when they are already correct. Regards Salvatore -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org