我正在运行 Xubuntu 14.04.3 LTS(值得信赖)。
当我尝试以主用户帐户登录时,屏幕会黑一秒钟,然后返回登录屏幕。但是,我可以以访客用户身份登录。我尝试分别chown
登录和删除,~/.Xauthority
因为这对其他人来说是个问题,但这没有帮助。
如果我使用终端(++)登录并Ctrl尝试运行某些命令(即,,),则每个命令都会出现以下错误:AltF1ls
clear
grep
-bash: /home/cameron/bin/ls: cannot execute binary file: Exec format error
但是,使用/bin/ls
或/usr/bin/clear
可以,就像使用 一样sudo
。
这是输出/bin/cat ~/.xsession-errors
:
/usr/sbin/lightdm-session: line 33: /home/cameron/bin/cat: cannot execute binary file: Exec format error
/usr/sbin/lightdm-session: line 34: /home/cameron/bin/truncate: cannot execute binary file: Exec format error
/usr/sbin/lightdm-session: line 106: /home/cameron/bin/ls: cannot execute binary file: Exec format error
/home/cameron/bin/id: 1: /home/cameron/bin/id: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/cat: 1: /home/cameron/bin/cat: Syntax error: word unexpected (expecting ")")
Could not find dbus-launch; Xfce will not work properly
(xfsettingsd:4321): xfsettingsd-ERROR **: Failed to connect to the dbus session bus.
(xfwm4:4322): xfwm4-CRITICAL **: Xfconf could not be initialized
(xfwm4:4322): xfwm4-WARNING **: Missing data from default files
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/cut: 1: /home/cameron/bin/cut: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/cut: 1: /home/cameron/bin/cut: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/cut: 1: /home/cameron/bin/cut: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/cut: 1: /home/cameron/bin/cut: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/cut: 1: /home/cameron/bin/cut: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/grep: 1: /home/cameron/bin/grep: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/cut: 1: /home/cameron/bin/cut: Syntax error: word unexpected (expecting ")")
/home/cameron/bin/which: 1: /home/cameron/bin/which: Syntax error: word unexpected (expecting ")")
** Message: First Orage start. Searching default timezone.
** Message: Default timezone set to Europe/London.
** Message: Orage **: 15:44:42 wakeup timer init 0
xfdesktop: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
orage: Fatal IO error 0 (Success) on X server :1.
编辑:
$ echo "$PATH"
home/cameron/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cameron/.composer/vendor/bin
$ command -v cat
/home/cameron/bin/cat
$ file $(command -v cat)
-bash: /home/cameron/bin/file: cannot execute binary file: Exec format error
$ /bin/file $(command -v cat)
/home/cameron/bin/cat: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=b282331acc5bb5f24ebb96445de7695e6d94d0c2, stripped
$ /bin/uname -a
Linux moon-unit 3.13.0-63-generic #103-Ubuntu SMP Fri Aug 14 21:42:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
答案1
我认为您在主目录中提取了一个 ARM 根文件系统。您之所以会收到所有这些错误,是因为~/bin
每当您尝试运行某些东西时,都会首先搜索,然后尝试运行 中的/bin
外部二进制文件,而不是运行系统中的发行版二进制文件~/bin
。
尝试重命名~/bin
目录:
cd /home/cameron
/bin/mv bin bin.bkp