There isn't a problem with the "apt-get upgrade -y" command, because as i wrote in the original post, If i run that exact same command on the machine it works just fine.
Here's the output of the "apt-get upgrade -y; echo $?" root@agent3:~# apt-get upgrade -y; echo $? Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: ca-certificates capplets-data checkbox checkbox-gtk dbus dbus-x11 dhcp3-client dhcp3-common firefox firefox-branding firefox-gnome-support foomatic-filters gnome-control-center libdbus-1-3 libgnome-window-settings1 libgtk-vnc-1.0-0 libnss3-1d libpng12-0 librsvg2-2 librsvg2-common libsmbclient libsndfile1 libsoup-gnome2.4-1 libsoup2.4-1 libwbclient0 libwebkit-1.0-2 libwebkit-1.0-common libxfont1 linux-headers-2.6.32-33 linux-headers-2.6.32-33-generic linux-image-2.6.32-33-generic linux-libc-dev samba-common samba-common-bin smbclient xulrunner-1.9.2 36 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/92.7MB of archives. After this operation, 45.1kB of additional disk space will be used. Extracting templates from packages: 100% Preconfiguring packages ... --output omitted-- Processing triggers for libc-bin ... ldconfig deferred processing now taking place 0 The 0 in the end is the apt-get return, and it means that there were no errors. But if i run the exact same command through puppet it returns "100" which is apt-get's error code -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/efCy34kA-m8J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.