Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Upgrade 18.04 to 22.04

  1. #11
    Join Date
    Aug 2024
    Beans
    26

    Re: Upgrade 18.04 to 22.04

    If the files were downloaded from a trusted site, and you only want to verify the checksum, without checking the GPG signature:

    Check all of the files listed (with their SHA-256 hashes) in the specified file:
    Code:
    sha256sum -c SHA256SUMS
    Compute the SHA-256 hash of the specified file:
    Code:
    sha256sum ubuntu-24.04-desktop-amd64.iso
    Last edited by davetheoldcoder; 3 Weeks Ago at 01:04 AM.

  2. #12
    Join Date
    Mar 2009
    Location
    South Carolina
    Beans
    248
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Upgrade 18.04 to 22.04

    Quote Originally Posted by 1fallen2 View Post
    Sorry I've been off messing around but, Alongside the actual ISO files containing the Ubuntu image you downloaded, all Ubuntu mirrors publish some extra files. The ones we are interested in are called:

    SHA256SUMS
    SHA256SUMS.gpg

    It is usually convenient to download these at the same time as downloading the distro. However, if you didn’t, not to worry - the checksums and the signature are consistent for the image, so even if you downloaded your ISO file from a different source, as long as it is fresh and hasn’t been updated in the interim, you can fetch these files from the: http://releases.ubuntu.com page for the relevant release. You will usually find the relevant files on the top of the directory listing.

    I took the liberty to include the right page in my link above.

    The easiest way to find out if you need the key is to run the authentication command:
    Code:
    gpg --keyid-format long --verify SHA256SUMS.gpg SHA256SUMS
    Thanks 1fallen2,

    Here's the result:

    Code:
    scott@scott-ThinkCentre-M910q:~$ gpg --keyid-format long --verify SHA256SUMS.gpg SHA256SUMS
    gpg: directory '/home/scott/.gnupg' created
    gpg: keybox '/home/scott/.gnupg/pubring.kbx' created
    gpg: can't open 'SHA256SUMS.gpg': No such file or directory
    gpg: verify signatures failed: No such file or directory
    scott@scott-ThinkCentre-M910q:~$ ^C
    scott@scott-ThinkCentre-M910q:~$
    I found the "How to verify your Ubuntu download" tutorial on Canonical's site. My issue is that it specifies operations I don't know how to do. For example, how does one download the ISO and the SUMS files at the same time? I did it sequentially. Apparently, that doesn't work. They are in the same directory: https://photos.app.goo.gl/yijXuwu2UjNrzpTa7

  3. #13
    Join Date
    May 2018
    Location
    Here and There
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Upgrade 18.04 to 22.04

    OK then:
    Code:
    cd Downloads
    next:
    Code:
    md5sum --version
    

    this will create a trust database for the current user.
    Code:
    sha256sum --version
    

    Now run it:
    Code:
    ~/Downloads
    └─>  gpg --keyid-format long --verify SHA256SUMS.gpg SHA256SUMS 
    gpg: WARNING: unsafe permissions on homedir '/home/me/.gnupg' 
    gpg: Signature made Thu 29 Aug 2024 10:08:15 AM MDT 
    gpg:                using RSA key 843938DF228D22F7B3742BC0D94AA3F0EFE21092 
    gpg: key D94AA3F0EFE21092: public key "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>" imported 
    gpg: Total number processed: 1 
    gpg:               imported: 1 
    gpg: Good signature from "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>" [unknown] 
    gpg: WARNING: This key is not certified with a trusted signature! 
    gpg:          There is no indication that the signature belongs to the owner. 
    Primary key fingerprint: 8439 38DF 228D 22F7 B374  2BC0 D94A A3F0 EFE2 1092
    








    "When you practice gratefulness, there is a sense of respect toward others." >>Dalai Lama

  4. #14
    Join Date
    Mar 2009
    Location
    South Carolina
    Beans
    248
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Upgrade 18.04 to 22.04

    Got it! Thanks, davetheoldcoder.

  5. #15
    Join Date
    Mar 2009
    Location
    South Carolina
    Beans
    248
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Upgrade 18.04 to 22.04

    Got it! Thanks, 1fallen2

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •