我nmcli在 ArchLinux(来自官方软件包存储库的版本 1.14.5dev+17+gba83251bb-1)上使用连接到 wifi。除了这个 Vodafone EasyBox 网络之外,这对于所有无线网络都非常有效。
尝试使用正确的密码激活连接会给我以下错误消息:
Passwords or encryption keys are required to access the wireless network 'EasyBox-123456'.
Warning: password for '802-11-wireless-security.psk' not given in 'passwd-file' and nmcli cannot ask without '--ask' option.
Error: Connection activation failed: Secrets were required, but not provided
Run Code Online (Sandbox Code Playgroud)
但是,802-11-wireless-security.psk已存储,正如您在此处看到的:
$ nmcli con show EasyBox-123456
connection.id: EasyBox-123456
connection.uuid: <hidden>
connection.stable-id: --
connection.type: 802-11-wireless
connection.interface-name: --
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.multi-connect: 0 (default)
connection.auth-retries: -1
connection.timestamp: 0
connection.read-only: …Run Code Online (Sandbox Code Playgroud) 为了运行虚拟机,VirtualBox 告诉我禁用 KVM 内核模块。我搜索了一下,发现 KVM 包含在qemu-*-packages 中,但是我的系统(Debian Wheezy)上没有安装/安装它们。
之后我只是尝试卸载模块,但这不想工作,因为它正在使用中:
# modprobe -r kvm_intel
FATAL: Module kvm_intel is in use.
# modprobe -r kvm
FATAL: Module kvm is in use.
Run Code Online (Sandbox Code Playgroud)
我不知道什么程序正在使用它,我真的不知道那可能是什么。我也尝试过使用该-f选项,但得到了相同的结果。
我的问题是:如何删除或禁用 KVM 内核模块?
更新:
这是lsmod命令的输出:
# lsmod | grep kvm
kvm_intel 138825 3
kvm 404853 1 kvm_intel
Run Code Online (Sandbox Code Playgroud) 我有一台hostapd正在运行的 Debian Wheezy 机器。我希望它制作一个 WPA2-PSK 安全的 WLAN 热点。我可以从我的 Android 手机上看到热点,但是每次我尝试连接它时,它都会显示“获取 IP 地址”很长一段时间,然后显示“避免了弱网络连接”(“Schwache Internetverbindung gemieden”)。
我的/etc/hostapd/hostapd.conf文件包含以下内容:
ctrl_interface=/var/run/hostapd
###############################
# Basic Config
###############################
macaddr_acl=0
auth_algs=1
# Most modern wireless drivers in the kernel need driver=nl80211
driver=nl80211
##########################
# Local configuration...
##########################
interface=wlan0
#bridge=br0
hw_mode=g
channel=1
ssid=HereIsMySSID
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=HereIsMyPassphrase
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Run Code Online (Sandbox Code Playgroud)
如果我将 更改wpa_key_mgmt为WPA2-PSK,则会出现以下错误:
# hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Line 22: invalid key_mgmt 'WPA2-PSK'
FT …Run Code Online (Sandbox Code Playgroud) 我正在尝试从脚本运行 pacman。问题是应该安装一个冲突的包,但不能替换当前安装的包。正如这里所回答的,我通过了 --noconfirm 选项,并且由于 pacman 的 stdin 没有指向 tty,所以它假定默认答案是否定的。如何强制 pacman 对所有问题都回答“是”?请注意,我无法将任何输入传递给 pacman(它通过 makechrootpkg 运行),因此我无法使用此处yes建议的命令或类似命令。
这是 pacman 的输出:
loading packages...
resolving dependencies...
looking for conflicting packages...
:: libinput-ubuntu and libinput are in conflict. Remove libinput? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
Run Code Online (Sandbox Code Playgroud)