우분투 16.04. 일정 시간이 지나면 네트워크(케이블 또는 Wi-Fi 모두) 작동이 중지됩니다.
이것은 /var/log/syslog
문제가 마지막으로 나타난 이후 입니다.
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
플러그를 뽑았다가 다시 삽입하면(또는 Wi-Fi 카드를 껐다가 다시 활성화하면) 다음 재부팅까지 문제가 해결됩니다(예: 재부팅할 때까지 네트워크가 무기한 작동함).
특히 이런 일이 발생하면 시각적 출력이 없기 때문에 이는 대부분 짜증나는 일입니다. 작동이 멈추고 온라인 요청을 제출하려고 하면(포럼에 게시물을 쓰거나 새 페이지에 접속하려고 할 때) 더 이상 작동하지 않습니다.
힌트가 있나요?
오늘은 문제가 발생하기 전에 업데이트를 할 수 있어서 저희 syslog
는
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'
요청에 따라
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)
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
그리고이 질문에 대한 avahi-daemon
. 이 방향으로 투자---
답변1
일반 업데이트를 통해 문제가 해결되었으므로 문제가 정확히 어디에 있는지는 확실하지 않습니다.
답변2
의 내용을 확인하세요 /etc/network/interfaces
. 제가 틀렸을 수도 있지만 마치 GUI에서 네트워크를 관리하고 있는 것처럼 들립니다. 이전에 내 /etc/network/interfaces
파일과 Ubuntu GUI 설정 간의 충돌 문제가 있었습니다 .
/etc/network/interfaces
네트워크가 설정되어 있으면 해당 네트워크를 제거하고 GUI 설정만 사용해 보십시오 . 이것이 작동하지 않고 해당 파일에 다음 줄만 있는 경우 아래 단계를 시도해 보십시오.
auto lo
iface lo inet loopback
/etc/network/interfaces
파일에 해당 줄만 있는 경우 첫 번째 시도는 Ubuntu GUI 네트워킹의 모든 내용을 삭제하고 다음 위치에 넣는 것입니다 /etc/network/interfaces
.
auto eth0
iface eth0 inet dhcp
또는 고정 IP를 구성하려면(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
그리고 보조 이더넷이나 무선 카드를 등 으로 eth0
교체 하세요.eth1
wlan0
그런 다음 실행 sudo /etc/init.d/networking restart
하여 테스트한 다음 재부팅하여 작동하는지 확인합니다.
추신: 나는 이것이 작동한다고 보장하지 않습니다. 게시할 수 있는 정보의 양이 제한되어 있어 문제가 있는 위치를 파악하기가 어렵습니다. 이것이 제가 시도하는 첫 번째 일입니다.