Score:0

How to? re-install desktop/gui on Ubuntu 22.04

az flag

I had an old 16.04 system which was having issues but was set for retirement. I needed to get it working well enough to log in and get some data from two graphical applications.

I tried upgrading to 18.04 which was a big struggle (involving purging and re-installing Perl and Pythong(3?)). Could not get to a login screen.

Upgraded again to 20.04 (which went very smoothly) but still no graphical login screen (just the white-red dots screen). In 20.04 I was being prompted for credentials for a network share so I know fstab was being parsed.

Upgraded again to 22.04 (which also went smoothly). No longer parsing fstab and still no login screen.

I can console in and I can ssh in so I can make changes. I tried suggestions around the login loop issue and around logging into blank screens, but none of that had any noticable impact.

I looked at the output for both sudo apt install ubuntu-desktop-minimal and sudo apt install ubuntu-desktop but those involve adding more than 300 packages, so that seems the wrong route entirely.

I have now run sudo apt install ubuntu-desktop-minimal and now show the current version of the waiting screen, but the system still fails to get a graphical login screen.

Suggestions?

R A avatar
va flag
R A
Your command doesn't install anything on my desktop system, which means it's fine and you should do it.
JamesIsIn avatar
az flag
Hmmm... confirmed on my lappy too. Well, here's mud in your eye...
JamesIsIn avatar
az flag
I am now getting the new waiting screen (the spinning not-quite-arrows), so... progress? Still no login screen.
user535733 avatar
cn flag
Retrieving data also be done using a LiveUSB's "Try Ubuntu" environment.
JamesIsIn avatar
az flag
@user535733 -- I need to run a couple of applications in their current state on that system to extract data from those applications directly (data that is not text accessible otherwise).
R A avatar
va flag
R A
@JamesIsIn Try starting Ubuntu in recovery mode
JamesIsIn avatar
az flag
If I hit Shift-Esc I see three lines on the console: 1) Starting Message of the Day... 2) [ OK ] Finished Message of the Day. 3) [*** ] A start job is running for Hold until boot process finishes up (3h 12 min 3s / no limit) . That might be a useful clue.
JamesIsIn avatar
az flag
After a reboot I was able to access RM. I started networking, made sure Grub was up to date, and ran dpkg to repair anything missing. Returning to the normal boot sequence dropped me at a console login. I was able to login in as per usual. Rebooted again. Same situation: graphical waiting page but no login page.
Score:0
cn flag

First try whether reinstalling plymouth may restore a graphical login screen:

sudo apt purge plymouth
sudo apt install plymouth

If that did not work, the better advice may be to start afresh: wipe all that is there, and do a fresh install. Your current system may have become a Frankenstein system by now. Reinstalling will be the fastest and by far the cleanest solution.

Otherwise, since you got the system this far to boot a basic terminal based linux system, you could

  • Remove most of the graphical packages and reinstall. A sudo apt remove --purge xserver-xorg plymouth will probably be more than enough to remove anything related to a graphical desktop. Still run a sudo apt autoremove afterwards. Then install a minimal ubuntu-desktop

or

  • Boot from a live CD of Ubuntu 22.04 and perform a reinstall without erasing the existing partitions. Also that will preserve user data and configuration.
JamesIsIn avatar
az flag
Is xserver-org the correct package name? E: Unable to locate package xserver-org (Purging and reinstalling Plymouth itself now leads me to a console login with no GUI splash.)
vanadium avatar
cn flag
I corrected the name
JamesIsIn avatar
az flag
Thanks. Now that I have done this reboots briefly show the spinning splash screen and then I am dropped to a console login. Do I need to do something special to tell the system to start X (automatically)?
JamesIsIn avatar
az flag
(Running startx enters Gnome on X rather than Ubuntu so followers should be aware of this distinction.)
vanadium avatar
cn flag
A reinstall would have taken you an hour. If that fails, attempt installation of older versions. If these fail, expect possible hardware issues with that computer.
JamesIsIn avatar
az flag
I know the hardware is good and this issue persisted across two machines when I moved the drive. I'll try the CD re-install.
JamesIsIn avatar
az flag
The live version makes no offer to in-place re-install. Not clear about using the "somehting else" to get there. I would need to know how to utilze (or protect) each existing partition.
vanadium avatar
cn flag
A re-install is done through "something else", so you must know your partitions indeed.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.