怎么办啊,第一次开机登陆就会被退出.

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

怎么办啊,第一次开机登陆就会被退出.

#1

帖子 墨白歮 » 2015-10-04 18:24

:Adore 我好像删什么东西删错了.每次开机后第一次登陆金桌面会被退出.
然后再进才可以. :Aadterboom 这是什么情况?
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 怎么办啊,第一次开机登陆就会被退出.

#2

帖子 vickycq » 2015-10-04 19:03

1.
先试常见的解决方案

代码: 全选

sudo dpkg-reconfigure lightdm
等等
2.

代码: 全选

sudo apt-get install pastebinit
cat ~/.xsession-errors | pastebinit -b http://paste.ubuntu.com
sudo cat /var/log/lightdm/lightdm.log | pastebinit -b http://paste.ubuntu.com
sudo cat /var/log/auth.log | pastebinit -b http://paste.ubuntu.com
sudo cat /var/log/Xorg.0.log | pastebinit -b http://paste.ubuntu.com
把所有回应的网址 (http://paste.ubuntu.com/XXXXXXXX/) 贴上来

参考
http://askubuntu.com/questions/250930/u ... my-session
http://ubuntuforums.org/showthread.php?t=1867733
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: 怎么办啊,第一次开机登陆就会被退出.

#3

帖子 墨白歮 » 2015-10-05 0:03

vickycq 写了:1.
先试常见的解决方案

代码: 全选

sudo dpkg-reconfigure lightdm
等等
2.

代码: 全选

sudo apt-get install pastebinit
cat ~/.xsession-errors | pastebinit -b http://paste.ubuntu.com
sudo cat /var/log/lightdm/lightdm.log | pastebinit -b http://paste.ubuntu.com
sudo cat /var/log/auth.log | pastebinit -b http://paste.ubuntu.com
sudo cat /var/log/Xorg.0.log | pastebinit -b http://paste.ubuntu.com
把所有回应的网址 (http://paste.ubuntu.com/XXXXXXXX/) 贴上来

参考
http://askubuntu.com/questions/250930/u ... my-session
http://ubuntuforums.org/showthread.php?t=1867733
http://paste.ubuntu.com/12681001/
http://paste.ubuntu.com/12681018/
http://paste.ubuntu.com/12681020/
http://paste.ubuntu.com/12681032/
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 怎么办啊,第一次开机登陆就会被退出.

#4

帖子 poloshiao » 2015-10-05 7:14

請增加提供一項資料
把下面指令 複製 貼進終端機 執行
1. journalctl -b -p err --no-pager
2. sudo journalctl -b -p err --no-pager
把結果直接 選取/複製 貼上來
3. 如果兩者結果完全一樣
只貼上一個即可
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 怎么办啊,第一次开机登陆就会被退出.

#5

帖子 vickycq » 2015-10-05 11:54

init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd 重新建立过快,停止
若系统为 15.04,尝试

代码: 全选

sudo mv /etc/xdg/autostart/at-spi-dbus-bus.desktop ~/at-spi-dbus-bus.desktop.etcxdg
sudo mv /usr/share/upstart/xdg/autostart/at-spi-dbus-bus.desktop ~/at-spi-dbus-bus.desktop.usrshare
注意两个文件不一样,/etc/xdg/autostart 的比较大

如果没有效果或无法登入,再复制回去

代码: 全选

sudo mv ~/at-spi-dbus-bus.desktop.etcxdg /etc/xdg/autostart/at-spi-dbus-bus.desktop
sudo mv ~/at-spi-dbus-bus.desktop.usrshare /usr/share/upstart/xdg/autostart/at-spi-dbus-bus.desktop
若系统为 15.10,升级 at-spi2-core 到 2.16.0-1ubuntu1 及以上

参见
https://bugs.launchpad.net/ubuntu/+sour ... ug/1228567
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: 怎么办啊,第一次开机登陆就会被退出.

#6

帖子 墨白歮 » 2015-10-05 13:49

poloshiao 写了:請增加提供一項資料
把下面指令 複製 貼進終端機 執行
1. journalctl -b -p err --no-pager
2. sudo journalctl -b -p err --no-pager
把結果直接 選取/複製 貼上來
3. 如果兩者結果完全一樣
只貼上一個即可
提示未找到命令
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: 怎么办啊,第一次开机登陆就会被退出.

#7

帖子 墨白歮 » 2015-10-05 13:52

vickycq 写了:
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd main 进程结束, 重新产生
init: at-spi2-registryd 重新建立过快,停止
若系统为 15.04,尝试

代码: 全选

sudo mv /etc/xdg/autostart/at-spi-dbus-bus.desktop ~/at-spi-dbus-bus.desktop.etcxdg
sudo mv /usr/share/upstart/xdg/autostart/at-spi-dbus-bus.desktop ~/at-spi-dbus-bus.desktop.usrshare
注意两个文件不一样,/etc/xdg/autostart 的比较大

如果没有效果或无法登入,再复制回去

代码: 全选

sudo mv ~/at-spi-dbus-bus.desktop.etcxdg /etc/xdg/autostart/at-spi-dbus-bus.desktop
sudo mv ~/at-spi-dbus-bus.desktop.usrshare /usr/share/upstart/xdg/autostart/at-spi-dbus-bus.desktop
若系统为 15.10,升级 at-spi2-core 到 2.16.0-1ubuntu1 及以上

参见
https://bugs.launchpad.net/ubuntu/+sour ... ug/1228567

系统是14.04.上面命令没有什么效果.
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 怎么办啊,第一次开机登陆就会被退出.

#8

帖子 poloshiao » 2015-10-05 14:35

系统是14.04
提示未找到命令
初学者园地 - 15.04
抱歉 15.04 才有 journalctl 指令
以後提問 請提供 Ubuntu 版本及登入桌面
看看 這一篇 有沒有 參考價值
viewtopic.php?f=42&t=473110
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 怎么办啊,第一次开机登陆就会被退出.

#9

帖子 vickycq » 2015-10-05 17:23

墨白歮 写了:
poloshiao 写了:請增加提供一項資料
1. journalctl -b -p err
2. sudo journalctl -b -p err
提示未找到命令
直接把所有系统日志发上来,效果近似
在一天以内执行

代码: 全选

sudo cat /var/log/syslog | pastebinit -b http://paste.ubuntu.com
sudo cat /var/log/syslog.1* | pastebinit -b http://paste.ubuntu.com
另外
init: gnome-keyring-gpg main 进程 (2205)已经被TERM 信号杀死
init: gnome-keyring-ssh main 进程 (2207)已经被TERM 信号杀死
... at-spi2-registryd ...
init: indicator-secret-agent main 进程 (2396)已经被KILL 信号杀死
init: gnome-session (Unity) main 进程 (2307)以状态 1 结束
是否考虑把 gnome-keyring 重装一下试试。顺便执行一次 sudo apt-get update && sudo apt-get upgrade && dpkg-reconfigure lightdm
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 怎么办啊,第一次开机登陆就会被退出.

#10

帖子 poloshiao » 2015-10-05 17:59

1. journalctl -b -p err --no-pager
2. sudo journalctl -b -p err --no-pager
直接把所有系统日志发上来,效果近似
在一天以内执行
sudo cat /var/log/syslog | pastebinit -b http://paste.ubuntu.com
sudo cat /var/log/syslog.1* | pastebinit -b http://paste.ubuntu.com
1. 還是有很大的差異
1-1. 範圍 / 項目 更多 更廣
1-1-1. syslog 從 載入 linux kernel 的 rsyslogd 模組以後 開始記錄

代码: 全选

rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="636" x-info="http://www.rsyslog.com"] start
1-1-2. journalctl 開始記錄時間更早 記錄範圍/記錄項目 更多/更廣

代码: 全选

sudo journalctl -b
-- Logs begin at 六 2015-10-03 10:16:56 CST, end at 一 2015-10-05 17:43:42 CST. --
10月 05 17:40:43 Server06 systemd-journal[198]: Runtime journal (/run/log/journal/) is currently using 4.0M.
... 略
10月 05 17:40:43 Server06 systemd-journal[198]: Runtime journal (/run/log/journal/) is currently using 4.0M.
 ... 略
10月 05 17:40:43 Server06 kernel: Initializing cgroup subsys cpuset
10月 05 17:40:43 Server06 kernel: Initializing cgroup subsys cpu
10月 05 17:40:43 Server06 kernel: Initializing cgroup subsys cpuacct
10月 05 17:40:43 Server06 kernel: Linux version 4.2.0-12-generic (buildd@lcy01-10) (gcc version 5.2.1 20150922 (Ubuntu 5.2.1-18ubuntu1) ) #14
10月 05 17:40:43 Server06 kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-4.2.0-12-generic root=UUID=76f6686b-0a45-4696-9a0e-09cf3793a5b5 ro l
10月 05 17:40:43 Server06 kernel: KERNEL supported cpus:
10月 05 17:40:43 Server06 kernel:   Intel GenuineIntel
10月 05 17:40:43 Server06 kernel:   AMD AuthenticAMD
10月 05 17:40:43 Server06 kernel:   Centaur CentaurHauls
10月 05 17:40:43 Server06 kernel: x86/fpu: Legacy x87 FPU detected.
10月 05 17:40:43 Server06 kernel: x86/fpu: Using 'lazy' FPU context switches.
10月 05 17:40:43 Server06 kernel: e820: BIOS-provided physical RAM map:
10月 05 17:40:43 Server06 kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
10月 05 17:40:43 Server06 kernel: BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
10月 05 17:40:43 Server06 kernel: BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
10月 05 17:40:43 Server06 kernel: BIOS-e820: [mem 0x0000000000100000-0x000000005ffeffff] usable
10月 05 17:40:43 Server06 kernel: BIOS-e820: [mem 0x000000005fff0000-0x000000005fffffff] ACPI data
10月 05 17:40:43 Server06 kernel: BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
10月 05 17:40:43 Server06 kernel: NX (Execute Disable) protection: active
....略
1-2. 更多參數 更有彈性
例如
-b 只顯示最近這一次開機的記錄
-p 優先權
err 只顯示出 錯誤的記錄
--no-pager 顯示全部 不分頁
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 怎么办啊,第一次开机登陆就会被退出.

#11

帖子 poloshiao » 2015-10-05 18:12

第一次开机登陆就会被退出.
可能原因之一
顯卡驅動 不支援 3D 加速 所以 退回登錄畫面
說明
Ubuntu 預設桌面 Unity
需要 顯卡驅動 支援 3D 加速
每次开机后第一次登陆金桌面会被退出.
然后再进才可以.
Ubuntu 14.04 從 /var/log 記錄檔 看看能否看出
第一次登陆後 第二次登錄前 發生了什麼變化
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: 怎么办啊,第一次开机登陆就会被退出.

#12

帖子 墨白歮 » 2015-10-06 1:22

终于解决了。 :Hehe 删掉了所有的配置文件。 :Noting
little tooth
帖子: 1
注册时间: 2016-11-01 14:24
系统: ubunut14.04

Re: 怎么办啊,第一次开机登陆就会被退出.

#13

帖子 little tooth » 2016-11-01 14:27

我想请问下 题主最后把什么配置文件都删除才把问题解决了?能否赐教? :Adore
回复