after installing a kali instance and following the documentaiton

during apt-get dist-upgrade -y
i get this error

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openjdk-11-jre : Depends: openjdk-11-jre-headless (= 11.0.9.1+1-1) but 11.0.8+10-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

apt --fix-broken install also fails with

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/openjdk-11-jre-headless_11.0.9.1+1-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
kali@kali:~$