No network after failed install of ifupdown2

eduardoll

New Member
Feb 6, 2021
11
0
1
40
Hi, I was trying to install ifupdown2 but after apt removed ifupdown, it got an error (below).

I didn't notice the error and I ended up restarting the machine, now I don't have network access anymore. Is there a way to recover my host without reinstalling?

Thanks.


Code:
root@proxmox:~# apt install ifupdown2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  pve-kernel-5.4.103-1-pve pve-kernel-5.4.106-1-pve pve-kernel-5.4.114-1-pve pve-kernel-5.4.119-1-pve
  pve-kernel-5.4.128-1-pve pve-kernel-5.4.140-1-pve pve-kernel-5.4.78-2-pve
Use 'apt autoremove' to remove them.
Suggested packages:
  ethtool python3-gvgen python3-mako
The following packages will be REMOVED:
  ifenslave ifupdown
The following NEW packages will be installed:
  ifupdown2
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
Need to get 227 kB of archives.
After this operation, 1,347 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://download.proxmox.com/debian/pve buster/pve-no-subscription amd64 ifupdown2 all 3.0.0-1+pve4~bpo10 [227 kB]
Fetched 227 kB in 1s (188 kB/s)
dpkg: ifupdown: dependency problems, but removing anyway as you requested:
 ifenslave depends on ifupdown (>= 0.7.46).

(Reading database ... 104718 files and directories currently installed.)
Removing ifupdown (0.8.35+pve1) ...
Selecting previously unselected package ifupdown2.
(Reading database ... 104682 files and directories currently installed.)
Preparing to unpack .../ifupdown2_3.0.0-1+pve4~bpo10_all.deb ...
Unpacking ifupdown2 (3.0.0-1+pve4~bpo10) ...
dpkg: ifenslave: dependency problems, but removing anyway as you requested:
 pve-manager depends on ifenslave (>= 2.6) | ifupdown2 (>= 2.0.1-1+pve8); however:
  Package ifenslave is to be removed.
  Package ifupdown2 is not configured yet.

(Reading database ... 104802 files and directories currently installed.)
Removing ifenslave (2.9) ...
Setting up ifupdown2 (3.0.0-1+pve4~bpo10) ...
Installing new version of config file /etc/default/networking ...

network config changes have been detected for ifupdown2 compatibility.
Saved in /etc/network/interfaces.new for hot-apply or next reboot.

Reloading network config on first install
error: vmbr0: netlink: cannot create bridge or set attributes: operation failed with 'Numerical result out of range' (34)
dpkg: error processing package ifupdown2 (--configure):
 installed ifupdown2 package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 ifupdown2
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Sorry guys, i managed to fix that. I had to umask networking service and then reinstalled ifupdown. Thanks.
 
error: vmbr0: netlink: cannot create bridge or set attributes: operation failed with 'Numerical result out of range' (34)

could be interesting to see your /etc/network/interfaces , to see if something is not supported by ifupdown2. (or bad config somewhere not detected by ifupdown1)
 
Hello, I have the same issue how did you fix this?

Code:
dpkg: ifupdown: dependency problems, but removing anyway as you requested:
 ifenslave depends on ifupdown (>= 0.7.46).

(Reading database ... 58559 files and directories currently installed.)
Removing ifupdown (0.8.35+pve1) ...
Selecting previously unselected package ifupdown2.
(Reading database ... 58523 files and directories currently installed.)
Preparing to unpack .../ifupdown2_3.0.0-1+pve4~bpo10_all.deb ...
Unpacking ifupdown2 (3.0.0-1+pve4~bpo10) ...
dpkg: ifenslave: dependency problems, but removing anyway as you requested:
 pve-manager depends on ifenslave (>= 2.6) | ifupdown2 (>= 2.0.1-1+pve8); however:
  Package ifenslave is to be removed.
  Package ifupdown2 is not configured yet.

(Reading database ... 58643 files and directories currently installed.)
Removing ifenslave (2.9) ...
Setting up ifupdown2 (3.0.0-1+pve4~bpo10) ...
Installing new version of config file /etc/default/networking ...
'vmbr0': ignoring 'bridge_fd' value '0', outside of allowed range 2-30

network config changes have been detected for ifupdown2 compatibility.
Saved in /etc/network/interfaces.new for hot-apply or next reboot.

Reloading network config on first install
error: vmbr0: netlink: cannot create bridge or set attributes: operation failed with 'Numerical result out of range' (34)
dpkg: error processing package ifupdown2 (--configure):
 installed ifupdown2 package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 ifupdown2
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
for now i've apt removed the install of ifupdown2, in doing so its added a pending changes on the webgui to remove the line "bridge-fd 0"

/etc/network/interfaces is
Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
        address ***.***.***.***/24
        gateway ***.***.***.*
        bridge-ports eno1
        bridge-stp on
        bridge-fd 0
        pre-up sleep 2
 
ok.

about

"'vmbr0': ignoring 'bridge_fd' value '0', outside of allowed range 2-30"

when "bridge-sftp on", bridge-fd need to be >=2 . (stp need to be done before forwarding traffic).

any reason to use stp ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!