I shut down the software and firewall, download and install directly after downloading. After the installation, add the software to the soft white list and turn on the firewall. After that, open the software to upgrade, and enter msfconsole after upgrading, this happens.
You can download it from github’s msf homepage first. Overwrite the msf directory under the bin of your pentest-box and restart it after performing bundle update and bundle install again.