Restore default audio drivers in Ubuntu 16

At LONG last I figured out how to reset everything:

sudo aptitude --purge reinstall linux-sound-base alsa-base alsa-utils linux-image-`uname -r` linux-ubuntu-modules-`uname -r` libasound2

If you encountered an error E: Unable to locate package linux-modules-ubuntu-..., this command can help:

sudo aptitude --purge reinstall linux-modules-`uname -r` linux-modules-extra-`uname -r`

sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; killall pulseaudio; rm -r ~/.pulse*; ubuntu-support-status; sudo usermod -aG `cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami`

From official documentation https://help.ubuntu.com/community/SoundTroubleshootingProcedure


Thank you Hack-R, I had your very same problem on Kubuntu 18.10, and you saved me with this last command that is not mentioned in the Troubleshooting page:

sudo aptitude --purge reinstall linux-modules-`uname -r` linux-modules-extra-`uname -r`

(I had the error of not found packages with the previous "standard" command). BUT, for other users, I must note that as of december 2018, on Kubuntu but I also think on Ubuntu, the command worked replacing --purge with --purge-unused option (--purge itself is not anymore recognized). Also, you have to reboot the system to have effects applied.

I tried your same route, Hack-R, because it seemed to me that the audio quality on Kubuntu was worse than on Windows. Now I restored the system defaults, but how to achieve the "Realtek High definition audio" quality in the end? I tried with the solution from https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS and, I would say to perceive better quality, but I'd not swear.

Best regards