LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2007, 07:50 PM   #1
restles.s
LQ Newbie
 
Registered: Aug 2007
Distribution: ubuntu
Posts: 5

Rep: Reputation: 0
can't connect to any server through terminal


Hey,

whenever i try to connect to a server to sownload a program or something, the connection fails.
I don't have any problems in connecting from a browser or with a email program, and even the add/remove program works fine.

typing sudo apt-get updategives me this output E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory

i tried to ping a couple of websites, including archive.ubuntu.com and none work.
it seems that it is trying to attempt the connection, but there is no response.

anyone have any idea?
thank you
Lor
 
Old 08-14-2007, 08:13 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The inability to lock is completely different from being unable to connect to archive.ubuntu.com, which I can ping just fine. You might want to try a different Ubuntu mirror.
 
Old 08-14-2007, 08:19 PM   #3
restles.s
LQ Newbie
 
Registered: Aug 2007
Distribution: ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
i managed to change the morror on the add/remove program, but i do not know how i could do so in terminal.

how can i unlock it?
and anyways, why when i try to ping something it just doesn't give any answer.

thanx again
 
Old 08-14-2007, 08:23 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Can you ping google.com?

Try removing the lock file to prevent a stale lock.
 
Old 08-14-2007, 08:43 PM   #5
restles.s
LQ Newbie
 
Registered: Aug 2007
Distribution: ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
i tried to ping google before..
same thing happens
outputs
PING www.l.google.com (72.14.253.104) 56(84) bytes of data.
and gets stuck...for hours...if i don't close the terminal.

which are the locks that i have to remove..
sorry i'm a total newbie...

thanx
 
Old 08-14-2007, 08:54 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The lock from your error message is: /var/lib/apt/lists/lock

Why pinging www.l.google.com?

Seems like your system has a problem sending outgoing pings.
 
Old 08-14-2007, 09:16 PM   #7
restles.s
LQ Newbie
 
Registered: Aug 2007
Distribution: ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
i pinged www.google.com, but it is redirected to www.l.google.com automatically

i removed "lock" and launched apt-get update/upgrade
it connects and does its stuff..

now i tried to install the file hplip-2.2.7.run, but launching it with sh, as said on the installation page.

the response is, after unpacking all the files: INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 6 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency for option 'network': libcrypto (libcrypto - OpenSSL cryptographic library)
warning: Missing REQUIRED dependency for option 'network': libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing REQUIRED dependency for option 'scan': sane-devel (SANE - Scanning library development files)
warning: Missing OPTIONAL dependency for option 'scan': pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))
warning: Missing OPTIONAL dependency for option 'scan': scanimage (scanimage - Shell scanning program)


CHECKING FOR NETWORK CONNECTION
-------------------------------
error:
The network appears to be unreachable. Installation cannot complete without access to
error: distribution repositories. Please check the network and try again.

it appears that there is no network connection...as i previously mentioned.

i don't know if it has problems in finding the libraries in particular websites or what.
still pinging whatever website
www.yahoo.com gives
PING www.yahoo-ht3.akadns.net (209.131.36.158) 56(84) bytes of data.
 
Old 08-21-2007, 04:57 PM   #8
fdbecker
LQ Newbie
 
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
restless: for some odd reason I did EXACTLY what you did and ran into exactly the same issues.
So far I've been trying to mess with the repositories but no luck. Please keep posting in this thread and so will I. Let's hope we can find a solution for this problem.
 
Old 08-22-2007, 02:47 AM   #9
restles.s
LQ Newbie
 
Registered: Aug 2007
Distribution: ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
fdbecker

well i solved the problem with apt-get update/upgrade.
the ping problem continues, but i found out is barred on my network..
i was just using it to see whether i could ping any random website...and see if the network was connected.
i had to change something in a file for apt get, i could look up if you need to know. can't remember on top of my head now.
then..
if you need to install the printer drivers you can do it manually following these instructions
http://hplip.sourceforge.net/install...os/ubuntu.html
it worked fine for me

ciao
Lor
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using fedora to connect to m$ terminal server jbzy3000 Fedora 6 03-05-2005 09:19 AM
how to connect forked process to a specific terminal pcweirdo Linux - Software 2 02-22-2005 03:17 AM
Terminal emulator to connect to SCO server spyregyre Linux - Networking 3 12-15-2004 04:45 AM
root cannot connect to an X server in a terminal GameboyHippo Linux - Software 4 02-09-2004 10:25 AM
network card won't connect until I go to terminal RayBonz Linux - Networking 4 04-22-2001 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration