网络管理器不工作

网络管理器不工作

亲爱的 askubuntu 社区,

我的 ubuntu 安装出了问题,导致我无法上网。我不是专业的 Linux 用户,在研究、尝试不同方法并失败后,我决定向您请教。也许您可以帮帮我。

  1. 设置:我有一台带双启动的 MacBook Pro(2016)。我使用的是 ubuntu 20.04 Focal Fossa Beta 版。由于我在使用 Mint 19.3 时遇到了完全相同的问题(除了我的手机热点可以正常工作),我敢说我不认为问题出在操作系统的 Beta 状态。我也无法(在两种情况下)使用我的触摸板,但那是另一回事了。

  2. 问题:使用外接鼠标时,我可以毫无大问题地安装 ubuntu。但是,我无法访问互联网。当我输入密码时,系统会反复提示我进行身份验证。

  3. 自我诊断:经过研究和尝试,我发现网络管理器不工作。

    fub@fub:~/Desktop$ systemctl status NetworkManager.service
    ● NetworkManager.service - Network Manager
    Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Thu 2020-04-09 06:14:40 EDT;
    36s ago
    Docs: man:NetworkManager(8)
    Process: 6468 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=1/FAILURE)
    Main PID: 6468 (code=exited, status=1/FAILURE)
    Apr 09 06:14:40 fub systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is >
    Apr 09 06:14:40 fub systemd[1]: Stopped Network Manager.
    Apr 09 06:14:40 fub systemd[1]: NetworkManager.service: Start request repeated too quickly.
    Apr 09 06:14:40 fub systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
    Apr 09 06:14:40 fub systemd[1]: Failed to start Network Manager.
    
  4. 尝试过的解决方案:我尝试激活网络管理器,但是失败了。

    fub@fub:~/Desktop$ sudo service network-manager start
    Job for NetworkManager.service failed because the control process exited with error code.
    See "systemctl status NetworkManager.service" and "journalctl -xe" for details.
    

我尝试重新安装它。我在 macOS 中下载了它并将其放在 USB 上。同样没有用。

fub@fub:~/Desktop$ sudo dpkg -i das_hier_network-manager_1.22.10-1ubuntu1_amd64.deb 
(Reading database ... 149231 files and directories currently installed.)
Preparing to unpack das_hier_network-manager_1.22.10-1ubuntu1_amd64.deb ...
Unpacking network-manager (1.22.10-1ubuntu1) over (1.22.10-1ubuntu1) ...
Setting up network-manager (1.22.10-1ubuntu1) ...
Job for NetworkManager.service failed because the control process exited with error code.
See "systemctl status NetworkManager.service" and "journalctl -xe" for details.
Processing triggers for systemd (245.2-1ubuntu2) ...
Processing triggers for dbus (1.12.16-2ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
Furthermore, I tried to reinstall ubuntu, but during the installation I already had the error.
  1. 绝望:我不知道接下来该怎么办。你能帮忙吗?我会非常感激,因为我想在日常生活中尝试使用 Linux,因为它太棒了。

谢谢,祝一切顺利,身体健康

檔案

编辑: ”journalctl-xe“:

    fub@fub:~$ journalctl -xe
    -- The unit NetworkManager.service has entered the 'failed' state
    with result 'exit-code'.
    Apr 09 11:40:06 fub systemd[1]: Failed to start Network Manager.
    -- Subject: A start job for unit NetworkManager.service has failed
    -- Defined-By: systemd
    -- Support: http://www.ubuntu.com/support
    -- 
    -- A start job for unit NetworkManager.service has finished with a         
    failure.
    -- 
    -- The job identifier is 3197 and the job result is failed.
    Apr 09 11:40:06 fub systemd[1]: NetworkManager.service: Scheduled 
    restart job, restart counter is at 5.
    -- Subject: Automatic restarting of a unit has been scheduled
    -- Defined-By: systemd
    -- Support: http://www.ubuntu.com/support

答案1

检查您的 /etc/NetworkManager/NetworkManager.conf 文件是否包含全局配置选项:

[device]
wifi.scan-rand-mac-address=no

如果没有,请将全局配置添加到 NetworkManager.conf 并删除(或移动、重命名)该文件/etc/NetworkManager/conf.d/wifi.scan-rand-mac-address.conf

然后尝试启动 NetworkManager。

检查您的 Wifi 设置:设置>WiFi>可见网络 (SSID)>设置。确保选中“自动连接”和“使其他用户可用”复选框。在此处输入图片描述

相关内容