LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Nvidia won't load no KDE forced back to command line run level 1 (https://www.linuxquestions.org/questions/mandriva-30/nvidia-wont-load-no-kde-forced-back-to-command-line-run-level-1-a-800096/)

nickcommandlinenewbie 04-05-2010 06:06 AM

Nvidia won't load no KDE forced back to command line run level 1
 
After completing a full scan under klamav last friday(I also have a windows partition) I followed some update prompts for mandriva spring 2009 got into some sort of loop in installing additional required packages, gave up trying to complete. Next morning on booting the init script failed at the Nvidia graphics 'unknown file' 'bad' 'exiting' (should have written the relevant parts) of the logfile down. Struggled all weekend thinking I could try and install new Nvidia drivers dowmloaded under windows. Learnt su and mount and telinit 3 but bash seems unstable under runlevel 3 as the init script trys to load the graphics drivers again.
At a loss, about to reinstall Mandriva totally again! any help appreciated.

camorri 04-05-2010 08:38 AM

Since you are dealing with a failed update, you need to get that done first. At the command line try to run the command
'urpmi --auto-update' as root user. If it completes, good stuff. If it fails, please post the error messages.

Once the correct updates are in place, you will have a chance to sort out the Nvidia stuff.

nickcommandlinenewbie 04-05-2010 02:42 PM

Hi Cliff

Many thanks, you stopped me fumbling around in the dark.
Here are my error messages:
Some on the way:

Failed to download locales-en-2.10.1-4mdv2010.0.i586.rpm

You may need to update your urpmi database

perl-Glib-1.222-1mdv2010.0.i586.rpm

perl-HTML-3.620.0-3mdv2010.0.i586.rpm

perl-Libconf-0.42.10-2mdv2010.0.i586.rpm

Last screen on program exit:

…retrieving failed: aria2 failed: exited with 1

Installation failed, some files are missing:
http://ftp.u-strsbg.fr/linux/distrib...010.0.i586.rpm
…harddrake-ui…
… Libconf-0.42.10-2mdv2010.0.i586.rpm
…urpmi-6.32-2. 1mdv2010.0.noarch.rpm
… drakxtools-curses-12.77.6-1.1mdv2010.0.i586.rpm
… perl-UPRM-3.33-1mdv2010.0.i586.rpm
… perl-Mail-SpamAssassin-3.2.5-11-1mdv2010.0.i586.rpm
…drakxtools-12.77.6-1.1mdv2010.0.i586.rpm
… harddrake-12.77.6-1.1mdv2010.0.i586.rpm
You may need to update your urpmi database.

Try to continue anyway? (y/N) y

Do I need to run a command to update the urpmi database and then try again?

Or is it just that the linux mirror in Strasbourg is down? How could I then change the mirror that urpmi calls?
Thanks again Nick

camorri 04-05-2010 06:43 PM

Quote:

Do I need to run a command to update the urpmi database and then try again?

Or is it just that the linux mirror in Strasbourg is down? How could I then change the mirror that urpmi calls?
To question 1, yes.

I have no way of knowing if a particular mirror is down. You can always change mirrors.

Use Easy Urpmi to change mirrors, or add any you may want. The link -->http://mandrivausers.org/easyurpmi/
Follow the instructions on easy urpmi to add or change mirrors.

You can find much more information here -->http://wiki.mandriva.com/en/Tools#Packaging_Tools

for updating mirrors, and updating data bases for mirrors. This link may help also.

http://wiki.mandriva.com/en/Urpmi#urpmi.update

nickcommandlinenewbie 04-06-2010 03:48 AM

Hi Cliff,

Not sure if I'm retrieving anything
urpmi.update updates
gives /usr/bin/aria2c: /usr/lib/libxml2.so.2: no version information available (required by /usr/bin/aria2c)
...retrieving failed: aria2 failed: exited with 1

Is there anyway I can check that I am connecting to the net? Or is it even possible running under safe mode run level1 which is all that works at present?

thanks again
Nick

camorri 04-06-2010 09:18 AM

I just ran the command, this is what it looks like when it works.

Quote:

urpmi.update Main Updates
medium "Main" is up-to-date
medium "Main Updates" is up-to-date
medium "Main32 Updates" is up-to-date
$MIRRORLIST: media/debug_main/updates/media_info/20100330-104538-synthesis.hdlist.cz
updated medium "Main Updates debug"
medium "Contrib Updates" is up-to-date
$MIRRORLIST: media/debug_contrib/updates/media_info/20100404-002607-synthesis.hdlist.cz
updated medium "Contrib Updates debug"
medium "Non-free Updates" is up-to-date
medium "Main Updates2" is up-to-date
medium "Main32 Updates2" is up-to-date
http://api.mandriva.com/mirrors/basi...0.x86_64.list: media/debug_main/updates/media_info/20100330-104538-synthesis.hdlist.cz
updated medium "Main Updates debug2"
http://api.mandriva.com/mirrors/basi...0.x86_64.list: media/contrib/updates/media_info/20100406-102656-synthesis.hdlist.cz
updated medium "Contrib Updates2"
http://api.mandriva.com/mirrors/basi...0.x86_64.list: media/debug_contrib/updates/media_info/20100406-102604-synthesis.hdlist.cz
updated medium "Contrib Updates debug2"
medium "Non-free Updates2" is up-to-date
You can tell you are up to date or are being updated by the long lines ending in '.hdlist.cz'. I did this as a regular user, I don't think there is any reason to be root. It should run as root ( I think ).

The files being reported as " No Version information available " are they installed on your system? I'm wondering if this partial update has replaced some, but not all of the files used in urpmi updates.

Quote:

s there anyway I can check that I am connecting to the net?
The easy way is to ping something you expect to be there. An example...

Quote:

ping www.linuxquestions.org
PING www.linuxquestions.org (75.126.162.205) 56(84) bytes of data.
64 bytes from www.linuxquestions.org (75.126.162.205): icmp_seq=1 ttl=47 time=82.7 ms
64 bytes from www.linuxquestions.org (75.126.162.205): icmp_seq=2 ttl=47 time=81.3 ms
64 bytes from www.linuxquestions.org (75.126.162.205): icmp_seq=3 ttl=47 time=82.0 ms
This shows DNS lookup worked, and I can ping the destination I chose.

nickcommandlinenewbie 04-07-2010 07:54 PM

Hi Cliff,

urpmi.update Main Updates

gives me

urpmi.update: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libfontconfig.so.1)
urpmi.update: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libfontconfig.so.1)

running
la /usr/lib | more
I can scroll down to find
libxml2.so.2@
What’s the significance of the @?

ping www.linuxquestions.org
gives
ping : unknown host www.linuxquestions.org

So I guess I’m not connected to the net under runlevel1. I can su and change runlevels with telinit 2 or 3 say but then the shell becomes totally unstable jumping from a login: prompt back to the shell prompt and then the current user prompt, making it impossible to run any command.

Hoping you don’t loose patience
Nick

camorri 04-08-2010 09:29 AM

Quote:

libxml2.so.2@
What’s the significance of the @?
The @ sign indicates this is a symlink to the real file. ie, the real file is elsewhere on the system and this entry should point to the location. It may also allow the sym link to point to a file with a slightly different file name. It is a common practise. To find out where the link points, try using the command 'file libxml2.so.2' without the quotes, and without the trailing @ symbol. That should list what and where it points.

Quote:

ping www.linuxquestions.org
gives
ping : unknown host www.linuxquestions.org
This looks more like DNS did not work on the run level you were in. Try to ping the IP address 75.126.162.205 this is the address of linuxquestions. If that works, you are online, but without DNS lookup working.

Are you using DHCP to get an IP address, or have you got a static set up? You can always run the command 'ifconfig' to list the active interfaces.

nickcommandlinenewbie 04-08-2010 07:19 PM

Hi Cliff

file libxml2.so.2

gives

libxml2.so.2: cannot open ‘libxml2.so.2’ (No such file or directory)

so I guess I only have the pointer

ping 75.126.162.205

gives

connect : Network is unreachable

so I don’t suppose I’m connected

ifconfig

gives

-bash: ifconfig: command not found

but

man ifconfig

works so it seems things are missing even within bash.
I have the Mandriva Powerpack DVD that I used to load the 2009 system, should I change tacks, I think I’ve learnt how to mount to the cdrom drive? It might be possible to reinstall without formatting and save my files?

continuing thanks
Nick

camorri 04-09-2010 09:15 AM

Quote:

file libxml2.so.2
gives
libxml2.so.2: cannot open ‘libxml2.so.2’ (No such file or directory)

so I guess I only have the pointe
There was an update to the package libxml2_2, and this is the package the file libxmls.so.2 belongs to. Since you had a failure during update, it looks like the old version got deleted, and the new one not installed. I checked on my system, and I do have the package libxml2_2 installed. So, the trick is to reinstall this package to fix this issue.

In order to do that, I think we'll have to get your network working.
Quote:

ifconfig
gives
-bash: ifconfig: command not found
The file ifconfig is in /sbin directory. You should be able to run that as a non root user if you give the path, try the command '/sbin/ifconfig' That should work, unless the file is not there.

The ping not working may because the interface is not up in run level 1. You could always try to activate it.

For that you could try ( as root ) 'ifconfig eth0 up' assuming your interface is called eth0.

nickcommandlinenewbie 04-11-2010 05:48 AM

Hi Cliff,
I could only try out your suggestions late last night and didn’t have this second machine with me to document things as I went.

Trying to reconstruct:

running '/sbin/ifconfig' as a non root user returned me straight to the prompt.

so I listed the contents of the sbin folder and sbin was there in dark green with a * at the end which I think means it’s a script.
I also noticed ifcfg* so I ‘man’ed this and I think I tried ‘source /sbin/ifcfg’ at some stage and was taken right back to the shell prompt. Logging in again ‘ifconfig’ worked as root user and listed my Ethernet connection as eth0.
So joy at last, however all attempts to run urpmi commands ended with “mirror list” not found or similar.
So I decided to call it a night and being basically a “windows man” disconnected from the net by powering down, hoping I can reconnect today.

Thanks again

Nick

camorri 04-11-2010 08:20 AM

Strange behaviour to say the least. If ifconfig ran, then the binary is there.

ifcfg is used to configure, or change the configuration of your ethernet adapters. If you want to look at your current configuration, you should have files at /etc/sysconfig/network-scripts . The first ethernet card should have a file called ifcfg-eth0 the next will end in a 1. Have a look to see what is there. Here is what it may look like, this is my adapter. Note, I changed the IP addresses ( security reasons ).

Quote:

cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.x.yy
NETMASK=255.255.255.0
GATEWAY=192.168.x.y
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=yes
DNS1=208.67.222.222
DNS2=208.67.220.220
RESOLV_MODS=no
LINK_DETECTION_DELAY=6
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=yes

nickcommandlinenewbie 04-11-2010 08:22 PM

Hi Cliff

Tried running urpmi commands when connected

At one stage

Installation failed:
libdecore4 = 30000000:3.5.10-4.4mdv2009.0 is needed by kdelibs-common-30000000:3.5.10-4.4mdv2009.0.586

cat /etc/sysconfig/network-scripts/ifcfg-eth0

returns

DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
METRIC=10

ifup eth0

returns

Determining IP information for eth0… done.
./network-functions: line 82: .: ifcfg-eth0: file not found
./network-functions: line 82: .: ifcfg-eth0: file not found
Missing config file ifcg- ifcfg-eth0.
run-parts: missing operand
Try run-parts –help for more information

Now ifconfig runs and gives me info on
Link encap
HWaddr
inet addr
Bcast
Mask
inet6 addr
Scope: … UP…RUNNING…
MTU
Metric
RX bytes
TX bytes
Interrupt

After further attempts to run urpmi commands I have (4.3 MiB) under RX bytes

At one stage I had 62 kernels to choose from but none good for an i586 laptop

Thanks Nick

camorri 04-12-2010 09:21 AM

What command are you running with urpmi ? Could you post it as exactly as you entered it?

This is a laptop. Are you using a wired or a wireless connection? eth0 is the first wired card. The ifcfg-eth0 command looks O.K. for a wired card, using DHCP. You must have a router. Can you confirm that?

When you ran ifconfig, did the output look like this?

Quote:

/sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:xx:yy:zz:aa:bb
inet addr:192.168.x.y Bcast:192.168.x.y Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33439 errors:0 dropped:0 overruns:0 frame:0
TX packets:28560 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19415632 (18.5 MiB) TX bytes:2205622 (2.1 MiB)
Interrupt:24 Base address:0xc000

nickcommandlinenewbie 04-12-2010 08:09 PM

Hi Cliff,
Yes I have a router.
If I run ifconfig the output looks just like that without the ‘Base address:0xc000 ‘ address entry at the end. Yesterday I had an additional ‘inet6 addr’ entry after ‘Mask’, but its not there today

I tried running
urpmi.update Main Updates

output:
/usr/bin/aria2c: /usr/lib/libxml2.so.2: no version information available (required by /usr/bin/aria2c)
medium "Main" is up-to-date
/usr/bin/aria2c: /usr/lib/libxml2.so.2: no version information available (required by /usr/bin/aria2c)
medium "Main Updates" is up-to-date
/usr/bin/aria2c: /usr/lib/libxml2.so.2: no version information available (required by /usr/bin/aria2c)
medium "Main Updates debug" is up-to-date
/usr/bin/aria2c: /usr/lib/libxml2.so.2: no version information available (required by /usr/bin/aria2c)
medium "Contrib Updates" is up-to-date
/usr/bin/aria2c: /usr/lib/libxml2.so.2: no version information available (required by /usr/bin/aria2c)
medium "Contrib Updates debug" is up-to-date
/usr/bin/aria2c: /usr/lib/libxml2.so.2: no version information available (required by /usr/bin/aria2c)
medium "Non-free Updates" is up-to-date
…retrieving failed: curl failed: exited with 22

no metadata found for medium “Restricted Updates i586 70355”

Running ‘ifconfig’ again the ‘inet6 addr: ab01::23c:45de:fgh6:7i89/01’ (representative values) is there again.
I notice in addition that both times the ‘UP BROADCAST RUNNING MULTICAST’ line is preceded by ‘Scope: Link’

Running 'file libxml2.so.2'
returns
libxml2.so.2 : cannot open 'libxml2.so.2' (No such file or directory)

Thanks Nick

camorri 04-13-2010 09:15 AM

In order to fix this, we need a working connection. The urpmi is failing because of missing files, probably lost during the failed update.

You didn't tell me if this is a wired or wireless connection. Which is it?

nickcommandlinenewbie 04-13-2010 05:39 PM

Hi Cliff
Sorry to have missed that, yes its wired
Thanks Nick

camorri 04-13-2010 06:14 PM

What I would like you to do, is bring up eth0 with a 'ifconfig eth0 up', then run 'ifconfig eth0'. I want to make sure you get an IP address from the router.

If you do, then run the command 'netstat -r' This will show us the routing info. There should be a default route set.

It should look like this :

Quote:

netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.x.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.x.y 0.0.0.0 UG 0 0 0 eth0
Could you also post what is in the /etc/resolv.conf file. It should have the IP addresses of the name servers you use.

Post that, and we'll see where we go from there.

nickcommandlinenewbie 04-13-2010 06:30 PM

Any secuity risks in posting details?

netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.x.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
default 192.168.x.y 0.0.0.0 UG 0 0 0 eth0

No loopback line
Do I give the .x.y details?

cat /etc/resolv.conf

nameserver 192.168.x.y (same)

ifconfig eth0

inet addr 192.168.x.z (last number different)

However running ‘urpmi –auto-update’ I managed to install 8 out of 16 updates before getting error messages, so I assume the connection is working
What do I do about the elusive libxml2.so.2 file?

mecelec415 04-14-2010 06:53 AM

dont know if its too late but any way.
Does XFdrake fix the xserver so you can use the package manager.
can kde4 start from the promt?
i sometimes start kde4 as root su -

camorri 04-14-2010 09:37 AM

If you can install some packages, your link must be working.

Security risks. It is not a good practise to post real IP address on a public forum. At some point I read the posting guide lines, and it is not recommended. When you run NAT, the IP's I would post are used thousands of times by thousands of users. There is little real risk, why take any? The real IP's are not needed to solve most issues. We don't post any personal data either. Enough said.

O.K. libxml2.so.2 is installed by a package named libxml2_2 ( for 32 bit systems ) and lib64xml2_2 for 64 bit systems.

If you can get online again, try this,

Quote:

urpmi lib64xml2_2
Package lib64xml2_2-2.7.6-1mdv2010.0.x86_64 is already installed
My system is 64 bit. If your is 32 bit, just take the 64 out. If the package got deleted, it should install it. Give it a go, and see what happens.

nickcommandlinenewbie 04-14-2010 07:07 PM

Hi Cliff,

urpmi libxml2_2

returns
unable to access synthesis file of “Restricted i586 65624”, medium ignored
unable to access synthesis file of “Restricted Updates i586 70355”, medium ignored
Package libxml2_2-2.7.3-2.1mdv2009.1.i586 is already installed

managed to install some more packages (8/13) with
'urpmi --auto-update'
Installation then failed with libdecore

thanks
Nick

camorri 04-15-2010 09:24 AM

I'm going to suggest you re-build the rpm data base. Here are the instructions. You will need to be root to do so.

Quote:

Rebuild your database

If the database becomes inconsistent (an inconsistency can lead rpm to tell you that a "package is already installed" when it is actually not, and vice-versa).

rm -rf /var/lib/rpm/__db*
rpm --rebuilddb
After the data base is rebuilt, try to install libxml2_2 again. See what happens. You can also try another auto-update.

I have never see the medium ignored messages. I'll see if I can find an answer there.

nickcommandlinenewbie 04-15-2010 06:26 PM

Hi Cliff

rm -rf /var/lib/rpm/__db*

returned to the prompt apparently immediately

rpm –rebuilddb

took a while before returning to the prompt, so presumably ran successfully.

urpmi libxml2_2

then gave the identical output as yesterday

'urpmi --auto-update'

Resulted in the same output as yesterdays second try, failing to install the remaining 5 packages

Last error message:
Installation failed:
libdecore4 = 30000000:3.5.10-4.4mdv2009.0 is needed by kdelibs-common-30000000:3.5.10-4.4mdv2009.0.586
(as in post 13)

then after restarting, next morning:

urpmi libxml2_2
gives same result

'urpmi --auto-update'
succeeded in installing 24/28 packages failing again with libdecore

thanks
Nick

camorri 04-16-2010 09:14 AM

Well, I'm out of ideas, sorry about that. At this point I think you have two choices.

First, you could see help, here -->http://mandrivausers.org/index.php?act=Login&CODE=00

You would be best off joining the board. Open a problem, and point back to this thread. It may save someone with more knowledge some time.

Second, you could do a clean install. I do not recommend upgrading, especially on a system that is not running correctly.

There is still a possibility you have hardware problems communicating. ( Just a guess on my part ).

Sorry I can not help more.

nickcommandlinenewbie 04-16-2010 05:23 PM

Hi Cliff,
Thanks for all your help.
Not quite sure which course to take yet. Tempted to do both using a third partition but I guess that might just exacerbate hardware communication problems.
I learnt a lot anyway.
Thanks again
Nick


All times are GMT -5. The time now is 07:51 PM.