System does not start properly after reinstalling pulseaudio

Hello - I’m new to linux and I need help… I’m sorry for my bad english skills…

Short story:

updated fedora today
reboot
sound does not worked anymore

checked top (no pulseaudio)
some duckduckgo research and I saw a thread where reinstalling pulseaudio might fix my sound issue
opened terminal (entered sudo dnf deinstall pusleaudio and then install pulseaudio again)
reboot
system only starts with black screen which says:

Fedora 30 (Workstation Edition)
Kernel 5.2.9-200.fc30.x86_64 on an x86_64 (tty1)

localhost login: _

What can I do to restore my system? What happend - did I crushed it?

Thanks in advance!

Greets,

bgl

1 Like
systemctl get-default
rpm -q gdm

What does this say?

1 Like

Hi @bgl! Welcome to the community! Please have a look at the introductory posts in the #start-here category if you haven’t had a chance to do so.

It can also be useful to see information about last package management transaction (if any):

sudo dnf history info -1
2 Likes

systemctl get-default says graphical target (I am using an Rzyen 2200G APU)

rpm -q gdm says RPM Version 4.14.2.1 Copyright et cetera and some parameters

I am currently in an live iso session, rescuing my data…

The information from Live CD/USB is irrelevant.
You need to check this on the installed system or using a chroot.

It is from my installed system with no Live USB connected…

Then this response is really strange:

Check your typing.
It should be like this:

$ rpm -q test
package test is not installed

$ rpm -q gdm
gdm-3.32.0-3.fc30.x86_64
2 Likes

@bgl, you should see something like this:

# rpm -q gdm
gdm-3.32.0-3.fc30.x86_64

Note the version of gdm package installed (it’s 3.32.0-3).

Or just

# rpm -q gdm

without any answer if you happen to have no such package installed. Edit: I was wrong about empty answer for no such package, as @vgaetera pointed out. )))

2 Likes

You are right - I checked it again - it showed that their were not installed at all - so I installed them - rebooted and now I am back in my system! Damn nice - thank you @vgaetera and @nightromantic!

I think their must be deleted while I deinstalled Pulseaudio - but why and maybe some other stuff might got lost too - I am curious - still wondering if my system is stable again - but my sound is back… haha

3 Likes

You’re welcome! :slight_smile:

@bgl, as I’ve said earlier:

you can try to look up the history of package operations. Operations done from command line with dnf is definitely there, I’m not 100% sure about operations done through gnome-software in GUI.

sudo dnf history list

will show you the list of all dnf transactions (i.e. package management operations).

sudo dnf history info <number>

will show you a full log of one transaction: which packages were installed, updated or removed. The in question you need to take from the output of history list command.

So you can actually see which packages were removed from your system along with pulseaudio and install back any you think you need.

1 Like

Really helpful commands - I will definitely write them down!

Checked it immediately and

‘remove pulseaudio’ actually removed 38 packages -
‘install pulseaudio’ brought only 2 packages back and
‘installing gdm’ brought 22 packages back

So, there are still 14 packages left, but I have to wait and see how these missing packages will affect me and my system…

1 Like

We can also compare them with my more or less clean system if you want – does my system have them installed or not.

Or you can just save that list for future reference.

Speaking about ‘dnf history’ I’d also like to mention

sudo dnf history undo <number>

will undo the transaction you specify. I’ve actually only used it with the last transaction – when I’ve installed or removed something by mistake and knew it right away. Actually, it could have helped you in the beginning right after reboot. I always inspect carefully what it suggests to do before committing to it.

1 Like