English
Ask Your Question
1

Attempting to uninstalled PulseAudio

asked 2017-03-15 04:31:34 +0000

wolfv gravatar image

updated 2017-03-18 14:56:56 +0000

This is a long post because I included all the events leading up to the failure.

Yesterday I installed PulseAudio equalizer by following the instructions on https://www.fosslinux.com/1584/how-to... It sounded great.

Then I installed impending updates and rebooted. The speaker and headphones where never heard again. There is no sound. And the system menu space for selecting headphone or speaker, now says "Extension initializing..." image description In Settings > Sound, "Output volume" slider and "Input volume" slider are grayed out and stuck on zero.

I tried installing pavucontrol as suggested by xmetax on https://ask.fedoraproject.org/en/ques... And rebooted to initialize. Unfortunately installing pavucontrol did not bring back the sound. System menu and Setting > Sound are still the same.

So I uninstalled PulseAudio:

$ sudo dnf remove pulseaudio
$ sudo dnf clean all

The "dnf clean all" hangs for 20 minutes. So I ctrl+c. But the keyboard is unresponsive. So I hard boot. Usually a login GUI appears after booting, but not anymore. Now only a terminal is displayed:

Fedora 25 (Workstation Edition)
Kernal 4.9.13-201.fc25.x86.64 on a x86_64(tty1)

localhost login: wolfv
Password: ******
[wolfv@localhost ~] $ ls

All my files and data are still there (and I made a backup before installing PulseAudio, so the data is safe).

Is there a way to get the Fedora GUI login and Gnome desktop running again? I can do a clean install if all else fails. But this was a clean install 5 weeks ago, which I do not want to repeat. Do you have an idea on how to get the GUI login and Gnome desktop back?

Thank you.

UPDATE_1:

$ sudo dnf history
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    15 | install gdm gnome-shell  | 2017-03-14 23:26 | Install        |   23   
    14 | remove pulseaudio        | 2017-03-14 19:55 | Erase          |   35 EE
    13 | install pavucontrol      | 2017-03-14 19:30 | Install        |    1  <
    12 | install pulseaudio-equal | 2017-03-13 22:34 | Install        |    7 ><
    11 | install gparted          | 2017-02-23 19:33 | Install        |    3 ><
    ...
$ dnf history rollback 11
RPM Fusion for Fedora 25 - Free - Updates                                       137 kB/s | 254 kB     00:01    
Opera packages                                                                   19 kB/s |  13 kB     00:00    
google-chrome                                                                    17 kB/s | 3.7 kB     00:00    
Fedora 25 - x86_64 - Updates                                                    159 kB/s |  20 MB     02:11    
Not found given transaction ID
Error: Failed history rollback, no transaction

Why did dnf rollback attempt to remove Updates, Opera, chrome? They were not listed by dnf history.

According to this link, https://docs.fedoraproject.org/en-US/...AdministratorsGuide/sec-DNF-Transaction_History.html dnf remove command removes the specified packages from the system along with any packages depending on the packages being removed.

When I removed pulseaudio it remove all its dependencies which included gdm and gnome it self. So now I am hesitant to use dnf remove.

I tried:

$ dnf history undo 14
$ dnf history undo 13
$ dnf history undo 12

And rebooted. The undo did not fix the following things.

The computer's sound is silent. The system menu space for selecting headphone or speaker ... (more)

edit retag flag offensive close merge delete

Comments

deleted comment

wolfv ( 2017-03-17 17:52:58 +0000 )edit

How about rephrasing your the title of your question? As you figured out, dnf remove pulseaudio removed gdm and gnome-shell, not the dnf clean all.

florian ( 2017-03-17 18:53:08 +0000 )edit

@florian, Good idea. Changed title to, "Attempting to uninstalled PulseAudio."

wolfv ( 2017-03-17 19:42:06 +0000 )edit

Please create another question dedicated to sound problem

aeperezt ( 2017-03-18 15:07:57 +0000 )edit

2 answers

Sort by ยป oldest newest most voted
4

answered 2017-03-15 04:43:37 +0000

When you remove pulseaudio it remove all its dependencies this include gdm and gnome it self.

So what you need to do is to install gdm and gnome-shell

sudo dnf install gdm gnome-shell control-center

or you can install it by group:

sudo dnf groupinstall "Fedora Workstation"

which will install all needed to return you graphical workstation

Good Luck

edit flag offensive delete link more

Comments

Thanks aeperezt. You saved the day. "sudo dnf install gdm gnome-shell control-center" worked like a charm. My login and desktop are back.

wolfv ( 2017-03-15 05:35:28 +0000 )edit

@aeperezt, The Tweak Tool is missing some Extensions. The applications-menu is missing, which is part of Classic Mode officially supported by GNOME: https://extensions.gnome.org/extensio...
Is there a way to put the applications-menu back into Tweak Tool?

wolfv ( 2017-03-15 09:42:03 +0000 )edit
2

I guess "dnf history undo last" would have been a better choice than "dnf install gdm gnome-shell control-center". However, it's not too late, just run "dnf history" to get the id of your pulseaudio removal and run "dnf history undo <id>" afterwards. This should reinstall everything you have wiped out with this transaction.

Axel Sommerfeldt ( 2017-03-15 10:16:38 +0000 )edit

@alex, that gives me hope. Please review my plan (under UPDATE appended to the question) before I pull the trigger.

wolfv ( 2017-03-15 14:26:20 +0000 )edit

Just "sudo dnf history undo 14" should be sufficient. It should re-install all packages which were removed with the transaction no. 14 (and are not yet re-installed). "Erase" means that 35 packages were removed from your Fedora installation. "sudo dnf history undo 14" will download and install them again.

Axel Sommerfeldt ( 2017-03-15 19:38:27 +0000 )edit
0

answered 2017-03-18 10:01:50 +0000

Axel Sommerfeldt gravatar image

updated 2017-03-18 10:03:44 +0000

(This is too long for a comment so I made this one an answer instead.)

First of all a big sorry, I always assumed that "dnf history undo" simply does ignore already installed packages. It seems I was wrong, and your question, if all of the transaction needs to be "undo" (in the right order) to get a correct result needed to be answered by "yes".

However, since we now have the list of the 35 erased packages, and know which one of those are already installed, it's easier to install the still-missing packages without trying all the "undo" stuff again. Please try instead:

sudo dnf install alsa-plugins-pulseaudio gnome-classic-session gnome-initial-setup gnome-shell-extension-alternate-tab gnome-shell-extension-apps-menu gnome-shell-extension-background-logo gnome-shell-extension-launch-new-instance gnome-shell-extension-places-menu gnome-shell-extension-window-list pulseaudio-module-x11

(as a single command line) and reboot your computer afterwards. Hopefully this will fix the remaining problems.

edit flag offensive delete link more

Comments

@Axel, I appended UPDATE_5 to the question.

wolfv ( 2017-03-18 14:57:35 +0000 )edit

Since now all packages which were previously removed are reinstalled again, it should be possible to fix the audio configuration. I would go through all sound settings and verify they are set as wanted. If the problem initially started with playing around with the Pulse Audio Synthesizer, I would reinstall it and play around with it again. Removing Pulse Audio does not make sense, especially since too much of Fedora Workstation is dependant on it. (As you have noticed.) And the current version of Firefox only supports Pulse Audio for audio in-/output.

Axel Sommerfeldt ( 2017-03-18 17:40:53 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-03-15 04:31:34 +0000

Seen: 225 times

Last updated: Mar 18