Ubuntu problem

Soldato
Joined
30 Sep 2003
Posts
10,916
Location
London
I'm a Linux noob who's just installed Ubuntu, and I've broken it already. After I login, startup fails with the following error:

x-session-manager: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

How on earth do I fix this from terminal?
 
SiriusB said:
What did you do before you rebooted?

Hi Sirius - I was trying to install sound drivers from the Realtek site, which is probably how I broke it. How do I get this libasound.so.2 back?
 
Try

Code:
run rm /usr/lib/libasound.so.2 then type ldconfig -v

It's the only solution I have found on the internet so if that doesn't work... I'm stuck for ideas.
 
Could try
apt-get install --reinstall libasound2

Found this as well:
After you are kicked out, press (at the same time) <CTRL><ALT><F1>, then at the "login:" prompt, enter your username (and Enter) and then your password, you should then be logged in at a terminal session.

Then type "su" (followed by Enter) and enter your root password (which may be the same as you user password) when prompted, you will then be logged in as root user.

Type in "cd /usr/lib" (and then Enter....) and then "ls -al libasound*"

You should see something like the following:

lrwxrwxrwx 1 root root 18 2005-10-29 13:23 libasound.so.2 -> libasound.so.2.0.0
-rw-r--r-- 1 root root 729568 2005-06-09 19:22 libasound.so.2.0.0

If you don't see this, then type:

apt-get install libasound2
 
Last edited:
Back
Top Bottom