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.

7 points

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.

permalink
report
reply
3 points

yes, do this.

permalink
report
parent
reply
0 points
*

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

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
4 points

i think you have to start the service that configures your network. maybe you have to load the kernel module for the wifi adapter before that, idk.

however, it’s weird you have to do this from initramfs . why doesn’t it boot further?

also, shouldn’t there be the old kernel and old initramfs from before the upgrade still available in your boot manager to choose somehow after the BIOS is done?

permalink
report
reply
0 points
*

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

permalink
report
parent
reply
1 point
*

me? i didn’t recommend that. if you have your wifi, you could update now. however, if you don’t have a backup yet, you should 100% make one. i always make fresh backups before a dist upgrade. (everyone hates the way I’m doing it, but it works really well. i just tar every important fs with --one-file-system on a 1TB USB stick. if they don’t break at writing, they will be able to store the data much longer than i would need.) meaning, in your situation I would already have one and it sounds like you forgot that step, but idk.

permalink
report
parent
reply
4 points

Using a live usb is the correct answer since compiling a custom initramfs would require one anyway and just add more steps… Not sure what gives you the impression using a liveusb is “more complicated” but its not.

permalink
report
reply
3 points
*
Deleted by creator
permalink
report
reply
2 points

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?

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.5K

    Monthly active users

  • 6.4K

    Posts

  • 175K

    Comments