Solved

Update Linux from Internet

Posted on 2007-12-05
12
262 Views
Last Modified: 2013-12-16
I have a machine running some version of Linux. It seems to be a very minimal install.
I need to take some data files off the machine, but I cannot mount a USB thumb drive.
I can access the internet with ping, so I thought I might avail myself of some update.
How can I update the machine - with Samba, for example, so I can connect to it.
Very new to Linux:-)
0
Comment
Question by:SIL-Mozambique
  • 6
  • 3
  • 2
  • +1
12 Comments
 
LVL 87

Expert Comment

by:rindi
ID: 20411340
Which Linux distro is it?
0
 
LVL 14

Expert Comment

by:arrkerr1024
ID: 20411841
In debian distros like ubuntu you would "apt-get install <package>", so "apt-get install samba" to install samba.  In redhat/fedora/other yum distros you would "yum install samba".
0
 
LVL 3

Expert Comment

by:amirs80
ID: 20417605
mention your linux distro and quite better version
there are many issues including dns resolving issue
so check it by ping www.google.com
if it reply u very fine

if you are using redhat based distro then first check that yum is installed in it by giving the command
#rpm -qa | gep yum
if it found, very well else you will install it by command
rpm -i yum-version-**
when  you install it
then u update the package yum update samba
0
 

Author Comment

by:SIL-Mozambique
ID: 20418159
arrkerr1024 - I tried apt-get, and it runs - so I guess I have Debian.
After it finds all its missing dependencies, it tries to begin the download.
However, I get errors. Tries to connect to http.us.debian.org, says downloading headers, and then....

Err http://http.us.debian.org unstable/main libgpg-error0 1.2-1
404 Not Found [IP:64.50.236.52 80]

An then it repeats this for many packages.

At one point, it downloaded something, but then said incomplete download, and now am stuck
 
0
 
LVL 14

Expert Comment

by:arrkerr1024
ID: 20420804
Yikes... unstable?  Try an "apt-get  update" first, that should pull in the latest list, then do the "apt-get install xxxxx".
0
 

Author Comment

by:SIL-Mozambique
ID: 20456892
I did apt-get update, and let it crank away a couple of days (internet connections aren't the best)
Seemed to work fine.
I did apt-get install samba, and it wanted an upgrade to libcupsys2
I did apt-get install libcupsys2, and let it crank away for a while.
Once again, apt-get install samba, and I get more unmet dependencies.
Says try apt-get -f install to fix these.

So I get the following messages:
The following extra package will be installed:
   libc6
<stuff>
The following package will e upgraded:
   libc6
1 upgraded,...
5 not fully installed or removed
<some extra messages>
Do you want to continue? Y
Preparing to replace libc6 2.3.6-9.....
<stuff about stopping services, ending with the mesage no services need to be stopped>
Do you want to upgrade glibc now?

No a bunch of lines scroll by rather quickly, the last bunch say
Readlink: invalid option --e
This is repeated a number of times.

Then a Warning: POSIX threads library NPTL requires kernel version 2.6.8 or later

How do I know what kernel I have?

Then it stops, error processing /var/cache/apt/archives/libc6_2.7-4_i386.deb (-- unpack)

0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 87

Expert Comment

by:rindi
ID: 20457668
Check your /boot folder. The Kernel versions of your system should be viewable there by looking at the file versions listed there.

You may have to upgrade your system with apt-get upgrade.
0
 

Author Comment

by:SIL-Mozambique
ID: 20462772
rindi, if you ream my message, the first line says - I did apt-get update.
To tell me to do it again, is not helpful.
0
 

Author Comment

by:SIL-Mozambique
ID: 20462784
Sorry, rindi. I didn't read upgrade, thought it said update. Will do.
0
 
LVL 14

Accepted Solution

by:
arrkerr1024 earned 500 total points
ID: 20462861
You're in for one heck of a download at this point, especially if the upgrade is going to be big.  If you just need to get some data off of this machine I'd recommend you download the ubuntu CD which runs the whole OS from the CD, and from that just mount your hard drive and your usb flash drive and copy the data off.  I'd go with the upgrade if you wanted to use the machine, but it sounds like you don't.  And if you did I would probably pick a distro that is easier to use for people that are new to linux.  And you could be one something REALLY old (what does a "uname -a" say, and a "cat /etc/issue"?).
0
 

Author Comment

by:SIL-Mozambique
ID: 20485194
Hi arrkerr1024
I seem to get stuck at one point. I have done apt-get update, and apt-get upgrade
I get one error, exactly as in my earlier post.
When it is trying to upgrade libc6 from 2.3.6 to libc6 2.7, it gets an error
readlink invalid option --e
Indeed, typing readlink --help, there is no --e option, so which script has this error?
I have tried various other routes, like apt-get -f install, and it still gets stuck on that script.

I found the libc6.preinst script. It has readlink -f, but nor -e so maybe the error message isn't accurate.
I am at a loss how to continue.

By the way, this is a working machine. It is managing our wireless using chillispot. I wanted to set up another machine, and install it, so that I could understand the setup. But I would have to transfer the database, because it contains all the accounting information. To upgrade is fine with me, if it would work
0
 

Author Comment

by:SIL-Mozambique
ID: 20540431
Anybody able to help me with this?
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now