Xorg가 중단되었거나 이상한 메모리 누수로 인해 4GB의 메모리를 사용하고 있었기 때문에 Xorg를 종료하고 정상적으로 다시 시작했습니다. 방금 Slim을 통해 다시 로그인해야 했지만 그 후 다음 재부팅까지 다음과 같은 몇 가지 인증 문제가 발생했습니다.
Thunar 또는 Nemo를 통해 USB 썸 드라이브를 마운트하려고 할 때 위치 목록에서 장치를 클릭하면 다음과 같은 메시지가 나타납니다.
'트랜센드'를 설치할 수 없습니다. 해당 작업을 수행할 수 있는 권한이 없습니다.
예를 들어 일시 중지, 닫기 등을 시도할 때
xfce4-session-logout --suspend
이 기능을 사용하면 일시 중지 대신 화면이 잠기지만sudo pm-suspend
작동합니다. 그래서 라이센스 문제도 아닐까 싶습니다.
왜 이런 일이 발생합니까? Kill Xorg가 제대로 로그아웃하지 않아서 두 번 로그인한 것은 아닐까요? 어딘가에 자물쇠가 있나요? 재부팅 시와 마찬가지로 설치 및 일시 중지가 다시 작동하도록 하려면 어떻게 해야 합니까?
JdeBP에서 제안한 대로 몇 가지 추가 정보는 다음과 같습니다.
Linux 4.5.0-1-amd64 #1 SMP Debian 4.5.1-1 (2016-04-14) x86_64 GNU/Linux
- 주로 Debian sid 및 XFCE 4.12
시스템은 다음과 같습니다
ps -p 1
loginctl
보여주다:SESSION UID USER SEAT 1 1000 mxm seat0 1 sessions listed.
나는 polkitd를 실행하고 있습니다.
dpkg -l '*policy*'
프로그램policykit-1 0.105-17
데스크탑 버스의 종류에 대해서는 시도해 보았습니다
dpkg -l '*bus*'
(중요해 보이는 것들만 표시).ii dbus 1.10.12-1 amd64 simple interprocess messaging system (daemon and util ii dbus-x11 1.10.12-1 amd64 simple interprocess messaging system (X11 deps) ii libdbus-1-3:amd64 1.10.12-1 amd64 simple interprocess messaging system (library) ii libdbus-1-3:i386 1.10.12-1 i386 simple interprocess messaging system (library) ii libdbus-glib-1-2:amd64 0.108-1 amd64 simple interprocess messaging system (GLib-based shar ii libdbus-glib-1-dev 0.108-1 amd64 simple interprocess messaging system (GLib interface) ii libdbusmenu-glib4:amd64 12.10.2-1 amd64 library for passing menus over DBus ii libdbusmenu-gtk3-4:amd64 12.10.2-1 amd64 library for passing menus over DBus - GTK+ version ii qdbus 4:4.8.7+dfsg-9 amd64 Qt 4 D-Bus tool
xfce4-session-logout --suspend
작동하지 않으면 다음 로그 줄이 생성됩니다.
존재하다
/var/log/{kern.log,syslog,messags}
12월 18일 01:52:06 pc xfce4-notifyd[22273]: 보조 버스에 연결할 수 없습니다: 소켓 /tmp/dbus-awJrGEr9me에 연결할 수 없습니다: 연결이 거부되었습니다.
이는 실제 문제는 아니고 알림 표시 관련 문제인 것 같지만 다른 문제를 암시하는 것일 수도 있습니다.
notify-send "test" "test"
그러나 작업에는 문제가 없습니다./var/log/secure
PolicyKit에서 읽은 내용은 비어 있었습니다.
Nemo 설치에 실패한 후 로그 메시지를 찾을 수 없습니다. 다 확인했는데 /var/log/
dmesg
아직도 ~/.xsession-errors
.
dbus-monitor
먼저 작동하지 않는 명령을 시도했습니다 xfce4-session-logout --suspend
. 많은 것을 제공하지는 않습니다. xfce4-session-logout
DBus 메시지를 xfce-session 관리자로 보내는 것을 보여줍니다. xfce-session 관리자는 소스 코드를 보고 DBus 메시지를 systemd로 보냅니다. 표시되는 데 작동하지 않아서 dbus-monitor
It 옵션을 사용하여 시도했습니다 --system
. 이것은 것 같습니다. systemd(?)와 통신하기 위해 polkit을 사용하는 방법을 보여줍니다.
method call time=1482033095.691432 sender=:1.1956 -> destination=org.freedesktop.login1 serial=19 path=/org/freedesktop/login1; interface=org.freedesktop.login1.Manager; member=Suspend
boolean true
method call time=1482033095.691713 sender=:1.0 -> destination=org.freedesktop.DBus serial=214 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.1956"
method return time=1482033095.691733 sender=org.freedesktop.DBus -> destination=:1.0 serial=57 reply_serial=214
uint32 1000
method call time=1482033095.691913 sender=:1.0 -> destination=org.freedesktop.DBus serial=215 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.1956"
method return time=1482033095.691929 sender=org.freedesktop.DBus -> destination=:1.0 serial=58 reply_serial=215
uint32 1000
method call time=1482033095.692129 sender=:1.0 -> destination=org.freedesktop.PolicyKit1 serial=216 path=/org/freedesktop/PolicyKit1/Authority; interface=org.freedesktop.PolicyKit1.Authority; member=CheckAuthorization
struct {
string "system-bus-name"
array [
dict entry(
string "name"
variant string ":1.1956"
)
]
}
string "org.freedesktop.login1.suspend"
array [
]
uint32 1
string ""
method call time=1482033095.692546 sender=:1.12 -> destination=org.freedesktop.DBus serial=410 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.0"
method return time=1482033095.692564 sender=org.freedesktop.DBus -> destination=:1.12 serial=272 reply_serial=410
uint32 0
method call time=1482033095.692919 sender=:1.12 -> destination=org.freedesktop.DBus serial=411 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.1956"
method return time=1482033095.692936 sender=org.freedesktop.DBus -> destination=:1.12 serial=273 reply_serial=411
uint32 1000
method call time=1482033095.693205 sender=:1.12 -> destination=org.freedesktop.DBus serial=412 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.1956"
method return time=1482033095.693231 sender=org.freedesktop.DBus -> destination=:1.12 serial=274 reply_serial=412
uint32 1000
method call time=1482033095.693404 sender=:1.12 -> destination=org.freedesktop.DBus serial=413 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixProcessID
string ":1.1956"
method return time=1482033095.693420 sender=org.freedesktop.DBus -> destination=:1.12 serial=275 reply_serial=413
uint32 10534
method call time=1482033095.693977 sender=:1.12 -> destination=org.freedesktop.DBus serial=414 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixProcessID
string ":1.1956"
method return time=1482033095.693994 sender=org.freedesktop.DBus -> destination=:1.12 serial=276 reply_serial=414
uint32 10534
method call time=1482033095.694460 sender=:1.12 -> destination=org.freedesktop.DBus serial=415 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.1956"
method return time=1482033095.694478 sender=org.freedesktop.DBus -> destination=:1.12 serial=277 reply_serial=415
uint32 1000
method call time=1482033095.694663 sender=:1.12 -> destination=org.freedesktop.DBus serial=416 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixProcessID
string ":1.1956"
method return time=1482033095.694677 sender=org.freedesktop.DBus -> destination=:1.12 serial=278 reply_serial=416
uint32 10534
method call time=1482033095.695290 sender=:1.12 -> destination=org.freedesktop.DBus serial=417 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixProcessID
string ":1.1956"
method return time=1482033095.695307 sender=org.freedesktop.DBus -> destination=:1.12 serial=279 reply_serial=417
uint32 10534
method call time=1482033095.695791 sender=:1.12 -> destination=org.freedesktop.DBus serial=418 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.1956"
method return time=1482033095.695808 sender=org.freedesktop.DBus -> destination=:1.12 serial=280 reply_serial=418
uint32 1000
method call time=1482033095.696095 sender=:1.12 -> destination=org.freedesktop.DBus serial=419 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixProcessID
string ":1.1956"
method return time=1482033095.696112 sender=org.freedesktop.DBus -> destination=:1.12 serial=281 reply_serial=419
uint32 10534
method call time=1482033095.696641 sender=:1.12 -> destination=org.freedesktop.DBus serial=420 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixProcessID
string ":1.1956"
method return time=1482033095.696658 sender=org.freedesktop.DBus -> destination=:1.12 serial=282 reply_serial=420
uint32 10534
method call time=1482033095.697047 sender=:1.12 -> destination=org.freedesktop.DBus serial=421 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixProcessID
string ":1.1956"
method return time=1482033095.697063 sender=org.freedesktop.DBus -> destination=:1.12 serial=283 reply_serial=421
uint32 10534
method call time=1482033095.697365 sender=:1.12 -> destination=org.freedesktop.DBus serial=422 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixProcessID
string ":1.1956"
method return time=1482033095.697381 sender=org.freedesktop.DBus -> destination=:1.12 serial=284 reply_serial=422
uint32 10534
method return time=1482033095.697637 sender=:1.12 -> destination=:1.0 serial=423 reply_serial=216
struct {
boolean false
boolean true
array [
dict entry(
string "polkit.retains_authorization_after_challenge"
string "1"
)
]
}
method call time=1482033095.697882 sender=:1.0 -> destination=org.freedesktop.DBus serial=217 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.1956"
method return time=1482033095.697901 sender=org.freedesktop.DBus -> destination=:1.0 serial=59 reply_serial=217
uint32 1000
error time=1482033095.697991 sender=:1.0 -> destination=:1.1956 error_name=org.freedesktop.DBus.Error.InteractiveAuthorizationRequired reply_serial=19
string "Interactive authentication required."
method call time=1482033097.707153 sender=:1.2260 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method return time=1482033097.707178 sender=org.freedesktop.DBus -> destination=:1.2260 serial=1 reply_serial=1
string ":1.2260"
signal time=1482033097.707194 sender=org.freedesktop.DBus -> destination=(null destination) serial=433 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.2260"
string ""
string ":1.2260"
signal time=1482033097.707212 sender=org.freedesktop.DBus -> destination=:1.2260 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.2260"
method call time=1482033097.707800 sender=:1.2260 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
string "type='signal',sender='org.freedesktop.PolicyKit1',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',path='/org/freedesktop/PolicyKit1/Authority',arg0='org.freedesktop.PolicyKit1.Authority'"
method return time=1482033097.707832 sender=org.freedesktop.DBus -> destination=:1.2260 serial=3 reply_serial=2
method call time=1482033097.707900 sender=:1.2260 -> destination=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
string "type='signal',sender='org.freedesktop.PolicyKit1',interface='org.freedesktop.PolicyKit1.Authority',path='/org/freedesktop/PolicyKit1/Authority'"
method return time=1482033097.707920 sender=org.freedesktop.DBus -> destination=:1.2260 serial=4 reply_serial=3
method call time=1482033097.708001 sender=:1.2260 -> destination=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',path='/org/freedesktop/DBus',arg0='org.freedesktop.PolicyKit1'"
method return time=1482033097.708020 sender=org.freedesktop.DBus -> destination=:1.2260 serial=5 reply_serial=4
method call time=1482033097.708137 sender=:1.2260 -> destination=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=StartServiceByName
string "org.freedesktop.PolicyKit1"
uint32 0
method return time=1482033097.708163 sender=org.freedesktop.DBus -> destination=:1.2260 serial=6 reply_serial=5
uint32 2
method call time=1482033097.708484 sender=:1.2260 -> destination=org.freedesktop.DBus serial=6 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
string "org.freedesktop.PolicyKit1"
method return time=1482033097.708504 sender=org.freedesktop.DBus -> destination=:1.2260 serial=7 reply_serial=6
string ":1.12"
method call time=1482033097.708797 sender=:1.2260 -> destination=:1.12 serial=7 path=/org/freedesktop/PolicyKit1/Authority; interface=org.freedesktop.DBus.Properties; member=GetAll
string "org.freedesktop.PolicyKit1.Authority"
method return time=1482033097.709126 sender=:1.12 -> destination=:1.2260 serial=424 reply_serial=7
array [
dict entry(
string "BackendName"
variant string "local"
)
dict entry(
string "BackendVersion"
variant string "0.105"
)
dict entry(
string "BackendFeatures"
variant uint32 1
)
]
method call time=1482033097.709509 sender=:1.2260 -> destination=:1.12 serial=8 path=/org/freedesktop/PolicyKit1/Authority; interface=org.freedesktop.PolicyKit1.Authority; member=EnumerateActions
string ""
method return time=1482033097.712396 sender=:1.12 -> destination=:1.2260 serial=425 reply_serial=8
array [
[ ... 1800 lines of structs with policyKit actions ... ]
]
method call time=1482033097.720322 sender=:1.2260 -> destination=:1.12 serial=9 path=/org/freedesktop/PolicyKit1/Authority; interface=org.freedesktop.PolicyKit1.Authority; member=CheckAuthorization
struct {
string "unix-process"
array [
dict entry(
string "pid"
variant uint32 10534
)
dict entry(
string "start-time"
variant uint64 71999741
)
dict entry(
string "uid"
variant int32 1000
)
]
}
string "org.xfce.session.xfsm-shutdown-helper"
array [
dict entry(
string "user"
string "root (root)"
)
dict entry(
string "command_line"
string "/usr/lib/x86_64-linux-gnu/xfce4/session/xfsm-shutdown-helper --suspend"
)
dict entry(
string "program"
string "/usr/lib/x86_64-linux-gnu/xfce4/session/xfsm-shutdown-helper"
)
dict entry(
string "polkit.gettext_domain"
string "polkit-1"
)
]
uint32 1
string ""
method call time=1482033097.720691 sender=:1.12 -> destination=org.freedesktop.DBus serial=426 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetConnectionUnixUser
string ":1.2260"
method return time=1482033097.720713 sender=org.freedesktop.DBus -> destination=:1.12 serial=285 reply_serial=426
uint32 0
method return time=1482033097.720734 sender=:1.12 -> destination=:1.2260 serial=427 reply_serial=9
struct {
boolean false
boolean true
array [
]
}
signal time=1482033097.720788 sender=org.freedesktop.DBus -> destination=:1.2260 serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.2260"
signal time=1482033097.720811 sender=org.freedesktop.DBus -> destination=(null destination) serial=434 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.2260"
string ":1.2260"
string ""