LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-13-2006, 02:26 AM   #1
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Ubuntu corrupted (users, services, HAL, ...)


Hi, the last thing I did was setting up some VMWare Virtual Machine and editing the Java-related symlinks - anyway,

my existing 6.06 installation appears to have been corrupted.

First, /etc/passwd was missing. I used a Knoppix Live CD in order to restore a backup of it.
Now, I'm able to login again.
In Gnome, there was an error message (in a dialog window), "HAL not available" (sorry, it's not the literal message), however, any hardware appears to work - as well as any applications work, including my /home settings.

There are some things that don't work yet:

In a terminal, the prompt appears like,
Code:
I have no name!@ubuntu:~$
(I can still logon and become root by sudo'ing), and under System / Administration, the section "Groups and Users" is missing.

Under System / Administration, there used to be more submenus, i.e., "Services".

Also, currently, there are no system logs.

-------------
Any ideas? - I read the Ubuntu Live CD had a Repair option, however, I think some of the missing settings are custom ones (i.e., /etc/passwd would not be repairable).

Thanks
 
Old 07-13-2006, 03:56 AM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
I have no idea how you (or something you did) mess things up for you, I can't see how VMware could have or the java symlink thing but,
you could try:
Code:
dpkg-reconfigure --all
also make sure you have ubuntu-desktop installed (if not then that may be part of the reason things like HAL aren't working)
as a last resort (besids backing up /home to disk/other partition and wipe the system) you could do:
Code:
apt-get -m --reinstall install $(dpkg --get-selections|awk {'print $1'})
to reinstall EVERYTHING you have installed.
 
Old 07-13-2006, 03:00 PM   #3
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
Thank you very much binary_y2k2.
Quote:
dpkg-reconfigure --all
frequently outputs error messages:
Quote:
ldconfig: /usr/lib/libstrstd.so.108 is not an ELF file - it has the wrong magic bytes at the start.
This appears to be central to me.

(BTW, yesterday, before that crash, I'd issued several commands:
Quote:
sudo update-alternatives --config ja*
which might be related.)

Anyways, does anybody know which package /usr/lib/libstrstd.so belongs to, so I can fix it?

Quote:
apt-get -m --reinstall install $(dpkg --get-selections|awk {'print $1'})
resulted in several messages stating, packages were not available for download (possibly due to the fact I'd commented out the Kubuntu repositories, but probably not) - but not leaving me with a (skip | fix) option (after those messages, the common robert@ubuntu command prompt appeared without giving me another option).

Anyways, I'd reinstalled everything using Synaptic, but the problems I'd described in my original post do persist unchanged.

-----
I really think that symbolic linker is broken. However, I've had reinstalled everything being covered by APT.
How comes, "/usr/lib/libstrstd.so.108" hasn't been updated by that, and how can I fix that?

- Other ideas?

I'm really appreciating any ideas!
(I'm not only doing this for fun, but also for a living, and living can be hard.)

Last edited by robbbert; 07-13-2006 at 03:06 PM.
 
Old 07-14-2006, 03:42 AM   #4
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
I have looked allover the web and the only reference to libstrstd.so is the ldconfig error you have.
that file isn't part of any package in ubuntu/debian or any other distro I can find. You could just try removing it (or moving it somewhere out of /usr/lib) and try to reconfigure again, if it breaks looking for it then put it back, but if dpkg goes smooth then get rid of the file.

about the apt-get command, try it without the -m this time.
 
Old 07-14-2006, 03:58 AM   #5
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
Thank you. While you'd posted, I was just working on the problem. As you suggested, I simply (re)moved libstrstd.so, and no applications complained about that (including ldconfig and dpkg).

Also, I set read permissions for everyone on the /etc/passwd file and rebooted. Everything works now. :-)

Sorry to make such a trouble while there was such a simple cause!
But it's always an extreme situation when nothing works anymore, and you're searching and searching...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ubuntu Install Corrupted MBR? thund3rstruck Linux - Newbie 4 11-30-2005 09:55 AM
confiugre ubuntu services alaios Ubuntu 3 08-17-2005 02:51 PM
how to give rightst on services to the users varala_kanth Linux - Software 1 05-14-2004 09:02 AM
Removing unnecessary services and users/groups Jiggy Linux - Security 4 11-18-2003 01:11 PM
Running services as non-root users robeb Linux - Security 15 07-18-2002 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration