sudo: unable to resolve host DESKTOP-OPTN927
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
os-prober
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
apport cloud-init
Suggested packages:
apport-gtk apport-kde
The following packages will be upgraded:
apport cloud-init
Preconfiguring packages ...
2 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
44 not fully installed or removed.
Need to get 0 B/391 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
(Reading database ... 40340 files and directories currently installed.)
Preparing to unpack .../apport_2.14.1-0ubuntu3.21_all.deb ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
runlevel:/var/run/utmp: No such file or directory
invoke-rc.d: policy-rc.d denied execution of stop.
/usr/bin/pyclean: 24: /usr/bin/pyclean: import: not found
/usr/bin/pyclean: 25: /usr/bin/pyclean: import: not found
/usr/bin/pyclean: 26: /usr/bin/pyclean: import: not found
from: can't read /var/mail/os
from: can't read /var/mail/os.path
/usr/bin/pyclean: 29: /usr/bin/pyclean: Syntax error: word unexpected (expecting ")")
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg: trying script from the new package instead ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
runlevel:/var/run/utmp: No such file or directory
invoke-rc.d: policy-rc.d denied execution of stop.
/usr/bin/pyclean: 24: /usr/bin/pyclean: import: not found
/usr/bin/pyclean: 25: /usr/bin/pyclean: import: not found
/usr/bin/pyclean: 26: /usr/bin/pyclean: import: not found
from: can't read /var/mail/os
from: can't read /var/mail/os.path
/usr/bin/pyclean: 29: /usr/bin/pyclean: Syntax error: word unexpected (expecting ")")
dpkg: error processing archive /var/cache/apt/archives/apport_2.14.1-0ubuntu3.21_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 2
from: can't read /var/mail/__future__
/usr/bin/pycompile: 26: /usr/bin/pycompile: import: not found
/usr/bin/pycompile: 27: /usr/bin/pycompile: import: not found
/usr/bin/pycompile: 28: /usr/bin/pycompile: import: not found
/usr/bin/pycompile: 29: /usr/bin/pycompile: import: not found
from: can't read /var/mail/os
from: can't read /var/mail/os.path
from: can't read /var/mail/subprocess
/usr/bin/pycompile: 33: /usr/bin/pycompile: Syntax error: word unexpected (expecting ")")
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Preparing to unpack .../cloud-init_0.7.5-0ubuntu1.19_all.deb ...
/usr/bin/pyclean: 24: /usr/bin/pyclean: import: not found
/usr/bin/pyclean: 25: /usr/bin/pyclean: import: not found
/usr/bin/pyclean: 26: /usr/bin/pyclean: import: not found
from: can't read /var/mail/os
from: can't read /var/mail/os.path
/usr/bin/pyclean: 29: /usr/bin/pyclean: Syntax error: word unexpected (expecting ")")
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg: trying script from the new package instead ...
/usr/bin/pyclean: 24: /usr/bin/pyclean: import: not found
/usr/bin/pyclean: 25: /usr/bin/pyclean: import: not found
/usr/bin/pyclean: 26: /usr/bin/pyclean: import: not found
from: can't read /var/mail/os
from: can't read /var/mail/os.path
/usr/bin/pyclean: 29: /usr/bin/pyclean: Syntax error: word unexpected (expecting ")")
dpkg: error processing archive /var/cache/apt/archives/cloud-init_0.7.5-0ubuntu1.19_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 2
from: can't read /var/mail/__future__
/usr/bin/pycompile: 26: /usr/bin/pycompile: import: not found
/usr/bin/pycompile: 27: /usr/bin/pycompile: import: not found
/usr/bin/pycompile: 28: /usr/bin/pycompile: import: not found
/usr/bin/pycompile: 29: /usr/bin/pycompile: import: not found
from: can't read /var/mail/os
from: can't read /var/mail/os.path
from: can't read /var/mail/subprocess
/usr/bin/pycompile: 33: /usr/bin/pycompile: Syntax error: word unexpected (expecting ")")
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.14.1-0ubuntu3.21_all.deb
/var/cache/apt/archives/cloud-init_0.7.5-0ubuntu1.19_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)