LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2013, 05:34 AM   #1
nebula
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Rep: Reputation: Disabled
problem at linux start


Hi everybody,
I have Scientific linux cyrillic edition 6.3 installed on the laptop. It was ok for some time, but then a failure happened. I can't choose username and type a password (i attached the photo of what i see instead of that window).
There were also problems with permissions of some files like ssh_host_dsa_key and ssh_host_rsa_key. This problem was solved using liveCD.
I also attached photos of boot messages, but it's in russian. There's a failure with auditd start and with net connection (the second one can be solved using cable).
I will be gratefull for any help with these problems.
Attached Thumbnails
Click image for larger version

Name:	DSC03948.JPG
Views:	24
Size:	157.0 KB
ID:	13758   Click image for larger version

Name:	DSC03946.JPG
Views:	23
Size:	205.3 KB
ID:	13759   Click image for larger version

Name:	DSC03947.JPG
Views:	19
Size:	213.9 KB
ID:	13760  
 
Old 10-19-2013, 06:45 AM   #2
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 118

Rep: Reputation: Disabled
Why didn't you upgrade to 6.4 which is the latest version?
 
Old 10-19-2013, 10:29 AM   #3
nebula
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
but how to do this if i can't log in a system?
 
Old 10-19-2013, 12:47 PM   #4
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 118

Rep: Reputation: Disabled
You can log in using single-user mode. After you are inside logged in as root user, type 'telinit 3' to go to run level 3 from where you can use networking and do 'yum update'.
 
Old 10-19-2013, 02:21 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
SL6 dost have security backports to 6.3 and 6.2
but it is advisable to upgrade
"update" will not always upgrade

a "HARD" close can leave pid files all over the place

but why guess

onse you boot into single user
or better yet !!!
use the install dvd in rescue mode
and after you run " chroot /mnt/sysimage "

have a read through the system logs !
/var/log/?????
like
Code:
 nano /var/log/boot.log
-------- and -----
 nano /var/log/messages
the terminal text editor " nano" should be installed by default
 
Old 10-19-2013, 02:33 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,109
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
[Ctrl]+[Alt]+[F1] to upgrade or,,,
 
Old 10-19-2013, 04:12 PM   #7
nebula
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
When i try to upgrade i receive the following message after yum clean all:
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 285, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 114, in main
base.doLock()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1791, in doLock
while not self._lock (lockfile, mypid, 0644)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1857, in _lock
errmsy =_('Couldn't create lock at %s %s ') % (filename, str(msg))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 11: ordinal not in range(128)
 
Old 10-19-2013, 05:16 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
did you by chance replace the version of python that is installed by default with some other version ?

if so , you have a very big problem .
A fixable one, but one that is easier to reinstall to fix .

can you define this
Quote:
but then a failure happened.
i read that as a power failure

but if you installed something ( like python 3.3) and THAT brought about this " failure "

then is is a very different issue than a power failure
 
Old 10-20-2013, 10:19 AM   #9
nebula
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I don't know what that was, but today "yum clean all" don't show such messages. I has both python 2.6 (default)and 2.7 on the laptop and they are in different directories.
As for failure - I wanted to change permissions for one folder in the root directory (it wasn't a system folder, but another installed program), but there occured some errors with terminal and chmod began to run on the other folders of root directory and then the system hanged. So after reboot i can't log in a system cause there's no window with usernames and passwords.
There's also a problem that in a single user mode su doesn't work - it says that the password is incorrect. I use sudo to upgrade (in sudoers file there's nopasswd option for my user).
Upgrade didn't help. There're no error messages from boot message window, but i still see the window with "localhost.localdomain"
 
Old 10-20-2013, 01:51 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
but there occured some errors with terminal and chmod began to run on the other folders of root directory and then the system hanged
fixable
but not if yum is not working

if the permissions of the files and / or folders in "/" are wrong SE will stop the boot

what is in the error logs ?

use the install dvd in rescue mode and look at the logs !

if the yum/rpm database is not messed up you might try this
Code:
for f in $(rpm -ql zip); do ls -l $f; done
--- and ---
for p in $(rpm -qa); do rpm --setperms $p; done
--- and --
for p in $(rpm -qa); do rpm --setugids $p; done
that is it you can log in
if not

it will be easier to install sl6.4

Last edited by John VV; 10-20-2013 at 01:54 PM.
 
Old 10-20-2013, 04:18 PM   #11
nebula
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I tried this
Quote:
for f in $(rpm -ql zip); do ls -l $f; done
--- and ---
for p in $(rpm -qa); do rpm --setperms $p; done
--- and --
for p in $(rpm -qa); do rpm --setugids $p; done
but it didn't help. So I see only one way - to reinstall system (
Thanks everybody for answers
 
Old 10-20-2013, 04:23 PM   #12
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,109
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
Don't forget to back up any data you need from the drive?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem at Linux Start-up codeman1234 Linux - General 14 11-12-2009 04:19 PM
I have start up problem with Linux Red Hat muzammalrahim Red Hat 1 04-07-2007 03:55 AM
Linux will not start - probably a mounting problem. ShayA Linux - Newbie 15 10-27-2006 10:01 AM
Problem with getting Linux to start at all Colin Behr Linux - General 3 09-01-2006 07:17 PM
Peanut Linux Screen Start X problem Pauli Linux - General 1 03-22-2004 12:01 AM


All times are GMT -5. The time now is 12:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration