Solved

Update Linux from Internet

Posted on 2007-12-05
12
265 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 88

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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 88

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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

863 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

18 Experts available now in Live!

Get 1:1 Help Now