i play vlc but surprised by this error :Audio output failed: The audio device "default" could not be used: No such file or directory. so i search for it and the run this command : vlc --reset-config --reset-plugins-cache but it produce this error PulseAudio server connection failure: Connection refused and also there's no sound when i using browser and i don't know what to do hint: my sound was work well but suddenly this happen

  • any help or suggestion – Karim Ata May 22 '18 at 17:47
  • Check logfiles, look for pulseaudio lines. It seems to be crashed. – Ipor Sircer May 23 '18 at 11:24

It might be because either your pulseaudio driver is broken and/or has permissions set to root.

I had solved this problem with the following commands :

# clean and reinstall pulseaudio
sudo apt-get remove --purge alsa-base pulseaudio
sudo apt-get install alsa-base pulseaudio
sudo apt-get -f install && sudo apt-get -y autoremove && sudo apt-get autoclean && sudo apt-get clean && sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
# fixes user folder permissions
sudo chown -R $USER:$USER $HOME/
# then reboot
sudo shutdown -r -t 0

Pulseaudio should be started at startup but you can manually start it with :

pulseaudio --start

If the problem persists, feel free to paste your system log here

tail -100f /var/log/syslog

For my pulseaudio "connection refused" issue the following helped:

mv -v ~/.config/pulseaudio{,~}

This way the pulseaudio userspace configuration is reset (without destroying the old). No reinstall or reboot was needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.