networks – ubuntu has no network but dhclient fixes it

I broke my Ubuntu 19.04 by removing python, and fixed it using a LiveCdRecovery. It works fine, but after every reboot, there is no network and I have to use dhclient command to solve the network problem, and VPN does not work in any case.

$ sudo dhclient enp0s31f6 

What can I do to return the network to Ubuntu 19.04?

Do I need dhclient?

Hello,

I'm seeing a lot of this in my server logs:

May 7 16:54:56 server3 dhclient[1092]: DHCPREQUEST in eth1 to xxx.xxx.xxx.xxx po … | Read the rest of http://www.webhostingtalk.com/showthread.php?t=1763802&goto=newpost

network – process dhclient cloud-init / var / tmp

There is a process that is running that I am trying to investigate why it is working and what it is doing. The server is an Ubuntu Linux server that runs on AWS. Execution 16.04.

The process in question is:

root 829 0.0 0.0 16116 2888? Ss Jun19 0:04 / var / tmp / cloud-init / cloud-init-dhcp-zaislidv / dhclient -1 -v -

When I ran lsof -p 829:

sudo lsof -p 829
PID NAME OF COMMAND PID PID USER DEVICE
dhclient 829 root cwd DIR 259.1 4096 2 /
dhclient 829 root rtd DIR 259.1 4096 2 /
dhclient 829 txt root REG 259.1 487248 1536424 / var / tmp / cloud-init / cloud-init-dhcp-zaislidv / dhclient (removed)
dhclient 829 root mem REG 259.1 47600 1993 /lib/x86_64-linux-gnu/libnss_files-2.23.so
dhclient 829 root mem REG 259.1 14608 1982 /lib/x86_64-linux-gnu/libdl-2.23.so
dhclient 829 root mem REG 259.1 1868984 1980 /lib/x86_64-linux-gnu/libc-2.23.so
dhclient 829 root REG 259.1 2123 /lib/x86_64-linux-gnu/libisc-export.so.160.0.0
dhclient 829 root REG 259.1 2125 /lib/x86_64-linux-gnu/libdns-export.so.162.1.3
dhclient 829 root mem REG 259.1 162632 1978 /lib/x86_64-linux-gnu/ld-2.23.so
dhclient 829 root 0u CHR 1,3 0t0 6 / dev / null
dhclient 829 root 1u CHR 1.3 0t0 6 / dev / null
dhclient 829 root 2u CHR 1.3 0t0 6 / dev / null
dhclient 829 root 3u unix 0xffff880036debc00 0t0 12925 type = DGRAM
dhclient 829 root 5u pack 12942 0t0 ALL type = SOCK_RAW
dhclient 829 root 6u IPv4 12943 0t0 UDP *: bootpc

Of the 200 servers, this is the only one that executes this process.

I enter the / var / tmp / cloud-init directory and it is empty, of course, and I do not see this executable or even there.

Any ideas on what it is and where it can be configured to run on?

Thank you!