我知道这个问题类似于“ Udev:重命名我的网络接口”,但我不认为它是重复的,因为我的接口不是通过 udev 规则命名的,并且该问题中的其他答案都不适用于我。
所以我在这台笔记本电脑上有一个 WiFi 适配器,我想将接口从 wlp5s0 重命名为 wlan0:
root@aj-laptop:/etc/udev/rules.d# iwconfig
wlp5s0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
eth0 no wireless extensions.
lo no wireless extensions.
root@aj-laptop:/etc/udev/rules.d# ifconfig wlp5s0
wlp5s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 00:80:34:1f:d8:3f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped …
Run Code Online (Sandbox Code Playgroud) 我跑了sudo apt update
,它显示了这个:
签名验证过程中发生错误。存储库不会更新,并且将使用以前的索引文件。GPG 错误:https://repo.waydro.id jammy InRelease:无法验证以下签名,因为公钥不可用:NO_PUBKEY 0E406D181DCEE19C