If apt wont remove it, try using dpkg
https://www.baeldung.com/linux/apt-uninstall-dpkg-deb-package
if it doesnt work you may get a better idea whats going on.
Any clearer errors in /var/log/dpkg.log?
In this case I would download the deb from here (Click on Mantic, and scroll down to files and find your architecture you use and download the file : https://packages.ubuntu.com/search?keywords=libfreerdp2 and install it with
dpkg -i
If that installs successfully then continue your upgrade attempt.Maybe it still appears in
/var/lib/dpkg/status
? If it is, try deleting the entry from there.I’ve sometimes encountered error 1 when the extraction failed because the downloaded deb-archive was corrupted. Deleting the corresponding deb-file in
/var/cache/apt
helped in my case.