upgrading xubuntu 23.10 to 24.04.

I purged a broken package that was blocking upgrades with sudo dpkg -P libfreerdp2-2 and immediately afterwards I executed sudo apt get upgrade. It unleashed a list of 96 packages to upgrade totaling 900 MB of data.

However, if I press yes on ‘do you want to continue?’ wlan is off wlan is on, nmtui clearly shows it activated, but each time I try upgrading, updating, autoremoving, or install --fix-missing I get:

E: failed to fetch http… initramfs-tools-core… could not connect to 127.0.0.1, connection refused.

(I can write the whole address if you need it)

Some other contributors suggest I use a live usb, not installing the OS but using the live usb with working wlan to complete the installation, but this seems to be more complicated than working directly from initramfs.

  • lemmyreader@lemmy.ml
    ·
    1 month ago

    Some other contributors suggest I use a live usb, not installing the OS but using the live usb with working wlan to complete the installation, but this seems to be more complicated than working directly from initramfs.

    My suggestion was to use live usb to find your /home files. Indeed using live usb and then using chroot to complete the upgrade from 23.10 to 24.04 is maybe more difficult (As /dev and /proc and /sys need to get mounted with the chroot). If I were you I would first find your /home files and make a backup and after that proceed with upgrading.

    • ceciline02@lemmy.ml
      hexagon
      ·
      edit-2
      1 month ago

      hi, thanks for your input.

      Small breakthrough: I booted the system without problems to tty1 (I believe this is called single user mode), logged in as an old user and now I can see all my data, logged in as old me. Do you still recommend to backup from live usb and upgrade from there?

      NMTUI shows that wlan works

      • lemmyreader@lemmy.ml
        ·
        1 month ago

        Small breakthrough: I booted the system without problems to tty1 (I believe this is called single user mode), logged in as an old user and now I can see all my data, logged in as old me.

        Nice.

        Do you still recommend to backup from live usb and upgrade from there?

        I would backup from live usb and then when that is done stop using the live usb, reboot and try to upgrade via the recovery mode.

  • bloodfart@lemmy.ml
    ·
    1 month ago

    It will take a bunch of work to do what you’re asking.

    You will have an easier time booting a usb and doing chroot and fixing it that way.

  • krolden@lemmy.ml
    cake
    ·
    1 month ago

    easiest thing to do would be to get a usb to ethernet dongle and just do it normally. otherwise you need to do wpa_supplicant. see here: https://www.marcfargas.com/2017/12/enable-wireless-networks-in-debian-initramfs/

    however im confused as you cannot use apt from the initramfs console. will your system actually boot into linux or are you being dropped to the recovery console?

  • Responsabilidade@lemmy.eco.br
    ·
    1 month ago

    Isn't it easier if you clean install instead of upgrade?

    That's the main issue that make me dislike apt and like pacman so much. Apt always (with me) mess the system when upgrading from a version to another.