No input and output sound device. Can't Install Pulseaudio after deletion

ohwei,

sudo cp /etc/apt/sources.list /etc/apt/sources.list.save

first we copy the sources.list.

sudo nano /etc/apt/sources.list

search for the line with cdrom in name and delete this line

My error I forgot sudo

sudo sed -i s,//ph.archive,//archive,g /etc/apt/sources.list

then mv any file under /etc/apt/sources.list.d/ to a folder in your $HOME

mkdir $HOME/ppa-backup

then mv

sudo mv /etc/apt/sources.list.d/* $HOME/ppa-backup/

Now we get rid of this pulseaudio snap

sudo snap remove pulseaudio 
    sudo apt-get clean

This clears the cache in /var/cache/apt/archives/ Now we let apt forget what packages are available

sudo rm -rf /var/lib/apt/lists/*

With

sudo apt update

recreate this erased files with new informations.

sudo apt full-upgrade

Then install finally pulseaudio

sudo apt install pulseaudio

Edit as of 12-30-21
All of the above commands are working except to the last which installs the pulseaudio. I then tried this command as suggested by @nobody

sudo mv /usr/share/pulseaudio /usr/share/pulseaudio.bak

followed again by

sudo apt install pulseaudio

If there is no error anymore then reboot your computer immediately. Please check the comment section as Ms. @nobody found the solution to the problem. All thanks to her!