環境:Dell L502X上のUbuntu 15.10
以前は、UbuntuとAndroidデバイス間で問題なくUSBテザリングを使用できました。昨年末、ノートブックにUbuntu(15.10)の新規インストールを適用しました。現在、この組み合わせでは、USBテザリングが機能しません。 Nexus 4(以前に使用したUbuntu 15.04で動作するAndroid 5.1を実行)、Nexus 5(Android 6.0.1を実行)、およびNexus 5X(Android 6.0.1を実行)。
USBテザリングを有効にすると、ifconfig
出力に新しいエントリが追加されます。
enx92c991095e89 Link encap:Ethernet HWaddr 92:c9:91:09:5e:89
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:520 (520.0 B) TX bytes:0 (0.0 B)
ハードウェアアドレスはテザーごとに変わるため、USBテザリングをオフにしてからオンにする、または別のNexusデバイスに切り替えると、代わりのエントリが表示されます。
enx82fb7388a85c Link encap:Ethernet HWaddr 82:fb:73:88:a8:5c
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:332 (332.0 B) TX bytes:0 (0.0 B)
また、System SettingsのNetwork画面に対応するWiredエントリが表示され、ifconfig
スタンザに一致するハードウェアアドレスが表示され、「Disconnected」(現在有効なUSBテザリングセッションの場合)または「Unmanaged」(以前のUSBテザリングセッション)。
GUFWを有効または無効にしても、問題には影響しません。直接またはUSBハブを介して接続しても、問題には影響しません。
私の/etc/network/interfaces
は標準です:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
Android USBテザリングを機能させるために、Ubuntu 15.10で他に必要なことはありますか?
UPDATE:@bainが要求するログは次のとおりです。
Jan 16 08:22:09 L502X kernel: [ 5377.812495] usb 1-1: new high-speed USB device number 3 using xhci_hcd
Jan 16 08:22:09 L502X kernel: [ 5377.945753] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee2
Jan 16 08:22:09 L502X kernel: [ 5377.945763] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 16 08:22:09 L502X kernel: [ 5377.945768] usb 1-1: Product: Nexus 5X
Jan 16 08:22:09 L502X kernel: [ 5377.945772] usb 1-1: Manufacturer: LGE
Jan 16 08:22:09 L502X kernel: [ 5377.945776] usb 1-1: SerialNumber: 00f204f982a4b8b9
Jan 16 08:22:10 L502X org.gtk.Private.GPhoto2VolumeMonitor[1780]: (process:2108): GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
Jan 16 08:22:10 L502X kernel: [ 5378.080031] [UFW BLOCK] IN=enp6s0 OUT= MAC= SRC=fe80:0000:0000:0000:16fe:b5ff:febb:2732 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=8612 DPT=8612 LEN=24
Jan 16 08:22:10 L502X kernel: [ 5378.080049] [UFW BLOCK] IN=enp6s0 OUT= MAC= SRC=fe80:0000:0000:0000:16fe:b5ff:febb:2732 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=8612 DPT=8610 LEN=24
Jan 16 08:22:10 L502X kernel: [ 5378.090303] [UFW BLOCK] IN=enp6s0 OUT= MAC= SRC=fe80:0000:0000:0000:16fe:b5ff:febb:2732 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=8612 DPT=8612 LEN=24
Jan 16 08:22:10 L502X kernel: [ 5378.090319] [UFW BLOCK] IN=enp6s0 OUT= MAC= SRC=fe80:0000:0000:0000:16fe:b5ff:febb:2732 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=8612 DPT=8610 LEN=24
Jan 16 08:22:11 L502X org.gtk.Private.GPhoto2VolumeMonitor[1780]: (process:2108): GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
Jan 16 08:22:11 L502X colord[1165]: (colord:1165): Cd-WARNING **: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
Jan 16 08:22:14 L502X colord-sane: io/hpmud/musb.c 2081: Invalid usb_open: Permission denied
Jan 16 08:22:30 L502X kernel: [ 5398.876832] usb 1-1: USB disconnect, device number 3
Jan 16 08:22:31 L502X kernel: [ 5399.213700] usb 1-1: new high-speed USB device number 4 using xhci_hcd
Jan 16 08:22:31 L502X kernel: [ 5399.346845] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee4
Jan 16 08:22:31 L502X kernel: [ 5399.346855] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 16 08:22:31 L502X kernel: [ 5399.346860] usb 1-1: Product: Nexus 5X
Jan 16 08:22:31 L502X kernel: [ 5399.346864] usb 1-1: Manufacturer: LGE
Jan 16 08:22:31 L502X kernel: [ 5399.346868] usb 1-1: SerialNumber: 00f204f982a4b8b9
Jan 16 08:22:31 L502X mtp-probe: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1"
Jan 16 08:22:31 L502X mtp-probe: bus: 1, device: 4 was not an MTP device
Jan 16 08:22:31 L502X kernel: [ 5399.385223] usbcore: registered new interface driver cdc_ether
Jan 16 08:22:31 L502X kernel: [ 5399.392871] rndis_Host 1-1:1.0 usb0: register 'rndis_Host' at usb-0000:04:00.0-1, RNDIS device, 9a:ff:bd:ee:76:ea
Jan 16 08:22:31 L502X kernel: [ 5399.392918] usbcore: registered new interface driver rndis_Host
Jan 16 08:22:31 L502X NetworkManager[1070]: <warn> (usb0): failed to find device 4 'usb0' with udev
Jan 16 08:22:31 L502X NetworkManager[1070]: <info> (usb0): new Ethernet device (carrier: OFF, driver: 'rndis_Host', ifindex: 4)
Jan 16 08:22:31 L502X kernel: [ 5399.398467] rndis_Host 1-1:1.0 enx9affbdee76ea: renamed from usb0
Jan 16 08:22:31 L502X NetworkManager[1070]: <info> (usb0): interface index 4 renamed iface from 'usb0' to 'enx9affbdee76ea'
Jan 16 08:22:31 L502X NetworkManager[1070]: <info> devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1/1-1:1.0/net/enx9affbdee76ea, iface: enx9affbdee76ea)
Jan 16 08:22:31 L502X NetworkManager[1070]: <info> device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1/1-1:1.0/net/enx9affbdee76ea, iface: enx9affbdee76ea): no ifupdown configuration found.
Jan 16 08:22:31 L502X NetworkManager[1070]: <info> (enx9affbdee76ea): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jan 16 08:22:31 L502X kernel: [ 5399.442941] IPv6: ADDRCONF(NETDEV_UP): enx9affbdee76ea: link is not ready
Jan 16 08:22:31 L502X NetworkManager[1070]: <info> (enx9affbdee76ea): link connected
Jan 16 08:22:31 L502X NetworkManager[1070]: <info> (enx9affbdee76ea): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Jan 16 08:22:31 L502X NetworkManager[1070]: <info> Device 'enx9affbdee76ea' has no connection; scheduling activate_check in 0 seconds.
Jan 16 08:22:31 L502X kernel: [ 5399.458876] [UFW BLOCK] IN=enp6s0 OUT= MAC= SRC=fe80:0000:0000:0000:16fe:b5ff:febb:2732 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=8612 DPT=8612 LEN=24
Jan 16 08:22:31 L502X kernel: [ 5399.458904] [UFW BLOCK] IN=enp6s0 OUT= MAC= SRC=fe80:0000:0000:0000:16fe:b5ff:febb:2732 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=8612 DPT=8610 LEN=24
Jan 16 08:22:31 L502X kernel: [ 5399.469062] [UFW BLOCK] IN=enp6s0 OUT= MAC= SRC=fe80:0000:0000:0000:16fe:b5ff:febb:2732 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=8612 DPT=8612 LEN=24
Jan 16 08:22:31 L502X kernel: [ 5399.469088] [UFW BLOCK] IN=enp6s0 OUT= MAC= SRC=fe80:0000:0000:0000:16fe:b5ff:febb:2732 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=8612 DPT=8610 LEN=24
Jan 16 08:22:33 L502X ModemManager[1081]: <info> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1': not supported by any plugin
Jan 16 08:22:35 L502X colord-sane: io/hpmud/musb.c 2081: Invalid usb_open: Permission denied
PDATE#2:GUFW経由でファイアウォールを無効にした後の新しいsyslog:
Jan 16 09:33:23 L502X kernel: [ 9649.766835] usb 1-1: new high-speed USB device number 6 using xhci_hcd
Jan 16 09:33:23 L502X kernel: [ 9649.900519] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee2
Jan 16 09:33:23 L502X kernel: [ 9649.900529] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 16 09:33:23 L502X kernel: [ 9649.900534] usb 1-1: Product: Nexus 5X
Jan 16 09:33:23 L502X kernel: [ 9649.900538] usb 1-1: Manufacturer: LGE
Jan 16 09:33:23 L502X kernel: [ 9649.900542] usb 1-1: SerialNumber: 00f204f982a4b8b9
Jan 16 09:33:23 L502X org.gtk.Private.GPhoto2VolumeMonitor[1780]: (process:2108): GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
Jan 16 09:33:24 L502X org.gtk.Private.GPhoto2VolumeMonitor[1780]: (process:2108): GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
Jan 16 09:33:24 L502X colord[1165]: (colord:1165): Cd-WARNING **: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs__null_
Jan 16 09:33:26 L502X kernel: [ 9652.898664] usb 1-1: USB disconnect, device number 6
Jan 16 09:33:26 L502X kernel: [ 9653.233755] usb 1-1: new high-speed USB device number 7 using xhci_hcd
Jan 16 09:33:26 L502X kernel: [ 9653.367239] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee4
Jan 16 09:33:26 L502X kernel: [ 9653.367249] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 16 09:33:26 L502X kernel: [ 9653.367254] usb 1-1: Product: Nexus 5X
Jan 16 09:33:26 L502X kernel: [ 9653.367258] usb 1-1: Manufacturer: LGE
Jan 16 09:33:26 L502X kernel: [ 9653.367262] usb 1-1: SerialNumber: 00f204f982a4b8b9
Jan 16 09:33:26 L502X kernel: [ 9653.375259] rndis_Host 1-1:1.0 usb0: register 'rndis_Host' at usb-0000:04:00.0-1, RNDIS device, 4e:8a:8f:3f:b7:cb
Jan 16 09:33:26 L502X NetworkManager[1070]: <warn> (usb0): failed to find device 5 'usb0' with udev
Jan 16 09:33:26 L502X NetworkManager[1070]: <info> (usb0): new Ethernet device (carrier: OFF, driver: 'rndis_Host', ifindex: 5)
Jan 16 09:33:26 L502X mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1"
Jan 16 09:33:26 L502X mtp-probe: bus: 1, device: 7 was not an MTP device
Jan 16 09:33:26 L502X kernel: [ 9653.420245] rndis_Host 1-1:1.0 enx4e8a8f3fb7cb: renamed from usb0
Jan 16 09:33:26 L502X NetworkManager[1070]: <info> (usb0): interface index 5 renamed iface from 'usb0' to 'enx4e8a8f3fb7cb'
Jan 16 09:33:26 L502X NetworkManager[1070]: <info> devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1/1-1:1.0/net/enx4e8a8f3fb7cb, iface: enx4e8a8f3fb7cb)
Jan 16 09:33:26 L502X NetworkManager[1070]: <info> device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1/1-1:1.0/net/enx4e8a8f3fb7cb, iface: enx4e8a8f3fb7cb): no ifupdown configuration found.
Jan 16 09:33:26 L502X NetworkManager[1070]: <info> (enx4e8a8f3fb7cb): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jan 16 09:33:26 L502X NetworkManager[1070]: <info> (enx4e8a8f3fb7cb): link connected
Jan 16 09:33:26 L502X kernel: [ 9653.447746] IPv6: ADDRCONF(NETDEV_UP): enx4e8a8f3fb7cb: link is not ready
Jan 16 09:33:26 L502X NetworkManager[1070]: <info> (enx4e8a8f3fb7cb): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Jan 16 09:33:26 L502X NetworkManager[1070]: <info> Device 'enx4e8a8f3fb7cb' has no connection; scheduling activate_check in 0 seconds.
Jan 16 09:33:27 L502X colord-sane: io/hpmud/musb.c 2081: Invalid usb_open: Permission denied
Jan 16 09:33:28 L502X ModemManager[1081]: <info> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb1/1-1': not supported by any plugin
PDATE#:route -n
の後に、USBテザリングが有効になっているSudo dhclient ...
:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enx16d44e6a2773
192.168.42.0 0.0.0.0 255.255.255.0 U 0 0 0 enx16d44e6a2773
さて、答えを始めてくれてありがとう、あなたはほとんどそれを解決しました:)
あなたが言ったことを正確にやっても、まだサーフィンできず、ping google.com
のようなこともできません。
しかし、すべて正常に見えました(route、ifconfig、/ etc/resolv.confが127.0.1.1を指している...)。念のため、Googleから既知のIP(206.169.145.232)をpingしてみましたが、うまくいきました!くそー、DNSがなぜb0rkedなのかはわかりませんが、/ etc/resolv.confを編集し、127.0.1.1を8.8.8.8に置き換える(そして、2行目nameserver 8.8.4.4
を追加する)ことで一時的な回避策を使用できます。
設定が完了し、再びウェブを閲覧できます!
さて、以前と同様にkubuntu 15.10(これもこのバグの影響を受けます)が自動的にそれを行うことができない理由を誰かが理解できたら、素晴らしいでしょう。
楽しい。
起こったのは、rndis_HostドライバーによってUSB0インターフェイスの名前がenx4e8a8f3fb7cbに変更されたことです。/etc/network/interfacesファイルを編集し、USB0インターフェースを、rdis_Hostドライバーが名前を変更したインターフェースに置き換えます。
電話機を接続してテザリング機能をアクティブにした後にこれを確認するには、ターミナルで「ifconfig -a」を実行します。新しいランダムに生成されたインターフェイスが表示されます。ドライバ。