AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1099174
Accepted
stackinator
stackinator
Asked: 2018-12-08 05:31:21 +0800 CST2018-12-08 05:31:21 +0800 CST 2018-12-08 05:31:21 +0800 CST

nmcli 连接验证失败

  • 772

我将根据此 SO question中的答案粘贴我尝试运行的命令序列来配置桌面 Ubuntu 18.04 NetworkManager 。当我执行答案中的步骤时,我最终得到一个"Error: connection verification failed"。

nmcli connection show --active

NAME          UUID                                  TYPE  DEVICE
LINKSYS99999  ...                                   wifi  wlp4s0

nmcli connection edit

Valid connection types: adsl, bluetooth, bond, bridge, cdma, dummy, generic, gsm, infiniband, ip-tunnel, macsec, macvlan, 802-11-olpc-mesh (olpc-mesh), ovs-bridge, ovs-interface, ovs-port, pppoe, team, tun, vlan, vpn, vxlan, wimax, 802-3-ethernet (ethernet), 802-11-wireless (wifi), bond-slave, bridge-slave, team-slave

输入连接类型:wifi

nmcli> remove ipv4.dns  
nmcli> set ipv4.ignore-auto-dns yes
nmcli> set ipv4.dns 8.8.8.8 8.8.4.4
nmcli> save

错误:连接验证失败:802-11-wireless.ssid:属性丢失您可以尝试运行“验证修复”来修复错误。

nmcli> verify fix

验证连接:802-11-wireless.ssid:属性缺失 错误无法自动修复。

发生了什么事,我该如何解决?我是否需要根据此 SO 指南发布我的所有无线详细信息?

networking wireless network-manager dns nmcli
  • 1 1 个回答
  • 1308 Views

1 个回答

  • Voted
  1. Best Answer
    heynnema
    2018-12-08T07:05:23+08:002018-12-08T07:05:23+08:00

    您必须指定连接 ID 或名称才能更改现有连接脚本,或者在创建新连接脚本时添加 SSID 信息...

    人 nmcli

    edit {[id | uuid | path] ID | [type type] [con-name name] }
        Edit an existing connection or add a new one, using an interactive
        editor.
    
        The existing connection is identified by its name, UUID or D-Bus
        path. If ID is ambiguous, a keyword id, uuid, or path can be used.
        See connection show above for the description of the ID-specifying
        keywords. Not providing an ID means that a new connection will be
        added.
    
        The interactive editor will guide you through the connection
        editing and allow you to change connection parameters according to
        your needs by means of a simple menu-driven interface. The editor
        indicates what settings and properties can be modified and provides
        in-line help.
    
        Available options:
    
        type
            type of the new connection; valid types are the same as for
            connection add command.
    
        con-name
            name for the new connection. It can be changed later in the
            editor.
    

    后注:如果这是一个 Ubuntu桌面安装,使用NetworkManager GUI来设置这些设置会更容易。

    • 3

相关问题

  • 如何将主机 Ubuntu 上的 VPN (tun0) 网络适配器映射到 VirtualBox 来宾 Windows?

  • 如何限制下载/上传带宽?

  • 如何通过 Windows 网络共享文件?

  • 如何设置默认启用网络?

  • 面板小程序以文本形式显示当前网络流量?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve