Problems with apt-get update, upgrade and install

Discussion in 'Installation/Configuration' started by DeltaNiner, Jan 3, 2009.

  1. DeltaNiner

    DeltaNiner New Member

    I am installing Ubuntu Server V8.10 64 bit as a VMware machine (I already have Ubuntu Studio v8.10 running as one) My base OS is WINXP_SP3

    I am following the guide "perfect how to Ubuntu server guide" and i have done everything correctly and now i am stuck at this point ...

    "root@server1:/home/administrator# apt-get update

    I get messages that include the following:

    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.27-9.19_amd64.deb
    Could not resolve 'security.ubuntu.com'
    Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.8~20080505-0ubuntu7_amd64.deb
    Could not resolve 'us.archive.ubuntu.com'

    Now, if I go to look for those individual files, they are available, so why are they failing to fetch?

    I have checked 'sources.list', 'hosts' and 'interfaces' thoroughly, so am at somewhat of a loss.
     
  2. DeltaNiner

    DeltaNiner New Member

    Addendum to question above.

    I assume that every time I attempt to run apt-get the results are logged somewhere, please let me know where I can find these logs.

    Thank you!
     
  3. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/resolv.conf?
     
  4. DeltaNiner

    DeltaNiner New Member

    Contents of /etc/resolv.conf

    domain localdomain
    search localdomain
    nameserver 192.168.50.2
     
  5. DeltaNiner

    DeltaNiner New Member

    Same problem with 8.04 . . .

    Hi, I tried to install the 8.04 LTS server, and essentially had the same problem. I can only surmise that there is something fundamentally prohibitive about my host PC setup.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Please try this in /etc/resolv.conf (put it in the first line:
    Code:
    nameserver 145.253.2.75
     
  7. DeltaNiner

    DeltaNiner New Member

    Thanks, I did add the nameserver in, but . . .

    I still seem to have problems downloading some files.

    The .doc file in this link is a screenshot demonstrating the issue:

    http://baartman.us/images/Ubuntu/
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Can you post the screenshot here?

    What are the outputs of
    Code:
    ifconfig
    and
    Code:
    route -nee
    ? What's the gateway IP?
     
  9. DeltaNiner

    DeltaNiner New Member

    Screenshots

    Hi Falko, I really appreciate the interest you are taking in my server problems!

    The gateway ip is 192.168.1.1

    The screenshots are at this link:

    http://baartman.us/images/Ubuntu/
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Can you post the outputs of

    Code:
    ifconfig
    and

    Code:
    route -nee
    here in the forum?

    Also, I'd prefer a screenshot in .jpg, .png, or .gif format, not anything pasted into a Word document.
     
  11. DeltaNiner

    DeltaNiner New Member

    JPEGs of Ifconfig and Netstat

    They're too large to drop on the forum, so I'll put them on my server again:

    baartman.us/images/Ubuntu
     
  12. falko

    falko Super Moderator Howtoforge Staff

    What are the outputs of
    Code:
    ping -c2 192.168.1.1
    and
    Code:
    ping -c2 74.125.45.100
    ?

    (BTW, you can copy & paste the outputs by using an SSH client such as PuTTY - no need to create screenshots.)
     
  13. DeltaNiner

    DeltaNiner New Member

    ping replies

    ping -c2 192.168.1.1
    ping 192.268.1.1 (192.168.1.1) 56 (84) bytes of data.
    From 192.168.1.100 icmp-seq=1 Destination host unreachable
    From 192.168.1.100 icmp-seq=2 Destination host unreachable
    --- 192.168.1.1 ping statistics ---
    2 packets transmitted, o received, +2 errors, 100% packet loss, time 1000ms, pipe 2
    ------------------------------------------------------
    Exactly the same response for 74.125.45.100
    ------------------------------------------------------

    Falko, I am rather new at this, and have no idea how to get Putty to operate, I tried it from an 8.10 Desktop VM but its not installed there. I did find a "Host Terminal Client" and tried to connect to server1.example.com, but the client cannot find it, allthough both VMs are on the same Host.
     
  14. falko

    falko Super Moderator Howtoforge Staff

    On Ubuntu, you can simply open a terminal and run
    Code:
    ssh username@ip_address
    to log in. But I doubt this will work because your server doesn't seem to have any network connectivity. Can you undo the changes to /etc/network/interfaces so that the system uses DHCP again? Restart the network and then post the outputs of
    Code:
    route -nee
    and
    Code:
    ifconfig
    again.
     
  15. DeltaNiner

    DeltaNiner New Member

    DHCP does the trick . . .

    Hi Falko, I have learnt much about linux networking protocol and syntax in between our correspondence!

    Suffice it to say that changing to DHCP has solved the issue. I believe my ISP was blocking my static addressing scheme.

    You advice and interest is much appreciated!
     
  16. Hoss212

    Hoss212 New Member

    having kinda the same problem

    I followed the step as far as you went with him i reset my /etc/interfaces/ file to defaults to use dhcp and when i restart it gives this dialog:

    (sry no pic its on a different machine)
    <snip>
    Listening on LPF/eth0/00:13:72:d0:4f:bd
    Sending on LPF/eth0/00:13:72:d0:4f:bd
    Sending on Socket/fallback
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
    (it repeat line above this 8 times at different interval numbers)
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping
    <snip>
    thats my problem so far if there are any of dialogs you need ill be happy to supply them.
     
  17. falko

    falko Super Moderator Howtoforge Staff

    Do you have a DHCP server in your network (e.g. on your router)?
     
  18. Hoss212

    Hoss212 New Member

    How do i go abought checking that?
     
  19. falko

    falko Super Moderator Howtoforge Staff

    You can check that in your router's web interface.
     
  20. Hoss212

    Hoss212 New Member

    Yes there is DHCP activated on my router.
    But i do not own my router, my internet provider maintains it.

    I only know it has DHCP enabled because my laptop is pluged into the same router and the connection details say it is enabled.
     

Share This Page