I upgraded a KVM running Debian bookworm to trixie. pve runs v8
after upgrade and reboot the network was down.
tried to bring up network:
my interfaces file is below.
the solution from grok ai:
after that interfaces could come up
interfaces file:
we need ens18 for software license .
more from grok:
The issue you're encountering is due to an incompatibility between the ifupdown2 package (which handles network interface management, commonly used in environments like Proxmox VE) and Python 3.12, the default Python version in Debian Trixie. Specifically, the readfp method in Python's configparser module was deprecated and fully removed in Python 3.12, causing the error when ifupdown2 tries to parse configuration files.
This was a known bug in ifupdown2 versions prior to 3.0.0-1.3 (Debian bug #1074250).

The bug has been fixed in version 3.0.0-1.3, which is the current version available in Trixie.

after upgrade and reboot the network was down.
tried to bring up network:
Code:
ifup ens19
main exception 'RawConfigParser' object has no attribute 'readfp'
my interfaces file is below.
the solution from grok ai:
Code:
Edit /usr/share/ifupdown2/ifupdown/main.py
Find the line containing parser.readfp(configFP) (around line 300-400, depending on the exact version).
Replace it with parser.read_file(configFP).
after that interfaces could come up
interfaces file:
Code:
# The loopback network interface
#auto lo
#iface lo inet loopback
auto ens18
iface ens18 inet static
address 127.0.0.1
netmask 255.255.255.0
auto ens19
iface ens19 inet static
address 10.1.7.90/24
gateway 10.1.7.1
we need ens18 for software license .
more from grok:
The issue you're encountering is due to an incompatibility between the ifupdown2 package (which handles network interface management, commonly used in environments like Proxmox VE) and Python 3.12, the default Python version in Debian Trixie. Specifically, the readfp method in Python's configparser module was deprecated and fully removed in Python 3.12, causing the error when ifupdown2 tries to parse configuration files.
This was a known bug in ifupdown2 versions prior to 3.0.0-1.3 (Debian bug #1074250).

The bug has been fixed in version 3.0.0-1.3, which is the current version available in Trixie.

Last edited: