I tried to install Jupyter Notebook from here but sadly get this error.
how to fix it?
Do you want to continue? [Y/n] y
Setting up linux-image-4.15.0-65-generic (4.15.0-65.74~16.04.1) ...
Processing triggers for linux-image-4.15.0-65-generic (4.15.0-65.74~16.04.1) ...
/etc/kernel/postinst.d/apt-auto-removal:
Traceback (most recent call last):
File "/usr/local/bin/sort", line 6, in <module>
from sort import cli
File "/usr/local/lib/python2.7/dist-packages/sort.py", line 3
print('This is suroegin's package - sort')
^
SyntaxError: invalid syntax
run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 1
dpkg: error processing package linux-image-4.15.0-65-generic (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-4.15.0-65-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
I already uesd:
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade