Sha256sum command In Terminal Won't Locate File To Verify 24.04 Download

I've been trying to create a bootable USB drive with Mate 24.04 so I can update 3 laptops. The first time I used Torrent to download the iso file. It took 2 hours. I dragged and dropped the iso file into Terminal and used the sha256sum command. It worked but the checksums didn't match.

I deleted that file and directly downloaded the file into documents using my browser. I again entered the sha256sum command, dragged and dropped the iso file located in the document folder into terminal. I keep getting 'NO such file or directory.'

Since the Terminal command no longer works I'm thinking about creating a bootable USB drive and try installing it. What are the chances of the iso file being corrupted during a direct download from this website?

cd Downloads

-rw-rw-r--  1 user user 4196413440 Aug  3 08:56  ubuntu-mate-24.04-desktop-amd64.iso

sha256sum ubu*

matches

eae78e56c306ba30e5d59cbcbb48e54bef6e9263e8481f3f0f3a883054083f24 *ubuntu-mate-24.04-desktop-amd64.iso
2 Likes

bash: cd: Downloads: No such file or directory

-rw-rw-r--: command not found

Thanks for trying to help. Terminal is nice when it works.

1 Like

Hi, @linuxis4me :slight_smile:

You've mentioned that you "directly downloaded the [ ISO ] file into documents", so I'm assuming you can find the ISO file in ~/Documents which is the "Documents" folder of your user. So, I suggest that you check that by entering the following command:

ls -l ~/Documents/ubuntu-mate-24.04-desktop-amd64.iso

If you do find that file by entering the above command, then you can run the sha256sum command (to get the SHA256 file checksum), which should be the following command:

sha256sum ~/Documents/ubuntu-mate-24.04-desktop-amd64.iso

I hope this helps :slight_smile:

1 Like

Thanks for taking time to post a possible solution. I moved the iso file to my download folder in case that was creating an issue. Terminal still can't find it.

ls: cannot access '/home/jim/Downloads/ubuntu-mate-24.04-desktop-amd64.iso': No such file or directory

Hi again, @linuxis4me :slight_smile:

You wrote:

Hmmm... That's strange :confused: Could you please run the following command and post a new reply to this topic with the result (output) of running that command?

sudo find / -type f -iname 'ubuntu-mate-*.iso'
1 Like

jim@jim-Latitude-E5530-non-vPro:/home$ sudo find / -type f -iname 'ubuntu-mate-*.iso'
[sudo] password for jim:
/home/jim/.local/share/Trash/files/ubuntu-mate-24.04-desktop-amd64.iso
/home/jim/Downloads/ubuntu-mate-24.04-desktop-amd64 .iso
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied

sha256sum: /home/jim/Downloads/ubuntu-mate-24.04-desktop-amd64.iso: No such file or directory

Thanks for the reply, @linuxis4me :slight_smile: Let's try something slightly different. Please run the following command (the command should be entered in one single line, even if it appears to be "split" in two lines in this message) and reply again with the output / result :

sudo find / -type f -iname 'ubuntu-mate-*.iso' -exec ls -lh {} \; -exec sha256sum {} \;

1 Like

jim@jim-Latitude-E5530-non-vPro:/home$ sudo find / -type f -iname 'ubuntu-mate-*.iso' -exec ls -lh {} ; -exec sha256sum {} ;
[sudo] password for jim:
-rw-rw-r-- 1 jim jim 4.0G Aug 3 00:10 '/home/jim/Downloads/ubuntu-mate-24.04-desktop-amd64 .iso'
eae78e56c306ba30e5d59cbcbb48e54bef6e9263e8481f3f0f3a883054083f24 /home/jim/Downloads/ubuntu-mate-24.04-desktop-amd64 .iso
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied

I compared it to the checksum from the Mate website I had saved in LibreOffice Writer and they match! WooHoo!

ricmarques you are the man!

2 Likes

That's great, @linuxis4me ! :slight_smile: Thanks for the feedback and for your very nice words of appreciation.

1 Like

SOLVED by ricmarques

2 Likes