This is my first time messing with Linux so please forgive my ignorance.
I have an HP Elitebook 840 G8 that I’ve installed Ubuntu server on. I was trying to install a GUI on it, so I tried pulling the SLiM package from the web, but got "Temporary Failure resolving ‘Archive.ubuntu.com’.
This laptop doesn’t have an Ethernet Port, so I have to use a Microsoft USB-Ethernet dongle. But I haven’t been successful in getting that to work.
Is there a way for me to manually download the driver on a USB, then load it that way?
the Wifi adapter is recognized, but if I try to ping ANYTHING, including the gateway, I get “ping: connect: network is unreachable”
Is your IP address 169.254.x.y by any chance? That would mean you can actually “see” the network but have no usable address (169.254.x.y is APIPA, you could say a fallback basically when no dhcp is available). Try “ip addr” on the commandline or “ifconfig” for us oldtimers
ifconfig gives "command not found, but can be installed with sudo apt net-tools. That command gives me "Temporary failure resolving ‘archive.ubuntu.com’
ip addr gives:
1: lo: <LOOPBACK, UP, LOWER_UP> mtu ##### 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 noprefixroute valid_lft forever preffered_lft forever 2: wlp02s20f3: <BROADCAST, MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether [MAC Address] brd [IPv6 MAC Address] 4: enx949aa9857457: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether [MAC Address] brd ff:ff:ff:ff:ff:ff
Your USB ethernet adapter is down according to this output.
In case Ubuntu server comes with e. g. dhclient installed, you should be able to get a working network connection by ensuring a cable is properly plugged into your USB ethernet adapter and running
sudo dhclient -v enx949aa9857457
You might want to post the output of that command here. Alternatively, configure the USB adapter using one of the management tools mentioned in this thread already.
You only have loopback addresses, that won’t work at all. Odd. Unless Ubuntu doesn’t use dhcp. You can try eg “sudo dhclient” or do a manual configuration in the range of your modem (eg ip 192.168.1.2, netmask /24 aka 255.255.255.0, gw 192.168.1.1, dns 9.9.9.9).
Vivek is (y)our friend: https://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/