Is that the workaround? Code: apt-get update > /dev/null ; echo $?
apt-get update > /dev/null ; echo $?