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.
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)