root@bug1995469:~# python3 test.py
Traceback (most recent call last):
File "/root/test.py", line 4, in <module>
IPRoute().link("del", ifname="dum0")
File "/usr/lib/python3/dist-packages/pr2modules/iproute/linux.py", line 1393, in link
ret = self.nlm_request(msg,
File "/usr/lib/python3/dist-packages/pr2modules/netlink/nlsocket.py", line 393, in nlm_request
return tuple(self._genlm_request(*argv, **kwarg))
File "/usr/lib/python3/dist-packages/pr2modules/netlink/nlsocket.py", line 885, in nlm_request
for msg in self.get(msg_seq=msg_seq,
File "/usr/lib/python3/dist-packages/pr2modules/netlink/nlsocket.py", line 396, in get
return tuple(self._genlm_get(*argv, **kwarg))
File "/usr/lib/python3/dist-packages/pr2modules/netlink/nlsocket.py", line 721, in get
raise msg['header']['error']
pr2modules.netlink.exceptions.NetlinkError: (95, 'Operation not supported')
Reconfirmed the original bug:
root@bug1995469:~# python3 test.py ).link( "del", ifname="dum0") python3/ dist-packages/ pr2modules/ iproute/ linux.py" , line 1393, in link request( msg, python3/ dist-packages/ pr2modules/ netlink/ nlsocket. py", line 393, in nlm_request _genlm_ request( *argv, **kwarg)) python3/ dist-packages/ pr2modules/ netlink/ nlsocket. py", line 885, in nlm_request msg_seq= msg_seq, python3/ dist-packages/ pr2modules/ netlink/ nlsocket. py", line 396, in get _genlm_ get(*argv, **kwarg)) python3/ dist-packages/ pr2modules/ netlink/ nlsocket. py", line 721, in get ]['error' ] netlink. exceptions. NetlinkError: (95, 'Operation not supported')
Traceback (most recent call last):
File "/root/test.py", line 4, in <module>
IPRoute(
File "/usr/lib/
ret = self.nlm_
File "/usr/lib/
return tuple(self.
File "/usr/lib/
for msg in self.get(
File "/usr/lib/
return tuple(self.
File "/usr/lib/
raise msg['header'
pr2modules.
and verified with the package in proposed:
root@bug1995469:~# python3 test.py archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages dpkg/status 6.4-3ubuntu1. 1 500 archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages security. ubuntu. com/ubuntu jammy-security/main amd64 Packages archive. ubuntu. com/ubuntu jammy/main amd64 Packages
<command successfully completes>
root@bug1995469:~# apt-cache policy python3-pyroute2
python3-pyroute2:
Installed: 0.6.4-3ubuntu2
Candidate: 0.6.4-3ubuntu2
Version table:
*** 0.6.4-3ubuntu2 500
500 http://
100 /var/lib/
0.
500 http://
500 http://
0.6.4-3 500
500 http://