apt_pkg.Error: E:Could not configure 'libc6:amd64'. , E:Klarte ikke gjennomføre umiddelbar konfigurasjon av «
libnss-nis:amd64». Se man 5 apt.conf under APT::Immediate-Configure for detaljer. (2)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
block = f.read(1048576)
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Original exception was:
apt_pkg.Error: E:Could not configure 'libc6:amd64'. , E:Klarte ikke gjennomføre umiddelbar konfigurasjon av «
libnss-nis:amd64». Se man 5 apt.conf under APT::Immediate-Configure for detaljer. (2)
Error in function: install

apt_pkg.Error: E:Klarte ikke gjennomføre umiddelbar konfigurasjon av «libffi8ubuntu1:amd64». Se man 5 apt.con
f under APT::Immediate-Configure for detaljer. (2)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
block = f.read(1048576)
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Original exception was:
apt_pkg.Error: E:Klarte ikke gjennomføre umiddelbar konfigurasjon av «libffi8ubuntu1:amd64». Se man 5 apt.con
f under APT::Immediate-Configure for detaljer. (2)

Upgrade infeasible

The upgrade could not be completed, there were errors during the
upgrade process.
So did someone get that issue? how to fix it?