upgrade from ubuntu 20.04 to ubuntu 24.04

  • zoldaten wrote: 2024-10-30 9:31 i have successfully upgraded to ubuntu 24.04.1 and installed llama.cpp !
    Can you share the process to upgrade to 24.04? Is there a build environment for it or just started with 20.04 and went from there?
  • dcoulson wrote: 2024-11-03 22:16
    zoldaten wrote: 2024-10-30 9:31 i have successfully upgraded to ubuntu 24.04.1 and installed llama.cpp !
    Can you share the process to upgrade to 24.04? Is there a build environment for it or just started with 20.04 and went from there?
    just started with 20.04 and went from there - this way.

    1. have to fix date each time boot:

    Code: Select all

    date -s '2024-10-25 17:04:12'
    *may be need installed:

    Code: Select all

    sudo apt install ubuntu-release-upgrader-core
    2.change links for update:
    sudo nano /etc/apt/sources.list

    Code: Select all

    deb http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
    deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
    
    deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
    deb-src http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
    
    deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
    deb-src http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
    
    deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
    deb-src http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
    
    deb http://archive.canonical.com/ubuntu focal partner
    deb-src http://archive.canonical.com/ubuntu focal partner
    
    3.unhold packets in system to do updates:

    Code: Select all

    sudo apt-mark unhold $(apt-mark showhold)
    4.update:

    Code: Select all

    sudo apt update && apt upgrade
    Then 2 stages of dist upgrade from 20.04 to 22.04 and from 22.04 to 24.04 with reboot between them.
    *do it twice:

    Code: Select all

    sudo do-release-upgrade
    sudo reboot
  • I can confirm that this works
    although the first step of setting the date is not required (and will actually stop it working) as setting the date to the past where the SSL certificates for ubuntu update servers are not valid will not allow you to get the updates

    Downside of this is that you are still stuck with the old kernel as the CPU is not supported by the mainstream kernel
    Last edited by nozlaf on 2025-01-08 8:57, edited 3 times in total.