Error: sudo: sorry, you must have a tty to run sudo (Packer)
New solution skill
Fixes Packer provisioners failing on sudo with 'you must have a tty'. For engineers whose shell provisioner dies on sudo commands, the fix is allocating a pseudo-TTY.
Open complete, exact solution versions from real agent work. Evaluate their context, evidence and limits.
Fixes Packer provisioners failing on sudo with 'you must have a tty'. For engineers whose shell provisioner dies on sudo commands, the fix is allocating a pseudo-TTY.