console freezes as root when executing update script

Bug #299670 reported by HugoHirsch
Affects Status Importance Assigned to Milestone
bash (Ubuntu)

Bug Description

Binary package hint: bash

System is an intrepid with all updates, Amilo XI 2428

In Bash I do execute the following script as root:

root@shoshin:/home/hirsch/Desktop# which emerge
root@shoshin:/home/hirsch/Desktop# cat /root/bin/emerge
echo "Update startet..."
aptitude update && aptitude safe-upgrade
root@shoshin:/home/hirsch/Desktop# ls -al /root/bin/emerge
-rwxr--r-- 1 root root 66 2008-10-18 20:36 /root/bin/emerge

If I switch from graphical interface to a text console, log in as root and run emerge I do not see the "Update startet..." but the console freezes and I need to kill it via htop.

If I check the hanging console with htop no aptitude is started, but a hanging:
 -- /bin/login

Revision history for this message
HugoHirsch (ubuntubugs-aiki-it) wrote :

Workaround is to define an alias in .bashrc
alias emerge="aptitude update && aptitude safe-upgrade"
instead of a script.

This is as slow as before but doesn't kill the console.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.