LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't connect to any server through terminal (https://www.linuxquestions.org/questions/linux-networking-3/cant-connect-to-any-server-through-terminal-577139/)

restles.s 08-14-2007 07:50 PM

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

Matir 08-14-2007 08:13 PM

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.

restles.s 08-14-2007 08:19 PM

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

Matir 08-14-2007 08:23 PM

Can you ping google.com?

Try removing the lock file to prevent a stale lock.

restles.s 08-14-2007 08:43 PM

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

Matir 08-14-2007 08:54 PM

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.

restles.s 08-14-2007 09:16 PM

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.

fdbecker 08-21-2007 04:57 PM

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.

restles.s 08-22-2007 02:47 AM

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


All times are GMT -5. The time now is 02:12 PM.