dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc?si=1
BSD 3-Clause "New" or "Revised" License
8.57k stars 1.24k forks source link

unable to connect to X server: No such file or directory #1825

Closed keheliya closed 7 years ago

keheliya commented 9 years ago

With the recent chrome OS update, crouton stopped working. This is the error I'm getting when trying to start Elementary:

/usr/bin/startelementary: Starting X server

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.42-75-generic x86_64 Ubuntu
Current Operating System: Linux localhost 3.10.18 #1 SMP Tue May 26 18:03:35 PDT 2015 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2506752 verity payload=PARTUUID=d29dfd99-1252-5f49-98fa-73224f08a523/PARTNROFF=1 hashtree=PARTUUID=d29dfd99-1252-5f49-98fa-73224f08a523/PARTNROFF=1 hashstart=2506752 alg=sha1 root_hexdigest=e8d5eb56c862e952264ec4717e8398a1d7fa7aa9 salt=6c257451ffdb07295f3b1da1552915a8a174bdda04ee7f1063cb2b62a58da169" noinitrd vt.global_cursor_default=0 kern_guid=d29dfd99-1252-5f49-98fa-73224f08a523 add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic  
Build Date: 12 February 2015  03:37:52PM
xorg-server 2:1.15.1-0ubuntu2~precise5 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.30.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun  4 10:35:40 2015
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
setversion 1.4 failed: Permission denied
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
(EE) 
Fatal server error:
(EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: No such file or directory
/usr/bin/xinit: server error

This is ChromeOS version:

Version 43.0.2357.81 (64-bit)
Platform 6946.55.0 (Official Build) stable-channel swanky
Firmware Google_Swanky.5216.238.5

This is crouton version:

crouton: version 1-20141208100324~master:7b8ffff0
release: precise
architecture: amd64
targets: xfce,keyboard,extension
host: version 6946.55.0 (Official Build) stable-channel swanky 
keheliya commented 9 years ago

Then I tried to update Crouton with sudo sh ~/Downloads/crouton -u -n precise. It failed while updating..

Hit http://archive.ubuntu.com precise/restricted TranslationIndex 
Hit http://archive.ubuntu.com precise/universe TranslationIndex   
Get:6 http://archive.ubuntu.com precise-updates/main Sources [490 kB]
Ign http://ppa.launchpad.net precise/main Translation-en                  
Ign http://ppa.launchpad.net precise/main Translation-en                 
Ign http://ppa.launchpad.net precise/main Translation-en                 
Err http://ppa.launchpad.net precise/main Sources                        
  404  Not Found
Err http://ppa.launchpad.net precise/main amd64 Packages                 
  404  Not Found
Err http://ppa.launchpad.net precise/main i386 Packages                  
  404  Not Found
Ign http://ppa.launchpad.net precise/main Translation-en                 
Get:7 http://archive.ubuntu.com precise-updates/restricted Sources [7981 B]
Get:8 http://archive.ubuntu.com precise-updates/universe Sources [119 kB]
Get:9 http://archive.ubuntu.com precise-updates/multiverse Sources [9726 B]
Get:10 http://archive.ubuntu.com precise-updates/main amd64 Packages [897 kB]
Get:11 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [13.6 kB]
Get:12 http://archive.ubuntu.com precise-updates/universe amd64 Packages [265 kB] 
Get:13 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [16.5 kB]
Get:14 http://archive.ubuntu.com precise-updates/main i386 Packages [950 kB]
Get:15 http://archive.ubuntu.com precise-updates/restricted i386 Packages [13.6 kB]
Get:16 http://archive.ubuntu.com precise-updates/universe i386 Packages [275 kB]
Get:17 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [16.7 kB]
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex         
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Get:18 http://archive.ubuntu.com precise-security/main Sources [130 kB]
Get:19 http://archive.ubuntu.com precise-security/restricted Sources [3759 B] 
Get:20 http://archive.ubuntu.com precise-security/universe Sources [42.1 kB]
Get:21 http://archive.ubuntu.com precise-security/multiverse Sources [2198 B]
Get:22 http://archive.ubuntu.com precise-security/main amd64 Packages [516 kB]
Get:23 http://archive.ubuntu.com precise-security/restricted amd64 Packages [8943 B]                   
Get:24 http://archive.ubuntu.com precise-security/universe amd64 Packages [122 kB]                     
Get:25 http://archive.ubuntu.com precise-security/multiverse amd64 Packages [2699 B]                   
Get:26 http://archive.ubuntu.com precise-security/main i386 Packages [555 kB]                          
Get:27 http://archive.ubuntu.com precise-security/restricted i386 Packages [8939 B]                    
Get:28 http://archive.ubuntu.com precise-security/universe i386 Packages [129 kB]                      
Get:29 http://archive.ubuntu.com precise-security/multiverse i386 Packages [2865 B]                    
Hit http://archive.ubuntu.com precise-security/main TranslationIndex                                   
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex                             
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex                             
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex                               
Hit http://archive.ubuntu.com precise/main Translation-en                                              
Hit http://archive.ubuntu.com precise/multiverse Translation-en                                        
Hit http://archive.ubuntu.com precise/restricted Translation-en                                        
Hit http://archive.ubuntu.com precise/universe Translation-en                                          
Hit http://archive.ubuntu.com precise-updates/main Translation-en                                      
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en                                
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en                                
Hit http://archive.ubuntu.com precise-updates/universe Translation-en                                  
Hit http://archive.ubuntu.com precise-security/main Translation-en                                     
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en                               
Hit http://archive.ubuntu.com precise-security/restricted Translation-en                               
Hit http://archive.ubuntu.com precise-security/universe Translation-en                                 
Fetched 4848 kB in 11s (419 kB/s)                                                                      
W: Failed to fetch http://ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu/dists/precise/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package hddtemp is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libspeex-dev libspeex-dev:i386 libxfixes-dev libspeexdsp-dev libspeexdsp-dev:i386 libspeex1:i386
  libxi-dev x11proto-fixes-dev x11proto-xext-dev libxext-dev libc6-dev:i386 linux-libc-dev:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  exo-utils gtk2-engines-xfce libburn4 libexo-1-0 libexo-common libexo-helpers libfam0 libgarcon-1-0
  libgarcon-common libhal-storage1 libhal1 libisofs6 libjte1 libthunar-vfs-1-2 libthunar-vfs-1-common
  libthunarx-2-0 libunique-1.0-0 liburi-perl libwnck-common libwnck22 libxfce4ui-1-0 libxfce4util-bin
  libxfce4util-common libxfce4util4 libxfce4util6 libxfcegui4-4 libxfconf-0-2 mousepad orage ristretto
  squeeze tango-icon-theme thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin
  thunar-volman xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-artwork xfce4-battery-plugin
  xfce4-clipman xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-datetime-plugin
  xfce4-dict xfce4-diskperf-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-mailwatch-plugin
  xfce4-mixer xfce4-mount-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd
  xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data
  xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-sensors-plugin xfce4-session xfce4-settings
  xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal
  xfce4-timer-plugin xfce4-verve-plugin xfce4-volumed xfce4-wavelan-plugin xfce4-weather-plugin
  xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4
Suggested packages:
  fam libwww-perl sox shimmer-wallpapers kdelibs-data xfce4-cellmodem-plugin xfce4-linelight-plugin
  xfce4-messenger-plugin xfce4-mpc-plugin xfce4-radio-plugin xfce4-xfapplet-plugin xfswitch-plugin
  xfce4-hdaps thunar-thumbnailers gigolo parole xfmpc xfce4-power-manager-plugins xsensors menu
  xfwm4-themes
The following NEW packages will be installed:
  exo-utils gtk2-engines-xfce libburn4 libexo-1-0 libexo-common libexo-helpers libfam0 libgarcon-1-0
  libgarcon-common libhal-storage1 libhal1 libisofs6 libjte1 libthunar-vfs-1-2 libthunar-vfs-1-common
  libthunarx-2-0 libunique-1.0-0 liburi-perl libwnck-common libwnck22 libxfce4ui-1-0 libxfce4util-bin
  libxfce4util-common libxfce4util4 libxfce4util6 libxfcegui4-4 libxfconf-0-2 mousepad orage ristretto
  shimmer-themes squeeze tango-icon-theme thunar thunar-archive-plugin thunar-data
  thunar-media-tags-plugin thunar-volman xfburn xfce-keyboard-shortcuts xfce4 xfce4-appfinder
  xfce4-artwork xfce4-battery-plugin xfce4-clipman xfce4-clipman-plugin xfce4-cpufreq-plugin
  xfce4-cpugraph-plugin xfce4-datetime-plugin xfce4-dict xfce4-diskperf-plugin xfce4-fsguard-plugin
  xfce4-genmon-plugin xfce4-goodies xfce4-mailwatch-plugin xfce4-mixer xfce4-mount-plugin
  xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin
  xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter
  xfce4-sensors-plugin xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin
  xfce4-taskmanager xfce4-terminal xfce4-timer-plugin xfce4-verve-plugin xfce4-volumed
  xfce4-wavelan-plugin xfce4-weather-plugin xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4
0 upgraded, 84 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.4 MB of archives.
After this operation, 96.8 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libxfce4util-common libxfce4util6 xfconf libxfconf-0-2 xfce-keyboard-shortcuts libxfce4ui-1-0
  libexo-common libexo-helpers libexo-1-0 libgarcon-common libgarcon-1-0 thunar-data libthunarx-2-0
  libxfcegui4-4 exo-utils xfce4-panel xfce4-settings xfce4-session gtk2-engines-xfce libxfce4util-bin
  mousepad orage thunar thunar-volman xfburn xfwm4 xfdesktop4-data xfdesktop4 xfce4-appfinder
  xfce4-mixer xfce4 xfce4-battery-plugin xfce4-clipman xfce4-clipman-plugin xfce4-cpufreq-plugin
  xfce4-cpugraph-plugin xfce4-datetime-plugin xfce4-dict xfce4-diskperf-plugin xfce4-fsguard-plugin
  xfce4-genmon-plugin xfce4-mailwatch-plugin xfce4-mount-plugin xfce4-netload-plugin xfce4-notes
  xfce4-notes-plugin xfce4-places-plugin xfce4-quicklauncher-plugin xfce4-sensors-plugin
  xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-timer-plugin xfce4-verve-plugin
  xfce4-wavelan-plugin xfce4-weather-plugin xfce4-xkb-plugin xfce4-notifyd xfce4-screenshooter
  xfce4-taskmanager xfce4-terminal xfce4-power-manager-data xfce4-power-manager
E: There are problems and -y was used without --force-yes
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/precise...
keheliya commented 9 years ago

Now trying to start Elementary OS succeeds but the mouse pointer or keyboard is not working. So cannot do anything, (including returning to ChromeOS). Is a fresh install my only option? Can I recover anything from a backed up tarball of old crouton installation?

keheliya commented 9 years ago

Just to let you know, I have deleted the crouton installer, re-downloaded it before doing the update above.

keheliya commented 9 years ago

Looks like this is related to #1696

xeoron commented 9 years ago

Update Crouton: sudo sh ~/Downloads/crouton -u -n chrootname

-Jason

On Sun, Jun 7, 2015 at 8:54 AM, coyotte508 notifications@github.com wrote:

Getting the same error as in the OP, with Ubuntu. I just restarted my chromebook to update it and I have this now.

Full log can be found here: http://pastebin.com/MfSAuKhC

— Reply to this email directly or view it on GitHub https://github.com/dnschneid/crouton/issues/1825#issuecomment-109749088.

keheliya commented 9 years ago

@xeoron I have already done that. Read the comments above.