Subject: aptitude: keeps running forever on nonassisted script Package: aptitude Version: 0.6.1.5-3 Severity: normal
Hi, at work we have quite a few debian stable servers updated daily with this script via cron jobs: #!/bin/bash aptitude update >& /dev/null TMP_FILE="/tmp/remote-update.txt" echo "From: r...@server" > $TMP_FILE echo "To: remotead...@server" >> $TMP_FILE echo "Subject: $(date +%e/%m/%y) $(eval hostname) status" >> $TMP_FILE echo >> $TMP_FILE yes n | LC_ALL=C aptitude -s safe-upgrade | grep -A20 "upgraded.*" | grep -v "continue" >> $TMP_FILE echo >> $TMP_FILE sendmail remotead...@server < $TMP_FILE rm -f $TMP_FILE yes Y | aptitude -d safe-upgrade >& /dev/null Its not a pretty solution but it has worked for years up until now. We're testing some servers with the next stable (that is squeeze) and had pointed their sources.list to squeeze Since then the servers showed a strange behaviour during updates with the prior script. The line: yes Y | aptitude -d safe-upgrade >& /dev/null sometimes keeps running forever, so we have to kill the process, and other times ends as expected. The packages are being downloaded right so we dont know whats exactly doing. Thanks. -- Package-specific info: aptitude 0.6.1.5 compiled at Mar 12 2010 18:48:34 Compiler: g++ 4.4.3 Compiled against: apt version 4.8.0 NCurses version 5.7 libsigc++ version: 2.2.4.2 Ept support enabled. Gtk+ support disabled. Current library versions: NCurses version: ncurses 5.7.20100313 cwidget version: 0.5.16 Apt version: 4.8.0 linux-vdso.so.1 => (0x00007fffeda99000) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org