Instead of wandering around the internet looking for doubtful
instructions from strangers, why not use the software management tools
provided with the OS?
If you choose to ignore the software management tools provided in the
OS, and instead try to install software in some random fashion based on
something you read on the internet, you will have problems.
As others here have said, first undo all the damage you've done, restore
your system to baseline, then install the ubuntu restricted extras.
Nobody here can help you if you're running off on wild tangents and
ignoring advice.