wget –no-check-certificat https://wordpress.org/latest.zip .
unzip latest.zip
mkdir temp2
mv wp-* temp2/
mv wordpress/wp-* .
mv wp-content wp-content_old
mv temp2/wp-config.php .
mv temp2/wp-content .
chown -Rf betty:betty wp-*
rm -rf latest.zip
rm -Rf wordpress

If wordpress was upgraded to 5.5 and causing any issues, we can try reverting it to 5.4.2.
1. Take the backup of wordpress fils.
2. Take the backup of db
4. navigate to the folder where the wordpress is there.
5. use the command: wp core download –version=5.4.2 –force

NOTE: if multiste dont try