16.04, a rede pára de funcionar

3

Ubuntu 16.04. Rede (tanto por cabo como por wi-fi) pára de funcionar após um determinado período de tempo.

Este é o meu /var/log/syslog após a última aparição do problema

davide@brenna:~$ cat /var/log/syslog
Apr 29 09:30:23 brenna colord[1150]: (colord:1150): Cd-WARNING **: failed to get session [pid 4355]: Device o indirizzo non esistente
Apr 29 09:30:40 brenna anacron[896]: Job 'cron.daily' terminated
Apr 29 09:30:40 brenna anacron[896]: Normal exit (1 job run)
Apr 29 09:32:28 brenna com.ubuntu.OneConf[1671]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/davide/.cache/oneconf/3bdacd8fb8c349449cd523c9f50dfcb9/other_hosts'
Apr 29 09:36:46 brenna AptDaemon: INFO: Quitting due to inactivity
Apr 29 09:36:46 brenna AptDaemon: INFO: Quitting was requested
Apr 29 09:36:46 brenna org.debian.apt[943]: 09:36:46 AptDaemon [INFO]: Quitting due to inactivity
Apr 29 09:36:46 brenna org.debian.apt[943]: 09:36:46 AptDaemon [INFO]: Quitting was requested
Apr 29 09:40:15 brenna upowerd[1831]: (upowerd:1831): UPower-Linux-WARNING **: energy 44,400000 bigger than full 31,912500
Apr 29 09:40:23 brenna avahi-daemon[940]: Withdrawing address record for 192.168.0.216 on eth0.
Apr 29 09:40:23 brenna avahi-daemon[940]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.0.216.
Apr 29 09:40:23 brenna gnome-session[1803]: [2045:2151:0429/094023:ERROR:cloud_print_proxy_backend.cc(538)] Notifications for connector 9EEEB091-559D-9344-6BAC-C8DDB4835FE9 disabled.
Apr 29 09:40:23 brenna gnome-session[1803]: [2045:2151:0429/094023:ERROR:cloud_print_proxy_backend.cc(538)] Notifications for connector 9EEEB091-559D-9344-6BAC-C8DDB4835FE9 disabled.
Apr 29 09:40:23 brenna avahi-daemon[940]: Interface eth0.IPv4 no longer relevant for mDNS.
Apr 29 09:40:23 brenna systemd[1]: Starting Cleanup of Temporary Directories...
Apr 29 09:40:23 brenna systemd-tmpfiles[7098]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
Apr 29 09:40:23 brenna systemd[1]: Started Cleanup of Temporary Directories.
Apr 29 09:40:23 brenna whoopsie[920]: [09:40:23] Cannot reach: https://daisy.ubuntu.com
Apr 29 09:40:23 brenna whoopsie[920]: [09:40:23] offline
Apr 29 09:40:24 brenna whoopsie[920]: [09:40:24] Cannot reach: https://daisy.ubuntu.com
Apr 29 09:41:23 brenna whoopsie[920]: [09:41:23] Cannot reach: https://daisy.ubuntu.com

Remover o plugue e reinseri-lo (ou desligar o cartão wi-fi e reativá-lo) resolve o problema até a próxima reinicialização (ou seja, a rede funciona indefinidamente depois disso até a reinicialização).

Isso é muito chato, especialmente porque não há saída visual quando isso acontece. Ele simplesmente pára de funcionar e, quando você tenta enviar uma solicitação on-line (talvez escrever uma postagem em um fórum ou tentar acessar uma nova página), ela simplesmente não funciona mais.

Alguma dica?

Hoje consegui atualizar antes que o problema ocorresse, portanto, syslog us a

davide@brenna:~$ cat /var/log/syslog
Apr 30 09:19:18 brenna colord[1137]: (colord:1137): Cd-WARNING **: failed to get session [pid 4254]: Device o indirizzo non esistente
Apr 30 09:19:31 brenna anacron[962]: Job 'cron.daily' terminated
Apr 30 09:19:31 brenna anacron[962]: Normal exit (1 job run)
Apr 30 09:26:23 brenna AptDaemon: INFO: Quitting due to inactivity
Apr 30 09:26:23 brenna AptDaemon: INFO: Quitting was requested
Apr 30 09:26:23 brenna org.debian.apt[891]: 09:26:23 AptDaemon [INFO]: Quitting due to inactivity
Apr 30 09:26:23 brenna org.debian.apt[891]: 09:26:23 AptDaemon [INFO]: Quitting was requested
Apr 30 09:29:18 brenna avahi-daemon[979]: Withdrawing address record for 192.168.0.216 on eth0.
Apr 30 09:29:18 brenna avahi-daemon[979]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.0.216.
Apr 30 09:29:18 brenna avahi-daemon[979]: Interface eth0.IPv4 no longer relevant for mDNS.
Apr 30 09:29:18 brenna systemd[1]: Starting Cleanup of Temporary Directories...
Apr 30 09:29:18 brenna systemd-tmpfiles[4409]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
Apr 30 09:29:18 brenna gnome-session[2299]: [2547:2656:0430/092918:ERROR:cloud_print_proxy_backend.cc(538)] Notifications for connector 9EEEB091-559D-9344-6BAC-C8DDB4835FE9 disabled.
Apr 30 09:29:18 brenna gnome-session[2299]: [2547:2656:0430/092918:ERROR:cloud_print_proxy_backend.cc(538)] Notifications for connector 9EEEB091-559D-9344-6BAC-C8DDB4835FE9 disabled.
Apr 30 09:29:18 brenna systemd[1]: Started Cleanup of Temporary Directories.
Apr 30 09:29:18 brenna whoopsie[982]: [09:29:18] Cannot reach: https://daisy.ubuntu.com
Apr 30 09:29:18 brenna whoopsie[982]: [09:29:18] offline
Apr 30 09:29:19 brenna whoopsie[982]: [09:29:19] Cannot reach: https://daisy.ubuntu.com
Apr 30 09:32:46 brenna whoopsie[982]: [09:32:46] Cannot reach: https://daisy.ubuntu.com
Apr 30 09:33:02 brenna whoopsie[982]: [09:33:02] Cannot reach: https://daisy.ubuntu.com
Apr 30 09:33:18 brenna whoopsie[982]: [09:33:18] Cannot reach: https://daisy.ubuntu.com
Apr 30 09:38:24 brenna whoopsie[982]: [09:38:24] Cannot reach: https://daisy.ubuntu.com
Apr 30 09:39:00 brenna dbus[891]: [system] Activating service name='org.debian.apt' (using servicehelper)
Apr 30 09:39:01 brenna AptDaemon: INFO: Initializing daemon
Apr 30 09:39:01 brenna org.debian.apt[891]: 09:39:01 AptDaemon [INFO]: Initializing daemon
Apr 30 09:39:01 brenna dbus[891]: [system] Successfully activated service 'org.debian.apt'
Apr 30 09:39:01 brenna AptDaemon.PackageKit: INFO: Initializing PackageKit compat layer
Apr 30 09:39:01 brenna org.debian.apt[891]: /usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:35: PyGIWarning: PackageKitGlib was imported without specifying a version first. Use gi.require_version('PackageKitGlib', '1.0') before import to ensure that the right version gets loaded.
Apr 30 09:39:01 brenna org.debian.apt[891]:   from gi.repository import PackageKitGlib as pk
Apr 30 09:39:01 brenna org.debian.apt[891]: 09:39:01 AptDaemon.PackageKit [INFO]: Initializing PackageKit compat layer
Apr 30 09:39:01 brenna AptDaemon: INFO: CommitPackages() was called: dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('ubuntu-core-launcher')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s'))
Apr 30 09:39:01 brenna org.debian.apt[891]: 09:39:01 AptDaemon [INFO]: CommitPackages() was called: dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s')), dbus.Array([dbus.String('ubuntu-core-launcher')], signature=dbus.Signature('s')), dbus.Array([dbus.String('')], signature=dbus.Signature('s'))
Apr 30 09:39:01 brenna AptDaemon.Trans: INFO: Queuing transaction /org/debian/apt/transaction/c920bbc5aef04a96b9cfe22ca0070cab
Apr 30 09:39:01 brenna org.debian.apt[891]: 09:39:01 AptDaemon.Trans [INFO]: Queuing transaction /org/debian/apt/transaction/c920bbc5aef04a96b9cfe22ca0070cab
Apr 30 09:39:01 brenna AptDaemon.Worker: INFO: Simulating trans: /org/debian/apt/transaction/c920bbc5aef04a96b9cfe22ca0070cab
Apr 30 09:39:01 brenna org.debian.apt[891]: 09:39:01 AptDaemon.Worker [INFO]: Simulating trans: /org/debian/apt/transaction/c920bbc5aef04a96b9cfe22ca0070cab
Apr 30 09:39:01 brenna AptDaemon.Worker: INFO: Committing packages: dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([dbus.String('ubuntu-core-launcher')], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s'))
Apr 30 09:39:01 brenna org.debian.apt[891]: 09:39:01 AptDaemon.Worker [INFO]: Committing packages: dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([dbus.String('ubuntu-core-launcher')], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s'))
Apr 30 09:39:02 brenna AptDaemon.Worker: INFO: Processing transaction /org/debian/apt/transaction/c920bbc5aef04a96b9cfe22ca0070cab
Apr 30 09:39:02 brenna org.debian.apt[891]: 09:39:02 AptDaemon.Worker [INFO]: Processing transaction /org/debian/apt/transaction/c920bbc5aef04a96b9cfe22ca0070cab
Apr 30 09:39:02 brenna gnome-session[2299]: debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
Apr 30 09:39:04 brenna kernel: [ 1491.033247] audit_printk_skb: 52 callbacks suppressed
Apr 30 09:39:04 brenna kernel: [ 1491.033251] audit: type=1400 audit(1462001944.072:28): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/bin/ubuntu-core-launcher" pid=4526 comm="apparmor_parser"
Apr 30 09:39:03 brenna gnome-session[2299]: message repeated 2 times: [ debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied]
Apr 30 09:39:05 brenna AptDaemon.Worker: INFO: Finished transaction /org/debian/apt/transaction/c920bbc5aef04a96b9cfe22ca0070cab
Apr 30 09:39:05 brenna org.debian.apt[891]: /usr/lib/python3/dist-packages/aptdaemon/progress.py:491: Warning: Source ID 41 was not found when attempting to remove it
Apr 30 09:39:05 brenna org.debian.apt[891]:   GLib.source_remove(id)
Apr 30 09:39:05 brenna org.debian.apt[891]: /usr/lib/python3/dist-packages/aptdaemon/progress.py:491: Warning: Source ID 42 was not found when attempting to remove it
Apr 30 09:39:05 brenna org.debian.apt[891]:   GLib.source_remove(id)
Apr 30 09:39:05 brenna org.debian.apt[891]: 09:39:05 AptDaemon.Worker [INFO]: Finished transaction /org/debian/apt/transaction/c920bbc5aef04a96b9cfe22ca0070cab
Apr 30 09:39:06 brenna gnome-session[2299]: (unity-control-center:4593): unity-control-center-WARNING **: Could not load /usr/share/themes/Adwaita/index.theme: File o directory non esistente
Apr 30 09:39:21 brenna gnome-session[2299]: /usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
Apr 30 09:39:21 brenna gnome-session[2299]:   from gi.repository import Gtk
Apr 30 09:39:21 brenna gnome-session[2299]: /usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
Apr 30 09:39:21 brenna gnome-session[2299]:   from gi.repository import Dbusmenu, Unity
Apr 30 09:39:21 brenna gnome-session[2299]: /usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
Apr 30 09:39:21 brenna gnome-session[2299]:   from gi.repository import Dbusmenu, Unity
Apr 30 09:39:23 brenna com.ubuntu.OneConf[2070]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/davide/.cache/oneconf/3bdacd8fb8c349449cd523c9f50dfcb9/other_hosts'

Como por solicitação

davide@brenna:~$ lspci -nn | grep Network
07:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 2230 [8086:0887] (rev c4)
davide@brenna:~$ lspci -nn | grep Eth
09:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8161 Gigabit Ethernet [1969:1091] (rev 10)

Eu encontrei isso através da revista systemd

mag 05 12:18:32 brenna avahi-daemon[939]: Withdrawing address record for 192.168.0.216 on eth0.
mag 05 12:18:32 brenna gnome-session[1789]: [2013:2119:0505/121832:ERROR:cloud_print_proxy_backend.cc(538)] Notifications for connector 9EEEB091-559D-9344-6BAC-C8DDB4835
mag 05 12:18:32 brenna gnome-session[1789]: [2013:2119:0505/121832:ERROR:cloud_print_proxy_backend.cc(538)] Notifications for connector 9EEEB091-559D-9344-6BAC-C8DDB4835
mag 05 12:18:32 brenna avahi-daemon[939]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.0.216.
mag 05 12:18:32 brenna systemd[1]: Starting Cleanup of Temporary Directories...
mag 05 12:18:32 brenna whoopsie[931]: [12:18:32] Cannot reach: https://daisy.ubuntu.com
mag 05 12:18:32 brenna whoopsie[931]: [12:18:32] offline
mag 05 12:18:32 brenna avahi-daemon[939]: Interface eth0.IPv4 no longer relevant for mDNS.
mag 05 12:18:32 brenna systemd-tmpfiles[4930]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
mag 05 12:18:33 brenna systemd[1]: Started Cleanup of Temporary Directories.
mag 05 12:18:33 brenna whoopsie[931]: [12:18:33] Cannot reach: https://daisy.ubuntu.com

e esta pergunta sobre% código%. Investindo nessa direção ---

    
por dadexix86 29.04.2016 / 09:47

2 respostas

1

O problema foi resolvido com as atualizações normais, por isso não está claro onde o problema era exatamente.

    
por dadexix86 17.05.2016 / 09:58
1

Verifique o conteúdo de /etc/network/interfaces . Embora eu possa estar enganado, parece-me que você está gerenciando suas redes a partir da GUI. Eu já tive problemas com conflitos entre o meu arquivo /etc/network/interfaces e a configuração da GUI do Ubuntu.

Se /etc/network/interfaces tiver redes configuradas, tente removê-las e usar apenas a configuração da GUI. Se isso não funcionar, e esse arquivo tiver apenas as seguintes linhas, tente as etapas abaixo.

auto lo
iface lo inet loopback

Se o seu arquivo /etc/network/interfaces tiver apenas essas linhas, minha primeira tentativa seria excluir tudo na rede da GUI do Ubuntu e colocar em /etc/network/interfaces :

auto eth0
iface eth0 inet dhcp

Ou para configurar um IP estático (para casos em que você não tem um roteador dhcp):

auto eth0
iface eth0 inet static
  address 192.168.1.14
  gateway 192.168.1.1
  netmask 255.255.255.0
  network 192.168.1.0
  broadcast 192.168.1.255

E substitua eth0 por eth1 ou wlan0 etc por uma placa Ethernet secundária ou uma placa sem fio.

Em seguida, execute sudo /etc/init.d/networking restart para testá-lo e, em seguida, reinicialize para ver se funcionou.

P.S: Eu não faço garantias deste trabalho. É difícil dizer pela quantidade limitada de informações que você pode postar onde está o problema. Esta é apenas a primeira coisa que eu tentaria.

    
por anonymous2 02.05.2016 / 15:06