搞砸了我的ubuntu 16安装(GTK& upowerd问题)

时间:2017-10-27 07:19:04

标签: ubuntu gtk

几个星期前,我决定清理我的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)

当我想开始提升时:

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 /指示器功率/指示器功率服务

(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

1 个答案:

答案 0 :(得分:1)

是!

在此处下载: https://debian.pkgs.org/9/debian-main-amd64/libssl1.0.2_1.0.2l-2_amd64.deb.html

安装好了,瞧,问题解决了。希望这有助于将来的某个人!