Ubuntu 崩溃 - 如何读取日志文件

Ubuntu 崩溃 - 如何读取日志文件

几天前,笔记本电脑无缘无故地关闭了。从那天起,它就无缘无故地随机崩溃了。

这是我(正确地?)从上次崩溃的日志文件中过滤出来的,但我不知道这意味着什么。当时有几个进程正在运行:chrome 和 firefox 上的许多网页、一台装有 WindowsXP 的虚拟机和 clamscan 服务。

问题的根本原因是什么?另外,你认为我必须激活该apport服务才能获取更多信息吗?

/var/log/kern.log

Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.148059] wlan0: deauthenticating from f8:35:dd:77:3a:04 by local choice (reason=3)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.176190] cfg80211: Calling CRDA to update world regulatory domain
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227383] cfg80211: World regulatory domain updated:
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227386] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227387] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227389] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227390] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227390] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227391] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

/var/log/syslog

Nov  4 10:53:12 tigerjack89-Inspiron-7720 compiz: pam_ecryptfs: seteuid error
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> sleep requested (sleeping: no  enabled: yes)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> sleeping or disabling...
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> (wlan0): device state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> (wlan0): deactivating device (reason 'sleeping') [37]
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 4656
Nov  4 10:53:55 tigerjack89-Inspiron-7720 avahi-daemon[1102]: Withdrawing address record for fe80::6236:ddff:fe41:415f on wlan0.
Nov  4 10:53:55 tigerjack89-Inspiron-7720 avahi-daemon[1102]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::6236:ddff:fe41:415f.
Nov  4 10:53:55 tigerjack89-Inspiron-7720 avahi-daemon[1102]: Interface wlan0.IPv6 no longer relevant for mDNS.
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.148059] wlan0: deauthenticating from f8:35:dd:77:3a:04 by local choice (reason=3)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 wpa_supplicant[1600]: wlan0: CTRL-EVENT-DISCONNECTED bssid=f8:35:dd:77:3a:04 reason=3 locally_generated=1
Nov  4 10:53:55 tigerjack89-Inspiron-7720 avahi-daemon[1102]: Withdrawing address record for 192.168.1.152 on wlan0.
Nov  4 10:53:55 tigerjack89-Inspiron-7720 avahi-daemon[1102]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.152.
Nov  4 10:53:55 tigerjack89-Inspiron-7720 avahi-daemon[1102]: Interface wlan0.IPv4 no longer relevant for mDNS.
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.176190] cfg80211: Calling CRDA to update world regulatory domain
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <warn> DNS: plugin dnsmasq update failed
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> Removing DNS information from /sbin/resolvconf
Nov  4 10:53:55 tigerjack89-Inspiron-7720 dnsmasq[2856]: setting upstream servers from DBus
Nov  4 09:49:27 tigerjack89-Inspiron-7720 whoopsie[1357]: message repeated 2 times: [ online]
Nov  4 10:53:55 tigerjack89-Inspiron-7720 whoopsie[1357]: offline
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227383] cfg80211: World regulatory domain updated:
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227386] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227387] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227389] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227390] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227390] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 kernel: [ 4191.227391] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> (wlan0): cleaning up...
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> (wlan0): taking down device.
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> NetworkManager state is now ASLEEP
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> (eth1): device state change: unavailable -> unmanaged (reason 'sleeping') [20 10 37]
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> (eth1): cleaning up...
Nov  4 10:53:55 tigerjack89-Inspiron-7720 NetworkManager[1121]: <info> (eth1): taking down device.
Nov  4 10:53:55 tigerjack89-Inspiron-7720 dbus[1058]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 dbus[1058]: [system] Activating service name='org.freedesktop.systemd1' (using servicehelper)
Nov  4 10:53:55 tigerjack89-Inspiron-7720 dbus[1058]: [system] Successfully activated service 'org.freedesktop.systemd1'
Nov  4 10:53:55 tigerjack89-Inspiron-7720 dbus[1058]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov  4 10:53:56 tigerjack89-Inspiron-7720 anacron[6005]: Anacron 2.3 started on 2014-11-04
Nov  4 10:53:56 tigerjack89-Inspiron-7720 anacron[6005]: Normal exit (0 jobs run)

编辑1

虽然前一个包含所有日志我认为与崩溃相关(检查时间戳),这些是完整日志的链接

事故发生11月4日 10:53:56(实际上,大约一小时前发生了另一次崩溃,但我不知道正确的时间戳,因为我当时不在笔记本电脑附近)。

奇怪的是:你有没有注意到,有一行的时间戳与前面的不一样?我的意思是这个

Nov  4 10:53:55 tigerjack89-Inspiron-7720 dnsmasq[2856]: setting upstream servers from DBus
Nov  4 09:49:27 tigerjack89-Inspiron-7720 whoopsie[1357]: message repeated 2 times: [ online]
Nov  4 10:53:55 tigerjack89-Inspiron-7720 whoopsie[1357]: offline

编辑2

好吧,我再次尝试运行clamscan,这次只在我的home目录中运行。但是,在某个时候,核心温度超过了 98°C,所以我停止了该过程。我尝试clamscan再次以详细模式运行以查看特定文件是否有错误。在某个时候,核心温度超过了 90°C,但这次桌面关闭,然后计算机停止。另外,我有一段时间无法重新启动它(直到它再次冷却下来,我想)。所以,我认为问题与高核心温度有关。当然,clamscan我的笔记本电脑在 4 次上冻结了 3 次(唯一一次没有冻结是因为我手动强制停止该过程)。对于之前的崩溃,也许某个过程在某个时候开始使核心变暖;但是,我不知道是什么过程。FWIW,这些是针对事件崩溃时间过滤的日志文件。 系统日志 内核日志 这种strange模式再次出现。有什么建议吗?

答案1

尝试:

$ sudo service whoopsie restart

如果不起作用,请使用以下方法搜索错误:

systemctl | grep -i whoopsie

cat /var/log/syslog | grep -i error (or failure)

并向我们​​展示所出现的内容。

或者完全删除 whoopsie 包:

$ sudo apt-get purge whoopsie

whoopsie 包现在将从系统中删除。

相关内容