Package: ucf Version: 3.0030 Severity: important Dear Maintainer,
If /root/.bashrc has GREP_OPTIONS='-n' (show line numbers, thanks colleagues) ucf corrupts hashfiles and registry files by adding line numbers before md5: root@server:~# GREP_OPTIONS='-n' ucf --debug --verbose /usr/share/php5/php.ini-production.cli /etc/php5/cli/php.ini : The new file is /usr/share/php5/php.ini-production.cli : The Destination file is /etc/php5/cli/php.ini : The Source directory is /usr/share/php5 : The State directory is /var/lib/ucf The hash file exists egrep [[:space:]]\/etc\/php5\/cli\/php\.ini$ /var/lib/ucf/hashfile 47:8f6438bb20d0f9753a2b77c172b7077f /etc/php5/cli/php.ini The new start file is `/usr/share/php5/php.ini-production.cli\' The destination is `/etc/php5/cli/php.ini\' (`\/etc\/php5\/cli\/php\.ini\') The history is kept under \'/usr/share/php5\' The file may be cached at \'/var/lib/ucf/cache/:etc:php5:cli:php.ini\' The destination file exists, and has md5sum: 8f6438bb20d0f9753a2b77c172b7077f /etc/php5/cli/php.ini The old md5sum exists, and is: 47:8f6438bb20d0f9753a2b77c172b7077f The new file exists, and has md5sum: 8f6438bb20d0f9753a2b77c172b7077f /usr/share/php5/php.ini-production.cli Historical md5sums are not available : The new file is /usr/share/php5/php.ini-production.cli : The Destination file is /etc/php5/cli/php.ini : The Source directory is /usr/share/php5 : The State directory is /var/lib/ucf The hash file exists egrep [[:space:]]\/etc\/php5\/cli\/php\.ini$ /var/lib/ucf/hashfile 47:8f6438bb20d0f9753a2b77c172b7077f /etc/php5/cli/php.ini I think it's a really serious issue as I took me a while to figure out why the file were corrupted everytime I installed a package that uses ucf. Here is a quick sed snippet to fix your files when testing: sed -i 's!^[0-9:]\+:!!' /var/lib/ucf/hashfile sed -i 's!^[0-9:]\+:!!' /var/lib/ucf/registry Regards, Adam. -- System Information: Debian Release: 8.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages ucf depends on: ii coreutils 8.23-4 ii debconf 1.5.56 ucf recommends no packages. ucf suggests no packages. -- debconf information excluded