正如您可能猜到的那样,我对 linux 还很陌生,我在 10 天前开始使用 Ubuntu 16.04 并升级到 Ubuntu 17.10。我很紧张,因为我害怕有一天我打开电脑时会发现一些黑屏盯着我看,挡住了我访问文件和上网的路。所以,我正在努力教育自己,以防万一。今天我打开它时发现了一个叫做“系统日志”的东西,我发现了很多消息(看起来像错误),其中一些被列为重要消息。我的问题:有没有办法可以用它来检测和解决任何问题?谢谢。
PS:我知道我的 wifi 连接有问题,就像溜溜球一样;上一分钟,下一分钟。至少这是我知道的一个问题。
这是我从“dmesg”命令中得到的:
[15990.659912] iwlwifi 0000:02:00.0: Microcode SW error detected. Restarting 0x2000000.
[15990.660059] iwlwifi 0000:02:00.0: Start IWL Error Log Dump:
[15990.660064] iwlwifi 0000:02:00.0: Status: 0x00000200, count: 6
[15990.660067] iwlwifi 0000:02:00.0: Loaded firmware version: 29.541020.0
[15990.660072] iwlwifi 0000:02:00.0: 0x000019C2 | ADVANCED_SYSASSERT
[15990.660075] iwlwifi 0000:02:00.0: 0x000002A0 | trm_hw_status0
[15990.660078] iwlwifi 0000:02:00.0: 0x00000000 | trm_hw_status1
[15990.660081] iwlwifi 0000:02:00.0: 0x00043D58 | branchlink2
[15990.660084] iwlwifi 0000:02:00.0: 0x0004B016 | interruptlink1
[15990.660087] iwlwifi 0000:02:00.0: 0x00000000 | interruptlink2
[15990.660091] iwlwifi 0000:02:00.0: 0xDEADBEEF | data1
[15990.660093] iwlwifi 0000:02:00.0: 0xDEADBEEF | data2
[15990.660096] iwlwifi 0000:02:00.0: 0xDEADBEEF | data3
[15990.660100] iwlwifi 0000:02:00.0: 0x488000F3 | beacon time
[15990.660102] iwlwifi 0000:02:00.0: 0x1703DD11 | tsf low
[15990.660105] iwlwifi 0000:02:00.0: 0x00000005 | tsf hi
[15990.660108] iwlwifi 0000:02:00.0: 0x00000000 | time gp1
[15990.660112] iwlwifi 0000:02:00.0: 0x0259E583 | time gp2
[15990.660115] iwlwifi 0000:02:00.0: 0x00000001 | uCode revision type
[15990.660118] iwlwifi 0000:02:00.0: 0x0000001D | uCode version major
[15990.660121] iwlwifi 0000:02:00.0: 0x0008415C | uCode version minor
[15990.660124] iwlwifi 0000:02:00.0: 0x00000210 | hw version
[15990.660127] iwlwifi 0000:02:00.0: 0x00C89200 | board version
[15990.660130] iwlwifi 0000:02:00.0: 0x0000001C | hcmd
[15990.660133] iwlwifi 0000:02:00.0: 0x24022000 | isr0
[15990.660136] iwlwifi 0000:02:00.0: 0x00881800 | isr1
[15990.660139] iwlwifi 0000:02:00.0: 0x0000000A | isr2
[15990.660142] iwlwifi 0000:02:00.0: 0x40415CC0 | isr3
[15990.660144] iwlwifi 0000:02:00.0: 0x00000000 | isr4
[15990.660148] iwlwifi 0000:02:00.0: 0x0A9E001C | last cmd Id
[15990.660151] iwlwifi 0000:02:00.0: 0x00000000 | wait_event
[15990.660154] iwlwifi 0000:02:00.0: 0x000000D4 | l2p_control
[15990.660157] iwlwifi 0000:02:00.0: 0x00018020 | l2p_duration
[15990.660160] iwlwifi 0000:02:00.0: 0x00000007 | l2p_mhvalid
[15990.660163] iwlwifi 0000:02:00.0: 0x00000081 | l2p_addr_match
[15990.660166] iwlwifi 0000:02:00.0: 0x00000005 | lmpm_pmg_sel
[15990.660169] iwlwifi 0000:02:00.0: 0x15061956 | timestamp
[15990.660172] iwlwifi 0000:02:00.0: 0x00006878 | flow_handler
[15990.660178] ieee80211 phy1: Hardware restart was requested
您好,欢迎来到 Linux 世界!
是的,这就是系统日志的用途;
启动日志记录的正常健康输出示例:
关于磁盘坏扇区的示例(取自https://serverfault.com/questions/407007/what-do-these-disk-errors-in-syslog-mean ):
这两个例子都来自dmesg,
如 bugs.launchpad.net/ubuntu/+source/linux/+bug/1710390 中所述,针对您的问题的建议解决方案是执行以下操作,
在终端中,打开 NetworkManager.conf
添加以下内容,
保存文件,也许重新启动网络管理器,