problem at linux start
3 Attachment(s)
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. |
Why didn't you upgrade to 6.4 which is the latest version?
|
but how to do this if i can't log in a system?
|
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'.
|
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 |
[Ctrl]+[Alt]+[F1] to upgrade or,,,
|
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) |
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 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 |
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" |
Quote:
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 if not it will be easier to install sl6.4 |
I tried this
Quote:
Thanks everybody for answers |
Don't forget to back up any data you need from the drive?
|
All times are GMT -5. The time now is 10:23 PM. |