Re: How to fix ldso? Urgent.

1997-07-24 Thread Dima
joost witteveen wrote:
...
 i.e., mount and cp arn't bash internals. But cat is, so that's why I
 suggested the use of cat ...

(Somehow I was sure cp was a builtin) cat isn't listed in the docs as 
a builtin either;  type cat says cat is /bin/cat.

Just curious
--
Dimitri
if replying to a Usenet posting,
reply to emaziuk at curtin dot edu dot au
 
The views expressed above (hereafter, views) are mine and ownership 
remains with me.  They are provided as is without expressed or 
implied warranty of any kind, including, but not limited to, the
implied warranties of the suitability of the views for any purpose.



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: How to fix ldso? Urgent.

1997-07-24 Thread joost witteveen
 joost witteveen wrote:
 ...
  i.e., mount and cp arn't bash internals. But cat is, so that's why I
  suggested the use of cat ...
 
 (Somehow I was sure cp was a builtin) cat isn't listed in the docs as 
 a builtin either;  type cat says cat is /bin/cat.

Hey, you're right. I am rather sure that at some point, cat was
a builtin, but cp etc were not. But now (with both the bo and
hamm bash) they seem not to be builtins.


-- 
joost witteveen, [EMAIL PROTECTED]
#!/usr/bin/perl -sp0777iX+d*lMLa^*lN%0]dsXx++lMlN/dsM0j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$kSK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: How to fix ldso? Urgent.

1997-07-23 Thread Lindsay Allen
Hi Joost,

Success!  

This is what I had to start with:- 
elm# cd /lib ; ll ld*
-rwxr-xr-x   1 root root   161677 Jun  5 21:35 ld-2.0.4.so*
-rwxr-xr-x   1 root root22305 Jul 19 03:13 ld-linux.so.1.8.10*
lrwxrwxrwx   1 root root   11 Jul  3 18:19 ld-linux.so.2 - 
ld-2.0.4.so*
-rwxr-xr-x   1 root root20640 Mar  4 01:42 ld.so*
-rwxr-xr-x   1 root root   103272 Jul 19 03:13 ld.so.1.8.10*

I still had some functionality - the bash internals worked, mount and cp
worked, so after a long look at your message I:-
  on another box, extracted ldso_1.9 to a floppy
  mounted the floppy in my box
  cd /lib
  cp /floppy/lib/ld-linux.so.1.9.2 .
  ln -s ld-linux.so.1.9.2 ld-linux.so.1

This left me with:-

elm# ll ld*
-rwxr-xr-x   1 root root   161677 Jun  5 21:35 ld-2.0.4.so*
lrwxrwxrwx   1 root root   17 Jul 23 08:52 ld-linux.so.1 - 
ld-linux.so.1.9.2*
-rwxr-xr-x   1 root root22305 Jul 19 03:13 ld-linux.so.1.8.10*
-rwxr-xr-x   1 root root22257 Jul 23 08:50 ld-linux.so.1.9.2*
lrwxrwxrwx   1 root root   11 Jul  3 18:19 ld-linux.so.2 - 
ld-2.0.4.so*
-rwxr-xr-x   1 root root20640 Mar  4 01:42 ld.so*
-rwxr-xr-x   1 root root   103272 Jul 19 03:13 ld.so.1.8.10*
elm#

I installed a small package with dpkg to see how it went and then 
dpkg -i .../ldso_1.9.2-3

and it all seems fine.  I didn't even lose my net connection.

Many thanks, Joost.  I hope that I carried out the intent if not the
letter of your suggestions.  I owe you one.

I have a spare partition here and much spare time so any time you want a
destructive test carried out, pehaps along the above lines, I am quite
happy to oblige. Putting Debian back on from my cdrom (thank you, LSL) is
a breeze. 

Lindsay

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lindsay Allen   [EMAIL PROTECTED]  Perth, Western Australia
voice +61 8 9316 2486modem +61 8 9364-9832  32S, 116E
http:  http://rolf.ece.curtin.edu.au/~lindsay   debian linux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

On Tue, 22 Jul 1997, joost witteveen wrote:

  My box has both libc5 and libc6 installed.  I just made a mistake and 
  downgraded ldso_1.9.2-2 to ldso_1.8.10-2.1.  Now I don't seem to be able 
  to run any commands - certainly not dpkg at any rate.  So I am between a 
  rock and a hard place, as the saying goes.
  
  I have another two debian boxes here so I can access ldso_1.9.2-3 and I 
  can run a rescue disk, but I don't know how to fix it by hand.  Once I 
  reboot I lose my net connection until it is fixed, so I would appreciate 
  some expert help.
 
 I've been in this situation too, and now (months aferwords) I realise that
 probably the way to fix this is by typing:
 
 cd /lib
 echo ld*
 
 Now you will see a list of ld* files. On my (working) system, I have
 /lib# ls ld*
 ld-2.0.4.so*ld-linux.so.1.9.2*  ld.so*
 ld-linux.so.1@  ld-linux.so.2@
 
 I believe you will mis at least two symlinks here, but I'm not sure
 which ones any more.
 
 Then, type
 
   /lib# cat ld-linux.so.1.9.2  ld-linux.so.1
 or
   /lib# cat ld-2.0.4.sold-linux.so.2
 
 (replacing ld-linux.so.1 or ld-linux.so.2  by whatever links
 you are missing, possibly ld.so).
 
 After that, I *think* you've got a wroking system again.
 
 Please, Please, tell me if this worked!
 
 
 -- 
 joost witteveen, [EMAIL PROTECTED]
 #!/usr/bin/perl -sp0777iX+d*lMLa^*lN%0]dsXx++lMlN/dsM0j]dsj
 $/=unpack('H*',$_);$_=`echo 16dio\U$kSK$/SM$n\EsN0p[lN*1
 lK[d2%Sa2/d0$^Ixp|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
 #what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/
 



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: How to fix ldso? Urgent.

1997-07-23 Thread joost witteveen
 Hi Joost,
 
 Success!  
 
 This is what I had to start with:- 
 elm# cd /lib ; ll ld*
 -rwxr-xr-x   1 root root   161677 Jun  5 21:35 ld-2.0.4.so*
 -rwxr-xr-x   1 root root22305 Jul 19 03:13 ld-linux.so.1.8.10*
 lrwxrwxrwx   1 root root   11 Jul  3 18:19 ld-linux.so.2 - 
 ld-2.0.4.so*
 -rwxr-xr-x   1 root root20640 Mar  4 01:42 ld.so*
 -rwxr-xr-x   1 root root   103272 Jul 19 03:13 ld.so.1.8.10*
 
 I still had some functionality - the bash internals worked, mount and cp

You don't have bash as your shell, but something else (kiss or somethign):

rulcmc:~$ type mount
mount is /bin/mount
rulcmc:~$ type cp
cp is /bin/cp

i.e., mount and cp arn't bash internals. But cat is, so that's why I
suggested the use of cat ...

But if you had cp available, I'm rather sure that just saying:

cd /lib
cp ld-linux.so.1.8.10 ld-linux.so.1

would have done the job too (care to try it out? :)

 Many thanks, Joost.  I hope that I carried out the intent if not the
 letter of your suggestions.  I owe you one.

Well, the intent was to save your system. So, yes you carried out
the intent. It's not quite the letter, and I still sortof wonder
wheter cat would have worked. At the time I had the problem, I didn't
think of using cat (and cp, mount, etc also were not available for me),
so I compiled my own statically linked version of cp, put it on a
NFS volume I happened to have mounted on a different computer, and
then used that static cp on my main computer to save it.

But later I realised that cat should just also save your system.

Anyway, I think about downgrading to ld.so-1.8 myself no, and try
the cat method (the only one available for people that use real
bash). If it works, I'll post a letter about that weekly to debian-user,
explaining future victims how to save their systems.

Thanks,

-- 
joost witteveen, [EMAIL PROTECTED]
#!/usr/bin/perl -sp0777iX+d*lMLa^*lN%0]dsXx++lMlN/dsM0j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$kSK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


How to fix ldso? Urgent.

1997-07-22 Thread Lindsay Allen
My box has both libc5 and libc6 installed.  I just made a mistake and 
downgraded ldso_1.9.2-2 to ldso_1.8.10-2.1.  Now I don't seem to be able 
to run any commands - certainly not dpkg at any rate.  So I am between a 
rock and a hard place, as the saying goes.

I have another two debian boxes here so I can access ldso_1.9.2-3 and I 
can run a rescue disk, but I don't know how to fix it by hand.  Once I 
reboot I lose my net connection until it is fixed, so I would appreciate 
some expert help.

Lindsay


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: How to fix ldso? Urgent.

1997-07-22 Thread joost witteveen
 My box has both libc5 and libc6 installed.  I just made a mistake and 
 downgraded ldso_1.9.2-2 to ldso_1.8.10-2.1.  Now I don't seem to be able 
 to run any commands - certainly not dpkg at any rate.  So I am between a 
 rock and a hard place, as the saying goes.
 
 I have another two debian boxes here so I can access ldso_1.9.2-3 and I 
 can run a rescue disk, but I don't know how to fix it by hand.  Once I 
 reboot I lose my net connection until it is fixed, so I would appreciate 
 some expert help.

I've been in this situation too, and now (months aferwords) I realise that
probably the way to fix this is by typing:

cd /lib
echo ld*

Now you will see a list of ld* files. On my (working) system, I have
/lib# ls ld*
ld-2.0.4.so*ld-linux.so.1.9.2*  ld.so*
ld-linux.so.1@  ld-linux.so.2@

I believe you will mis at least two symlinks here, but I'm not sure
which ones any more.

Then, type

  /lib# cat ld-linux.so.1.9.2  ld-linux.so.1
or
  /lib# cat ld-2.0.4.sold-linux.so.2

(replacing ld-linux.so.1 or ld-linux.so.2  by whatever links
you are missing, possibly ld.so).

After that, I *think* you've got a wroking system again.

Please, Please, tell me if this worked!


-- 
joost witteveen, [EMAIL PROTECTED]
#!/usr/bin/perl -sp0777iX+d*lMLa^*lN%0]dsXx++lMlN/dsM0j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$kSK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .