我使用的是 Ubuntu 14.04 LTS 和安装xubuntu-desktop
环境。我删除了团结sudo apt-get purge unity ubuntu-desktop
。Xubuntu 上的所有工作都很好。
今天,当我访问这里时,清理部分中列出了(旧的 unity/gnome)包删除命令(您可以从网页上看到)。
然后我运行以下命令来删除/清理它们:
sudo apt-get remove nautilus gnome-power-manager gnome-screensaver gnome-termina* gnome-pane* gnome-applet* gnome-bluetooth gnome-desktop* gnome-sessio* gnome-user* gnome-shell-common compiz compiz* unity unity* hud zeitgeist zeitgeist* python-zeitgeist libzeitgeist* activity-log-manager-common gnome-control-center gnome-screenshot overlay-scrollba*
现在在 Xubuntu 上不再检测到我的调制解调器!可能是因为上面的删除!?
早些时候(当通过调制解调器的无线网络工作正常时)nmcli
设备列表如下(在这里你可以看到在 ttyUSB2 检测到 HUWEI 调制解调器):
$ nmcli dev list
GENERAL.DEVICE: ttyUSB2
GENERAL.TYPE: gsm
GENERAL.VENDOR: HUAWEI Technology
GENERAL.PRODUCT: HUAWEI Mobile
GENERAL.DRIVER: option1, cdc_ether
GENERAL.DRIVER-VERSION:
GENERAL.FIRMWARE-VERSION:
GENERAL.HWADDR: (unknown)
GENERAL.STATE: 100 (connected)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /org/freedesktop/ModemManager1/Modem/0
GENERAL.IP-IFACE: ppp0
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.CONNECTION: /org/freedesktop/NetworkManager/ActiveConnection/0
CAPABILITIES.CARRIER-DETECT: no
CAPABILITIES.SPEED: unknown
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{1}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]: f7a5bf92-6bca-4f0e-a55d-cdd6ba8e5ffa | BSNL/CellOne New GPRS/3G
IP4.ADDRESS[1]: ip = 117.233.116.207/32, gw = 10.64.64.64
IP4.DNS[1]: 218.248.255.161
IP4.DNS[2]: 218.248.255.162
GENERAL.DEVICE: eth0
GENERAL.TYPE: 802-3-ethernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8111/8168 PCI Express Gigabit Ethernet controller
GENERAL.DRIVER: r8169
GENERAL.DRIVER-VERSION: 2.3LK-NAPI
GENERAL.FIRMWARE-VERSION:
GENERAL.HWADDR: 00:1C:C0:B9:3C:96
GENERAL.STATE: 20 (unavailable)
GENERAL.REASON: 2 (Device is now managed)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/eth0
GENERAL.IP-IFACE:
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.CONNECTION: not connected
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: unknown
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:
WIRED-PROPERTIES.CARRIER: off
我可以从连接nm-applet
。
但是现在您可以看到网络管理器没有检测到调制解调器,尽管插入了调制解调器:
$ lsusb
Bus 001 Device 004: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
$ nmcli dev list
GENERAL.DEVICE: eth0
GENERAL.TYPE: 802-3-ethernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8111/8168 PCI Express Gigabit Ethernet controller
GENERAL.DRIVER: r8169
GENERAL.DRIVER-VERSION: 2.3LK-NAPI
GENERAL.FIRMWARE-VERSION:
GENERAL.HWADDR: 00:1C:C0:B9:3C:96
GENERAL.STATE: 20 (unavailable)
GENERAL.REASON: 2 (Device is now managed)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/eth0
GENERAL.IP-IFACE:
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.CONNECTION: not connected
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: unknown
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:
WIRED-PROPERTIES.CARRIER: off
如上所示,已Bus 001 Device 004: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)
插入但没有调制解调器设备可用/网络管理器在nmcli dev list
.
因此,我现在无法通过无线调制解调器连接互联网,因为调制解调器未在nm-applet中删除(“新移动宽带”等选项均不可用)。
我该如何解决这个问题?
今天当我尝试重新启动
modemmanager
时,出现以下错误:似乎还有一些问题
modemmanager
(因为有线连接工作正常)所以我决定重新安装modemmanager
运行以下命令重新安装:
现在检测到调制解调器并且“New Mobile Boradband Connection”可用
nm-applet
(也在 中显示/连接nmcli dev list
)。调制解调器工作正常。现在您必须连接到互联网才能再次单击网络按钮并启用网络(如果未启用),那么您将看到以服务提供商名称命名的新连接就在那里。现在只需单击它,看看它是否有效。它对我有用。我有一个使用 aircel 的 micromax 310g bsnl3g(解锁)调制解调器。希望它会有所帮助。