问题遇到的现象和发生背景:
系统版本Linux mrlyon-J3160MP 5.13.0-37-generic #42~20.04.1-Ubuntu SMP Tue Mar 15 15:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
由于无法更新edge,然后就在删除软件后,打开应用商店的时界面卡死,无任何反应
Mar 24 04:59:41 mrlyon-J3160MP systemd[984]: Starting Tracker metadata database store and lookup manager…
Mar 24 04:59:41 mrlyon-J3160MP dbus-daemon[1165]: [session uid=1000 pid=1165] Successfully activated service ‘org.freedesktop.Tracker1’
Mar 24 04:59:41 mrlyon-J3160MP systemd[984]: Started Tracker metadata database store and lookup manager.
Mar 24 05:00:01 mrlyon-J3160MP CRON[8178]: (smmsp) CMD (test -x /etc/init.d/sendmail && test -x /usr/share/sendmail/sendmail && test -x /usr/lib/sm.bin/sendmail && /usr/share/sendmail/sendmail cron-msp)
Mar 24 05:00:01 mrlyon-J3160MP sm-msp-queue[8198]: My unqualified host name (mrlyon-J3160MP) unknown; sleeping for retry
Mar 24 05:00:34 mrlyon-J3160MP tracker-store[8165]: OK
Mar 24 05:00:34 mrlyon-J3160MP systemd[984]: tracker-store.service: Succeeded.
Mar 24 05:00:50 mrlyon-J3160MP dbus-daemon[772]: [system] Activating via systemd: service name=‘org.freedesktop.PackageKit’ unit=‘packagekit.service’ requested by ‘:1.195’ (uid=0 pid=8772 comm=“/usr/bin/gdbus call --system --dest org.freedeskto” label=“unconfined”)
Mar 24 05:00:50 mrlyon-J3160MP systemd[1]: Starting PackageKit Daemon…
Mar 24 05:00:50 mrlyon-J3160MP PackageKit: daemon start
Mar 24 05:00:50 mrlyon-J3160MP dbus-daemon[772]: [system] Successfully activated service ‘org.freedesktop.PackageKit’
Mar 24 05:00:50 mrlyon-J3160MP systemd[1]: Started PackageKit Daemon.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@^@
Mar 24 12:02:10 mrlyon-J3160MP systemd-modules-load[271]: Inserted module ‘lp’
运行结果及报错内容:死机持续了7个小时无任何反应,
我的解答思路和尝试过的方法:试过网上各种的方法来解决都是一样。不能避免死机。
Windows10下试过没有事情,也测试了硬盘,内存,没有问题。就是不知道就出现了,之前用火狐上网的时候死机,后来试了,chrome,edge,还是一样死机。甚至还没有火狐稳定。火狐是在内存使用接近80的时候容易死机,但是其他的就不很任性了,随时都会,
最近最经常的安装或者卸载软件后,我发现不马上重启,系统就会无故死机,准的很。
本着那个程序引起的就卸载那个的思路,卸载了edge
##后搞明白了是chrome默认开启了“硬件加速”,edge同样是,所以在设置中关闭“硬件加速”后就可以了
2022-04-24又一次死机,这次是升级之后看视频的时候死机,日志如下。
Apr 24 01:34:27 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Failed to refresh patch information: livepatch check failed: POST request to "https://livepatch.canonical.com/v1/client/6dfc4866d4144683843f04e3b0a8adc6/updates" failed. Apr 24 01:34:27 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Task "refresh" returned an error: livepatch check failed: POST request to "https://livepatch.canonical.com/v1/client/6dfc4866d4144683843f04e3b0a8adc6/updates" failed, retrying in 30s. Apr 24 01:34:57 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Client information is recent, not refreshing. Apr 24 01:34:57 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Error in livepatch check state: check-failed. Apr 24 01:35:07 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Failed to refresh patch information: livepatch check failed: POST request to "https://livepatch.canonical.com/v1/client/6dfc4866d4144683843f04e3b0a8adc6/updates" failed. Apr 24 01:35:07 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Task "refresh" returned an error: livepatch check failed: POST request to "https://livepatch.canonical.com/v1/client/6dfc4866d4144683843f04e3b0a8adc6/updates" failed, retrying in 1m0s. Apr 24 01:36:07 mrharry-J3160MP snapd[949]: storehelpers.go:721: cannot refresh: snap has no updates available: "bare", "canonical-livepatch", "chromium", "chromium-ffmpeg", "code", "core", "core18", "core20", "gnome-3-28-1804", "gnome-3-38-2004", "gtk-common-themes", "pinta", "snap-store", "snapd", "typora" Apr 24 01:36:07 mrharry-J3160MP snapd[949]: autorefresh.go:539: auto-refresh: all snaps are up-to-date Apr 24 01:36:07 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Client information is recent, not refreshing. Apr 24 01:36:07 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Error in livepatch check state: check-failed. Apr 24 01:36:17 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Failed to refresh patch information: livepatch check failed: POST request to "https://livepatch.canonical.com/v1/client/6dfc4866d4144683843f04e3b0a8adc6/updates" failed. Apr 24 01:36:17 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Task "refresh" returned an error: livepatch check failed: POST request to "https://livepatch.canonical.com/v1/client/6dfc4866d4144683843f04e3b0a8adc6/updates" failed, retrying in 1m30s. Apr 24 01:37:07 mrharry-J3160MP rtkit-daemon[1115]: Supervising 3 threads of 2 processes of 1 users. Apr 24 01:37:35 mrharry-J3160MP rtkit-daemon[1115]: message repeated 3 times: [ Supervising 3 threads of 2 processes of 1 users.] Apr 24 01:37:47 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Client information is recent, not refreshing. Apr 24 01:37:47 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Error in livepatch check state: check-failed. Apr 24 01:37:48 mrharry-J3160MP canonical-livepatch.canonical-livepatchd[1016]: Task "refresh" completed succesfully after 3 retries. Apr 24 01:38:37 mrharry-J3160MP rtkit-daemon[1115]: Supervising 3 threads of 2 processes of 1 users. Apr 24 01:39:58 mrharry-J3160MP rtkit-daemon[1115]: message repeated 7 times: [ Supervising 3 threads of 2 processes of 1 users.] Apr 24 01:40:01 mrharry-J3160MP CRON[16668]: (smmsp) CMD (test -x /etc/init.d/sendmail && test -x /usr/share/sendmail/sendmail && test -x /usr/lib/sm.bin/sendmail && /usr/share/sendmail/sendmail cron-msp) Apr 24 01:40:01 mrharry-J3160MP sm-msp-queue[16688]: My unqualified host name (mrharry-J3160MP) unknown; sleeping for retry ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Apr 24 13:40:15 mrharry-J3160MP systemd-modules-load[278]: Inserted module 'lp'
好吧,现在看来是有三个程序的原因,一个是canonical-livepatch,一个是snap,一个是sendmail
看那起来是三个程序同时运行过度占用资源导致的系统位置错误引起的死机。
解决,停用停用自动更新改为手动更新。sendmail暂时观察。本次系统版本为:Linux mrharry-J3160MP 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
卸载snap sudo apt autoremove --purge snapd
Apr 26 00:03:06 mrharry-J3160MP snap-store[1952]: plugin fwupd took 1.7 seconds to do setup Apr 26 00:03:06 mrharry-J3160MP kernel: [ 40.618501] audit: type=1107 audit(1650902586.380:66): pid=923 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.8" pid=1952 label="snap.snap-store.ubuntu-software" peer_pid=944 peer_label="unconfined" Apr 26 00:03:06 mrharry-J3160MP kernel: [ 40.618501] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?' Apr 26 00:03:06 mrharry-J3160MP kernel: [ 40.620650] audit: type=1107 audit(1650902586.384:67): pid=923 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.8" pid=1952 label="snap.snap-store.ubuntu-software" peer_pid=944 peer_label="unconfined" Apr 26 00:03:06 mrharry-J3160MP kernel: [ 40.620650] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?' Apr 26 00:03:06 mrharry-J3160MP kernel: [ 40.710909] audit: type=1107 audit(1650902586.472:68): pid=923 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.8" pid=1952 label="snap.snap-store.ubuntu-software" peer_pid=944 peer_label="unconfined" Apr 26 00:03:06 mrharry-J3160MP kernel: [ 40.710909] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?' Apr 26 00:03:06 mrharry-J3160MP kernel: [ 40.716378] audit: type=1107 audit(1650902586.476:69): pid=923 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.8" pid=1952 label="snap.snap-store.ubuntu-software" peer_pid=944 peer_label="unconfined" Apr 26 00:03:06 mrharry-J3160MP snap-store[1952]: enabled plugins: desktop-categories, fwupd, os-release, packagekit, packagekit-local, packagekit-offline, packagekit-proxy, packagekit-refine-repos, packagekit-refresh, packagekit-upgrade, packagekit-url-to-app, appstream, desktop-menu-path, hardcoded-blocklist, hardcoded-popular, modalias, odrs, packagekit-refine, rewrite-resource, packagekit-history, provenance, snap, systemd-updates, generic-updates, provenance-license, icons, key-colors, key-colors-metadata Apr 26 00:03:06 mrharry-J3160MP kernel: [ 40.716378] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?' Apr 26 00:03:06 mrharry-J3160MP snap-store[1952]: disabled plugins: dpkg, dummy, fedora-langpacks, fedora-pkgdb-collections, repos Apr 26 00:03:07 mrharry-J3160MP kernel: [ 41.838932] audit: type=1400 audit(1650902587.600:70): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/etc/PackageKit/Vendor.conf" pid=1952 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 Apr 26 00:03:07 mrharry-J3160MP snap-store[1952]: /etc/PackageKit/Vendor.conf file not found
2022-05-01
更新系统后在用Firefox时死机,
gnomeshell的问题,不知道怎么解决了,先退回39内核看看怎么样,
日志如下
ay 1 19:02:20 mrharry-J3160MP gnome-shell[3096]: [3191:3191:0501/190220.298200:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
May 1 19:02:20 mrharry-J3160MP gnome-shell[3096]: [3089:3089:0501/190220.410479:ERROR:assistance_home_client.cc(23)] File path /home/mrharry/.config/microsoft-edge/Default
May 1 19:02:21 mrharry-J3160MP gnome-shell[3096]: [3089:3089:0501/190221.510113:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not implemented
May 1 19:02:21 mrharry-J3160MP gnome-shell[3096]: [3089:3089:0501/190221.537360:ERROR:object_proxy.cc(623)] Failed to call method: org.gnome.ScreenSaver.GetActive: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.ScreenSaver” on object at path /
May 1 19:03:52 mrharry-J3160MP anacron[574]: Job `cron.weekly' started
May 1 19:03:52 mrharry-J3160MP anacron[3476]: Updated timestamp for job `cron.weekly' to 2022-05-01
May 1 19:03:52 mrharry-J3160MP anacron[574]: Job `cron.weekly' terminated
May 1 19:03:52 mrharry-J3160MP anacron[574]: Normal exit (1 job run)
May 1 19:03:52 mrharry-J3160MP systemd[1]: anacron.service: Killing process 3479 (update-notifier) with signal SIGKILL.
May 1 19:03:52 mrharry-J3160MP systemd[1]: anacron.service: Killing process 3480 (shuf) with signal SIGKILL.
May 1 19:03:52 mrharry-J3160MP systemd[1]: anacron.service: Killing process 3479 (update-notifier) with signal SIGKILL.
May 1 19:03:52 mrharry-J3160MP systemd[1]: anacron.service: Killing process 3480 (shuf) with signal SIGKILL.
May 1 19:03:52 mrharry-J3160MP systemd[1]: anacron.service: Succeeded.
May 1 19:04:33 mrharry-J3160MP gnome-shell[3096]: [3089:3089:0501/190433.479116:ERROR:smartscreen_dns_resolver.cc(103)] SmartScreenDnsResolver::OnComplete Error: -105 DidTimeOut: 0 URL: https://yoyow.us/
May 1 19:04:33 mrharry-J3160MP gnome-shell[3096]: Fontconfig error: Cannot load default config file: No such file: (null)
May 1 19:04:33 mrharry-J3160MP gnome-shell[3096]: [3089:3089:0501/190433.570986:ERROR:interface_endpoint_client.cc(659)] Message 0 rejected by interface blink.mojom.WidgetHost
May 1 19:04:34 mrharry-J3160MP gnome-shell[3096]: [3089:3089:0501/190434.630524:ERROR:smartscreen_dns_resolver.cc(103)] SmartScreenDnsResolver::OnComplete Error: -105 DidTimeOut: 0 URL: https://yoyow.us/
May 1 19:05:43 mrharry-J3160MP systemd[1]: Starting Ubuntu Advantage Timer for running repeated jobs...
May 1 19:05:43 mrharry-J3160MP systemd[1]: ua-timer.service: Succeeded.
May 1 19:05:43 mrharry-J3160MP systemd[1]: Finished Ubuntu Advantage Timer for running repeated jobs.
May 1 19:05:50 mrharry-J3160MP PackageKit: daemon quit
May 1 19:05:50 mrharry-J3160MP systemd[1]: packagekit.service: Succeeded.
May 1 19:09:05 mrharry-J3160MP gnome-shell[3096]: Fontconfig error: Cannot load default config file: No such file: (null)
May 1 19:09:26 mrharry-J3160MP systemd[1]: Starting Cleanup of Temporary Directories...
May 1 19:09:26 mrharry-J3160MP systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
May 1 19:09:26 mrharry-J3160MP systemd[1]: Finished Cleanup of Temporary Directories.
May 1 19:10:01 mrharry-J3160MP gnome-shell[3096]: Fontconfig error: Cannot load default config file: No such file: (null)
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@M
```bash
经过再次尝试,发现可能是硬件的兼容性问题,由于这是一个低功耗平台低压版的u,低压内存,所以尝试了一下更改BIOS设置
在BIOS中关闭cup硬件虚拟化,以及电源节能技术,目前来看测试一晚上的视频播放,网页浏览,现在正常了,还有之前装了Chrome以及Chrome内核的edge也要在设置中关闭硬件加速。
2022-05-02又死机。这次没找到错误日志,但是就是和之前一样又死机了。心累。
2022-0503又死机,还是没有找到错误日志,但是还是死机了,死机前一分钟,音响发出了两声噗噗的声音,像是刚连接插线发出的那种电流声,难道市电压不稳造成?也不该啊,电源都是宽幅,按理说不该出现这种问题。继续在BIOS中调整设置。
2022-05-12,今天更新了系统,然后打开Firefox是英文的,就添加了中文支持,然后就又又又又死机了,
当前系统更新后的版本
然后今天一共更新了两次,第一次是手动apt-update升级的,更新完了重启,系统更新器又提示更新,这次更新之后就是导致死机的,
所以先禁用系统的更新,改为手动更新吧,
Linux mrharry-J3160MP 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
ay 12 17:17:24 mrharry-J3160MP systemd[700]: Starting Portal service (GTK+/GNOME implementation)...
May 12 17:17:24 mrharry-J3160MP dbus-daemon[719]: [session uid=1000 pid=719] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
May 12 17:17:24 mrharry-J3160MP systemd[700]: Started Portal service (GTK+/GNOME implementation).
May 12 17:17:24 mrharry-J3160MP dbus-daemon[719]: [session uid=1000 pid=719] Successfully activated service 'org.freedesktop.portal.Desktop'
May 12 17:17:24 mrharry-J3160MP systemd[700]: Started Portal service.
May 12 17:17:26 mrharry-J3160MP gnome-shell[2129]: ATTENTION: default value of option mesa_glthread overridden by environment.
May 12 17:17:26 mrharry-J3160MP gnome-shell[2129]: message repeated 3 times: [ ATTENTION: default value of option mesa_glthread overridden by environment.]
May 12 17:17:27 mrharry-J3160MP rtkit-daemon[722]: Supervising 2 threads of 1 processes of 1 users.
May 12 17:17:27 mrharry-J3160MP rtkit-daemon[722]: message repeated 5 times: [ Supervising 2 threads of 1 processes of 1 users.]
May 12 17:17:27 mrharry-J3160MP rtkit-daemon[722]: Successfully made thread 2258 of process 2129 owned by '1000' RT at priority 10.
May 12 17:17:27 mrharry-J3160MP rtkit-daemon[722]: Supervising 3 threads of 2 processes of 1 users.
May 12 17:22:48 mrharry-J3160MP systemd-modules-load[261]: Inserted module 'lp'
May 12 17:22:48 mrharry-J3160MP systemd-modules-load[261]: Inserted module 'ppdev'
这个看起最后是rtkit-daemon最后的占用资源引起的死机,搜索了相关的解决方案,早期的帖子都是七八年前的,说是这个进程会周期性的占用100%的内存,而且是随机性的,还有是说耗尽了虚拟内存,因为没有实时监控内存记录,所以暂时没有解决办法,无解。