LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-17-2023, 03:22 PM   #1
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Rep: Reputation: 17
Ubuntu upgrade from 20 to 22 made the computer unbootable. Recovery process?


I had 20.xx running really well and decided to uprade to 22.xx latest-greatest, ran the upgrade command and sometime after the machine froze, or almost froze - would not accept my login password at the lock screen. I left it disconnected from the monitor and external power overnight but did not force shutdown. The next day I get the "Oh no. Something has gone wrong and your system cannot recover, contact your systems administrator".

I have a live version of Ubuntu 22 on a flash, trying to boot off of it. What is the key to boot of the flash? I see it's F12 but it's not responding properly, I am not seeing boot options. F2 to get into BIOS is protected by a password. (Which I don't need to go into anyway) I got this machine with Ubuntu per-installed.

Panasonic 5550 is the hardware.
 
Old 05-17-2023, 04:27 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Have you tired booting into the recovery kernel from the grub menu? That should get you into a basic text prompt where you might be able to run some commands.
 
1 members found this post helpful.
Old 05-17-2023, 07:06 PM   #3
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 480

Rep: Reputation: 179Reputation: 179
Well, the easy way ... since you backed up all the data you wanted to save 'before' you upgraded... right? Therefore just install 22.04 and copy over your data from one of your recent backups. Done. That is my way of 'fixing' upgrade problems, as upgrades are known to fail now and then! I believe one of the first steps mentioned is 'backing' up your data before upgrading. Where you 'may' run into problems is if secure boot is enabled, and you can't disable it in BIOS because it needs a password to get there .... catch 22. Someone more knowledgeable may get into this conversation and help you out.
 
Old 05-17-2023, 09:36 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
You haven't indicated any attempt I can see to use text-mode shell prompts to use installed system. At the Grub menu, strike the E key and append a space and a 3 to the linu line, then proceed with the boot. With any luck, you'll find yourself with 5 or 6 shell prompts available (via Alt-F[1-6]) on which you can login to collect and examine logs to try and determine what went wrong, and attempt repair. "Oh no. Something has gone wrong" generally means something has gone wrong the the X window system that GDM and/or Gnome cannot cope with.
 
Old 05-18-2023, 12:50 PM   #5
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
I made backups.

OK, I got into the grub menu. By hitting ESC during boot. Now what?

ls -l (hd0, msdos1) /boot

does display some kernel files and that is the boot filesystem.

However, when I do this:


grub> linux /boot/vmlinuz-5-15.0.71-generic root=/dev/sda1
grub> initrd /boot/initrd.img-5.15.0
grub> boot

results in a kernel panic

if do
set root=(hd0,msdos1)
it won't run the linux /boot command, says kernel not found.

Last edited by etcetera; 05-18-2023 at 03:38 PM.
 
Old 05-18-2023, 02:48 PM   #6
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
So I got into the root shell prompt with no graphics. Now what?

I mounted a flash drive, copied all the critical information there.

if I try to run startx from the shell prompt, I get the "Oh no" message and X doesn't start.

I have 4 kernels available for booting and none of them boot. I am in the safe mode for the newest one.

Last edited by etcetera; 05-18-2023 at 03:36 PM.
 
Old 05-18-2023, 03:38 PM   #7
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by uteck View Post
Have you tired booting into the recovery kernel from the grub menu? That should get you into a basic text prompt where you might be able to run some commands.

I am there. Looking at various log files in /var/log. Thus far nothing jumps at me.
 
Old 05-18-2023, 03:43 PM   #8
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by rclark View Post
Well, the easy way ... since you backed up all the data you wanted to save 'before' you upgraded... right? Therefore just install 22.04 and copy over your data from one of your recent backups. Done. That is my way of 'fixing' upgrade problems, as upgrades are known to fail now and then! I believe one of the first steps mentioned is 'backing' up your data before upgrading. Where you 'may' run into problems is if secure boot is enabled, and you can't disable it in BIOS because it needs a password to get there .... catch 22. Someone more knowledgeable may get into this conversation and help you out.

Yes, I have the secure boot enabled and I can't disable it in BIOS because I do not have the password.

How do I unscrew the X problem? The filesystem is fine, but X Windows got screwed up.

I will try to reinstall X server:

apt-get install --reinstall xserver-xorg

Last edited by etcetera; 05-18-2023 at 03:54 PM.
 
Old 05-18-2023, 04:22 PM   #9
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
I resolved the problem, from the safe mode, chose the option to repair the filesystem (whatever it's actually called). Then ran the update command from the shell (without xorg). Then rebooted.
It's back.
I am on Ubuntu 22 latest-greatest.
 
Old 05-18-2023, 06:19 PM   #10
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 480

Rep: Reputation: 179Reputation: 179
Good news. You have more patience than me . Enjoy. You might want to mark the thread as 'solved'.
 
Old 05-20-2023, 06:37 PM   #11
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
It's mostly solved but I am still not getting how the upgrade went off the rails so bad.
 
Old 05-22-2023, 01:51 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, according to this https://linuxconfig.org/how-to-upgra...ammy-jellyfish, there's a few steps you should perform before you get to the '...upgrade' cmd.
Maye you missed one ?
 
Old 05-25-2023, 03:46 PM   #13
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
I followed the official procedure here and it hang in the middle of the process. I don't know what happened. The screen locked, and it would not accept the password. I left it in that state overnight, it did not progress anywhere beyond that locked and inaccessible screen, then did a reboot and it was hosed.

It hosed the X-server as it turns out. I could get into the single user mode but every attempt to startx would end up with a stuck mode. They need to do a reality check before starting startx with a bad config file or some defective files or whatever.
and the upgrade should not have hosed X to begin with.

There is a bug they need to address. Looks like multiple bugs.

https://ubuntu.com/tutorials/upgradi...ftware-updater

Last edited by etcetera; 05-25-2023 at 03:47 PM.
 
Old 06-03-2023, 03:12 PM   #14
ACRIzona
Member
 
Registered: Dec 2007
Location: Phoenix
Distribution: iMAC(64) Mint & Q4os
Posts: 82

Rep: Reputation: Disabled
Nothing added ???

Did you find this post helpful? Yes NO

I retro-graded back to before-'EFI'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Dru Lavigne made me do it: I killed Debian, installed an unbootable Ubuntu, now LXer Syndicated Linux News 0 03-24-2010 01:30 AM
upgrade problem - my box rendered unbootable fastestOS Slackware 6 12-17-2008 11:45 AM
Sid unbootable after kernel upgrade st1cky_rice Debian 7 12-18-2005 07:08 AM
SuSE Live CD made Windows unbootable spaaarky21 Linux - General 4 09-29-2004 12:03 PM
unbootable old computer lilamrta Linux - General 5 08-17-2004 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration