Preparing to unpack .../libpython3.5_3.5.2-2ubuntu0~16.04.3_amd64.deb ... Unpacking libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.3) over (3.5.2-2ubuntu0~16.04.2) ... Preparing to unpack .../python3.5_3.5.2-2ubuntu0~16.04.3_amd64.deb ... /var/lib/dpkg/info/python3.5.prerm: 8: /var/lib/dpkg/info/python3.5.prerm: awk: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... dpkg: ... it looks like that went OK Unpacking python3.5 (3.5.2-2ubuntu0~16.04.3) over (3.5.2-2ubuntu0~16.04.2) ... Preparing to unpack .../libpython3.5-stdlib_3.5.2-2ubuntu0~16.04.3_amd64.deb ... /var/lib/dpkg/info/libpython3.5-stdlib:amd64.prerm: 8: /var/lib/dpkg/info/libpython3.5-stdlib:amd64.prerm: awk: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... dpkg: ... it looks like that went OK Unpacking libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.3) over (3.5.2-2ubuntu0~16.04.2) ... Preparing to unpack .../python3.5-minimal_3.5.2-2ubuntu0~16.04.3_amd64.deb ... Unpacking python3.5-minimal (3.5.2-2ubuntu0~16.04.3) over (3.5.2-2ubuntu0~16.04.2) ... Preparing to unpack .../libpython3.5-minimal_3.5.2-2ubuntu0~16.04.3_amd64.deb ... /var/lib/dpkg/info/libpython3.5-minimal:amd64.prerm: 8: /var/lib/dpkg/info/libpython3.5-minimal:amd64.prerm: awk: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... dpkg: ... it looks like that went OK Unpacking libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.3) over (3.5.2-2ubuntu0~16.04.2) ... Preparing to unpack .../unattended-upgrades_0.90ubuntu0.8_all.deb ... Unpacking unattended-upgrades (0.90ubuntu0.8) over (0.90ubuntu0.7) ... Processing triggers for libc-bin (2.23-0ubuntu9) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ... Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for systemd (229-4ubuntu19) ... Processing triggers for ureadahead (0.100.0-19) ... ureadahead will be reprofiled on next reboot Setting up initramfs-tools (0.122ubuntu8.8) ... update-initramfs: deferring update (trigger activated) Setting up libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.3) ... Setting up libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.3) ... Setting up libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.3) ... Setting up python3.5-minimal (3.5.2-2ubuntu0~16.04.3) ... Setting up python3.5 (3.5.2-2ubuntu0~16.04.3) ... Setting up unattended-upgrades (0.90ubuntu0.8) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory /usr/bin/ucf: line 567: awk: command not found dpkg: error processing package unattended-upgrades (--configure): subprocess installed post-installation script returned error exit status 127