run-parts: /etc/network/if-pre-up.d/whereami exited with return code 1
Failed to bring up enp3s0.
I have purged network-manager to configure my network in the interfaces file manually.
After a look into the whereami script i found out that the whereami binary “/usr/sbin/whereami” doesn’t exist.
Then i have moved the whereami file out of the directory and not the ifup worked:
root@workstation:/home/mathias# cd /etc/network/if-pre-up.d/ root@workstation:/etc/network/if-pre-up.d# ls bridge ethtool whereami wireless-tools wpasupplicant root@workstation:/etc/network/if-pre-up.d# mv whereami /home/mathias/Schreibtisch/ root@workstation:/etc/network/if-pre-up.d# ifup -v enp3s0 Configuring interface enp3s0=enp3s0 (inet) /bin/run-parts – exit-on-error – verbose /etc/network/if-pre-up.d run-parts: executing /etc/network/if-pre-up.d/bridge run-parts: executing /etc/network/if-pre-up.d/ethtool run-parts: executing /etc/network/if-pre-up.d/wireless-tools run-parts: executing /etc/network/if-pre-up.d/wpasupplicant /sbin/dhclient -1 -v -pf /run/dhclient.enp3s0.pid -lf /var/lib/dhcp/dhclient.enp3s0.leases -I -df /var/lib/dhcp/dhclient6.enp3s0.leases enp3s0 Internet Systems Consortium DHCP Client 4.3.3 Copyright 2004-2015 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/enp3s0/44:8a:5b:84:6c:93 Sending on LPF/enp3s0/44:8a:5b:84:6c:93 Sending on Socket/fallback DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 3 (xid=0x1ca4130f) DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 7 (xid=0x1ca4130f) DHCPREQUEST of 192.168.2.245 on enp3s0 to 255.255.255.255 port 67 (xid=0xf13a41c) DHCPOFFER of 192.168.2.245 from 192.168.2.1 DHCPACK of 192.168.2.245 from 192.168.2.1 bound to 192.168.2.245 – renewal in 2739 seconds. /bin/run-parts – exit-on-error – verbose /etc/network/if-up.d run-parts: executing /etc/network/if-up.d/000resolvconf run-parts: executing /etc/network/if-up.d/avahi-autoipd run-parts: executing /etc/network/if-up.d/avahi-daemon run-parts: executing /etc/network/if-up.d/ethtool run-parts: executing /etc/network/if-up.d/openssh-server run-parts: executing /etc/network/if-up.d/postfix run-parts: executing /etc/network/if-up.d/upstart run-parts: executing /etc/network/if-up.d/wpasupplicant root@workstation:/etc/network/if-pre-up.d# ping 220.127.116.11 PING 18.104.22.168 (22.214.171.124) 56(84) bytes of data. 64 bytes from 126.96.36.199: icmp_seq=1 ttl=46 time=75.8 ms 64 bytes from 188.8.131.52: icmp_seq=2 ttl=46 time=64.5 ms ^C - – 184.108.40.206 ping statistics – - 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 64.578/70.227/75.877/5.655 ms