Not able to use apt-get update and apt-get upgrade: 0%[Waiting for headers]

Moderator: mike

Post Reply
belphegor
Posts: 4
Joined: Sun Feb 21, 2021 8:08 pm

Not able to use apt-get update and apt-get upgrade: 0%[Waiting for headers]

Post by belphegor » Sun Feb 21, 2021 8:34 pm

Hi everyone,

I need help with the Ubuntu image on my EVE-NG:

Image version:

eve@ubuntu:~$ hostnamectl
Static hostname: ubuntu
Icon name: computer-vm
Chassis: vm
Machine ID: af1a32c72d434ad5afe533049e8de9b6
Boot ID: cdc4e7142e0243c890a20acbd8524378
Virtualization: kvm
Operating System: Ubuntu 18.04.4 LTS
Kernel: Linux 4.15.0-96-generic
Architecture: x86-64

Internet connection is live and working fine:

eve@ubuntu:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=13.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=13.4 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 13.467/13.492/13.518/0.118 ms
eve@ubuntu:~$ nslookup google.com
Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: google.com
Address: 216.58.206.206
Name: google.com
Address: 2a00:1450:4017:807::200e

Error:

eve@ubuntu:~$ sudo apt-get update
[sudo] password for eve:
0% [Waiting for headers] [Waiting for headers]


I am a networking engineer, and I started Linux not so long ago, but I am not able to run it proplery from EVE-NG, and I hoped you guys could help me?

Thank you in advance,

Belphegor

Uldis (UD)
Posts: 5067
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Not able to use apt-get update and apt-get upgrade: 0%[Waiting for headers]

Post by Uldis (UD) » Mon Feb 22, 2021 11:11 am

you mate ping named ping not numeric

ping www.google.com

works??

It is dns issue, or maybe your eve is behind FW or proxy as well

belphegor
Posts: 4
Joined: Sun Feb 21, 2021 8:08 pm

Re: Not able to use apt-get update and apt-get upgrade: 0%[Waiting for headers]

Post by belphegor » Tue Feb 23, 2021 4:37 pm

Hi,

First of all thank you for your reply, but I would say that DNS is working fine since I am able to use nslookup or to ping name such as b92.com

I configured in /etc/resolv.conf that it should use 8.8.8.8, but again I am not able to do any of the commands mentioned above.

If you have any other suggestion I am all ears.

belphegor
Posts: 4
Joined: Sun Feb 21, 2021 8:08 pm

Re: Not able to use apt-get update and apt-get upgrade: 0%[Waiting for headers]

Post by belphegor » Tue Feb 23, 2021 4:38 pm

Just to add that my EVE is behind a usual modem that you get from the service provider, on another Win machine I have Ubuntu on VirtualBox and it's working fine so I would say that it's not a modem/ISP problem.


belphegor
Posts: 4
Joined: Sun Feb 21, 2021 8:08 pm

Re: Not able to use apt-get update and apt-get upgrade: 0%[Waiting for headers]

Post by belphegor » Thu Feb 25, 2021 7:20 pm

Hi,

You got it wrong, I said that another separate Linux VM sits on a VBOX and works just fine, there is no any problem with the DNS or ISP.

Anyone else having this problem? Can anyone else suggest any workaround for this problem?

Kind regards,

Post Reply