hddtemp was removed from the Debian for this reason:
https://sources.debian.org/src/hddtemp/ ... bian/NEWS/. Because it is no longer in Debian, it's no longer in Ubuntu 22.04 and thus not in Linux Mint 21.
The alternative is easy. Run this command to load the kernel driver that can read drive temperatures:
sudo modprobe drivetemp
Then run the command:
sensors
And it will print the drive temperatures, and information from other sensors. If you haven't done so previously, run the command
sudo sensors-detect
to detect the available sensors on your hardware. This doesn't load the drivetemp kernel module thus you have to do that manually as above.
If this works you can automatically load the drivetemp kernel module every boot by running this command to create the necessary configuration file for that:
echo drivetemp | sudo tee /etc/modules-load.d/drivetemp.conf