搞砸了我的 ubuntu 16 安装(GTK 和 upowerd 问题)
Messed up my ubuntu 16 installation (GTK & upowerd issues)
几周前我决定清理我的 Ubuntu 16 笔记本电脑;卸载了我不再需要的东西。不知怎么的,我卸载了一些有依赖性的东西,愚蠢的。
现在我打开gedit需要30秒左右,我无法打开电源管理,顶部屏幕也没有电池指示器。
这是我打开 gedit 时的系统日志:
Oct 27 09:07:58 Laptop-Ubuntu gnome-terminal-[3231]: Allocating size to GtkBox 0x5574c90f2710 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Oct 27 09:07:58 Laptop-Ubuntu gnome-terminal-[3231]: Allocating size to GtkBox 0x5574c90f2710 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Oct 27 09:08:14 Laptop-Ubuntu nautilus-autostart.desktop[2692]: Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: Timeout was reached (g-io-error-quark, 24)
当我想开始upowerd时:
upower.service - Daemon for power management
Loaded: loaded (/lib/systemd/system/upower.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-10-27 09:00:30 CEST; 15min ago
Docs: man:upowerd(8)
Process: 1337 ExecStart=/usr/lib/upower/upowerd (code=exited, status=127)
Main PID: 1337 (code=exited, status=127)
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: Failed to start Daemon for power management.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Unit entered failed state.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Failed with result 'exit-code'.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Service hold-off time over, scheduling restart.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: Stopped Daemon for power management.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Start request repeated too quickly.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: Failed to start Daemon for power management.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Unit entered failed state.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Failed with result 'exit-code'.
运行电源指示灯:
/usr/lib/x86_64-linux-gnu/indicator-power/indicator-power-service
(process:5204): indicator-power-WARNING **: Unable to enumerate UPower devices: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.352" (uid=0 pid=5204 comm="/usr/lib/x86_64-linux-gnu/indicator-power/indicato") interface="org.freedesktop.UPower" member="EnumerateDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=1597 comm="/snap/upower/22/usr/libexec/upowerd ")
如有任何帮助,我们将不胜感激。
[编辑]
谢谢@JohnKoch!
我发现了问题:
Start-Date: 2017-07-11 14:38:17
Commandline: apt-get remove --auto-remove gthumb
Requested-By: sjaak (1000)
Remove: gthumb:amd64 (3:3.4.3-1), gstreamer0.10-gnomevfs:amd64 (0.10.36-2ubuntu0.1), gthumb-data:amd64 (3:3.4.3-1), libssl1.0.2:amd64 (1.0.2l-0~ubuntu16.04.1+deb.sury.org+1)
End-Date: 2017-07-11 14:38:21
我认为问题出在libssl1.0.2。
但是当我 apt-get 安装它时:
apt-get install libssl1.0.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1.0.2' has no installation candidate
是的!
在此处查找下载:
https://debian.pkgs.org/9/debian-main-amd64/libssl1.0.2_1.0.2l-2_amd64.deb.html
安装了它,瞧,问题解决了。希望这对以后的人有所帮助!
几周前我决定清理我的 Ubuntu 16 笔记本电脑;卸载了我不再需要的东西。不知怎么的,我卸载了一些有依赖性的东西,愚蠢的。
现在我打开gedit需要30秒左右,我无法打开电源管理,顶部屏幕也没有电池指示器。
这是我打开 gedit 时的系统日志:
Oct 27 09:07:58 Laptop-Ubuntu gnome-terminal-[3231]: Allocating size to GtkBox 0x5574c90f2710 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Oct 27 09:07:58 Laptop-Ubuntu gnome-terminal-[3231]: Allocating size to GtkBox 0x5574c90f2710 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Oct 27 09:08:14 Laptop-Ubuntu nautilus-autostart.desktop[2692]: Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: Timeout was reached (g-io-error-quark, 24)
当我想开始upowerd时:
upower.service - Daemon for power management
Loaded: loaded (/lib/systemd/system/upower.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-10-27 09:00:30 CEST; 15min ago
Docs: man:upowerd(8)
Process: 1337 ExecStart=/usr/lib/upower/upowerd (code=exited, status=127)
Main PID: 1337 (code=exited, status=127)
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: Failed to start Daemon for power management.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Unit entered failed state.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Failed with result 'exit-code'.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Service hold-off time over, scheduling restart.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: Stopped Daemon for power management.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Start request repeated too quickly.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: Failed to start Daemon for power management.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Unit entered failed state.
okt 27 09:00:30 Laptop-Ubuntu systemd[1]: upower.service: Failed with result 'exit-code'.
运行电源指示灯: /usr/lib/x86_64-linux-gnu/indicator-power/indicator-power-service
(process:5204): indicator-power-WARNING **: Unable to enumerate UPower devices: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.352" (uid=0 pid=5204 comm="/usr/lib/x86_64-linux-gnu/indicator-power/indicato") interface="org.freedesktop.UPower" member="EnumerateDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=1597 comm="/snap/upower/22/usr/libexec/upowerd ")
如有任何帮助,我们将不胜感激。
[编辑]
谢谢@JohnKoch!
我发现了问题:
Start-Date: 2017-07-11 14:38:17
Commandline: apt-get remove --auto-remove gthumb
Requested-By: sjaak (1000)
Remove: gthumb:amd64 (3:3.4.3-1), gstreamer0.10-gnomevfs:amd64 (0.10.36-2ubuntu0.1), gthumb-data:amd64 (3:3.4.3-1), libssl1.0.2:amd64 (1.0.2l-0~ubuntu16.04.1+deb.sury.org+1)
End-Date: 2017-07-11 14:38:21
我认为问题出在libssl1.0.2。
但是当我 apt-get 安装它时:
apt-get install libssl1.0.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1.0.2' has no installation candidate
是的!
在此处查找下载: https://debian.pkgs.org/9/debian-main-amd64/libssl1.0.2_1.0.2l-2_amd64.deb.html
安装了它,瞧,问题解决了。希望这对以后的人有所帮助!