Hi there,
Please see what happens when I am using VM in
Bridge Mode:
root@virtualmachine:~#
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:8b:a3:d8 brd ff:ff:ff:ff:ff:ff
inet
192.168.2.204/24 brd 192.168.2.255 scope global dynamic noprefixroute enp0s3
valid_lft 86369sec preferred_lft 86369sec
root@virtualmachine:~#
root@virtualmachine:~#
nslookup archive.ubuntu.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: archive.ubuntu.com
Address: 91.189.88.142
Name: archive.ubuntu.com
Address: 91.189.88.152
Name: archive.ubuntu.com
Address: 2001:67c

:15
Name: archive.ubuntu.com
Address: 2001:67c

8001::23
Name: archive.ubuntu.com
Address: 2001:67c

8001::24
Name: archive.ubuntu.com
Address: 2001:67c

:18
root@virtualmachine:~#
root@virtualmachine:~#
apt update
Err:1
http://archive.ubuntu.com/ubuntu focal InRelease
Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out
Err:2
http://archive.ubuntu.com/ubuntu focal-updates InRelease
Unable to connect to archive.ubuntu.com:http:
Err:3
http://archive.ubuntu.com/ubuntu focal-backports InRelease
Unable to connect to archive.ubuntu.com:http:
Err:4
http://archive.ubuntu.com/ubuntu focal-security InRelease
Unable to connect to archive.ubuntu.com:http:
Reading package lists... Done
Building dependency tree
Reading state information... Done
180 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out
W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/ ... /InRelease Unable to connect to archive.ubuntu.com:http:
W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/ ... /InRelease Unable to connect to archive.ubuntu.com:http:
W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/ ... /InRelease Unable to connect to archive.ubuntu.com:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@virtualmachine:~#
I have tried with 'sudo' and also as 'root' and I got same result.
And now, when I am using
NAT:
root@virtualmachine:~#
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:8b:a3:d8 brd ff:ff:ff:ff:ff:ff
inet
10.0.2.15/24 brd 10.0.2.255 scope global dynamic noprefixroute enp0s3
valid_lft 86250sec preferred_lft 86250sec
root@virtualmachine:~#
nslookup archive.ubuntu.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: archive.ubuntu.com
Address: 91.189.88.142
Name: archive.ubuntu.com
Address: 91.189.88.152
Name: archive.ubuntu.com
Address: 2001:67c

:15
Name: archive.ubuntu.com
Address: 2001:67c

8001::23
Name: archive.ubuntu.com
Address: 2001:67c

:18
Name: archive.ubuntu.com
Address: 2001:67c

8001::24
root@virtualmachine:~#
apt update
Hit:1
http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2
http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3
http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4
http://archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists...
Building dependency tree...
Reading state information...
180 packages can be upgraded. Run 'apt list --upgradable' to see them.
Thank you.