dnschneid / crouton

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

startxfce4 fails and updating chroot fails. #3525

Closed pboxinator closed 2 years ago

pboxinator commented 6 years ago

I've been having the same issue that many people have been running into for about a week now, since the latest ChromeOS update. The command startxcfe4 runs into X server connectivity failure. All the posts I see suggests a simple update fix, however, I find that attempt to be in vain. Here is the output to the update:

chronos@localhost / $ sudo sh ~/Downloads/crouton -n xenial -u
Downloading latest crouton installer...
######################################################################## 100.0%
/usr/local/chroots/xenial already exists; updating it...
Enter encryption passphrase for xenial: 
Preparing chroot environment...
Installing brightness into the chroot...
Installing croutonpowerd into the chroot...
Installing croutonversion into the chroot...
Installing host-dbus into the chroot...
Installing host-wayland into the chroot...
Installing volume into the chroot...
Installing pulseaudio-default.pa into the chroot...
Installing croutoncycle into the chroot...
Installing croutontriggerd into the chroot...
Installing croutonxinitrc-wrapper into the chroot...
Installing setres into the chroot...
Installing xinit into the chroot...
Installing xbindkeysrc.scm into the chroot...
Installing xorg-intel-sna.conf into the chroot...
Installing xserverrc into the chroot...
Installing xserverrc-xorg into the chroot...
Installing xserverrc-local.example into the chroot...
Installing startxfce4 into the host...
Installing crouton-noroot into the chroot...
Installing startxfce4 into the chroot...
Installing enter-chroot into the host...
Installing delete-chroot into the host...
Installing edit-chroot into the host...
Installing mount-chroot into the host...
Installing unmount-chroot into the host...
Installing crash_reporter_wrapper into the host...
dpkg: dependency problems prevent configuration of libapt-pkg5.0:i386:
 libapt-pkg5.0:i386 depends on libbz2-1.0.
 libapt-pkg5.0:i386 depends on liblz4-1 (>= 0.0~r127).
 libapt-pkg5.0:i386 depends on liblzma5 (>= 5.1.1alpha+20120614).
 libapt-pkg5.0:i386 depends on libstdc++6 (>= 5.2).
 libapt-pkg5.0:i386 depends on zlib1g (>= 1:1.2.3.4).

dpkg: error processing package libapt-pkg5.0:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-impress:i386:
 libreoffice-impress:i386 depends on libreoffice-draw (= 1:5.1.2-0ubuntu1).
 libreoffice-impress:i386 depends on libmwaw-0.3-3.
 libreoffice-impress:i386 depends on libodfgen-0.1-1.
 libreoffice-impress:i386 depends on librevenge-0.0-0.
 libreoffice-impress:i386 depends on libstdc++6 (>= 5).
 libreoffice-impress:i386 depends on uno-libs3 (>= 5.1.0~alpha).
 libreoffice-impress:i386 depends on ure.

dpkg: error processing package libreoffice-impress:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-core:i386:
 libreoffice-core:i386 depends on fonts-opensymbol.
 libreoffice-core:i386 depends on libreoffice-common (>> 1:5.1.2).
 libreoffice-core:i386 depends on ure (>= 4.2~).
 libreoffice-core:i386 depends on lp-solve (>= 5.5.0.13-5+b1).
 libreoffice-core:i386 depends on libcairo2 (>= 1.10.0).
 libreoffice-core:i386 depends on libclucene-contribs1v5 (>= 2.3.3.4).
 libreoffice-core:i386 depends on libclucene-core1v5 (>= 2.3.3.4).
 libreoffice-core:i386 depends on libcmis-0.5-5v5.
 libreoffice-core:i386 depends on libcups2 (>= 1.4.0).
 libreoffice-core:i386 depends on libcurl3-gnutls (>= 7.16.2).
 libreoffice-core:i386 depends on libdbus-glib-1-2 (>= 0.78).
 libreoffice-core:i386 depends on libeot0.
 libreoffice-core:i386 depends on libexpat1 (>= 2.0.1).
 libreoffice-core:i386 depends on libexttextcat-2.0-0 (>= 2.2-8).
 libreoffice-core:i386 depends on libfontconfig1 (>= 2.11.94).
 libreoffice-core:i386 depends on libfreetype6 (>= 2.3.5).
 libreoffic
dpkg: error processing package libreoffice-core:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of braindump:i386:
 braindump:i386 depends on calligra-libs (= 1:3.0.1+dfsg-2).
 braindump:i386 depends on libkf5configcore5 (>= 4.97.0).
 braindump:i386 depends on libkf5configwidgets5 (>= 4.96.0).
 braindump:i386 depends on libkf5coreaddons5 (>= 5.16.0).
 braindump:i386 depends on libkf5i18n5 (>= 4.97.0).
 braindump:i386 depends on libkf5iconthemes5 (>= 5.0.0).
 braindump:i386 depends on libkf5itemviews5 (>= 4.96.0).
 braindump:i386 depends on libkf5widgetsaddons5 (>= 4.96.0).
 braindump:i386 depends on libkf5xmlgui5 (>= 4.98.0).
 braindump:i386 depends on libqt5core5a (>= 5.9.0~beta).
 braindump:i386 depends on libqt5gui5 (>= 5.7.0).
 braindump:i386 depends on libqt5svg5 (>= 5.6.0~beta).
 braindump:i386 depends on libqt5webkit5 (>= 5.6.0~rc).
 braindump:i386 depends on libqt5widgets5 (>= 5.6.0~beta).
 braindump:i386 depends on libqt5xml5 (>= 5.3.0).
 braindump:i386 depends on libstdc++6 (>= 4.1.1).

dpkg: error processing package braindump:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libetonyek-0.1-1:i386:
 libetonyek-0.1-1:i386 depends on liblangtag1 (>= 0.5.0).
 libetonyek-0.1-1:i386 depends on librevenge-0.0-0.
 libetonyek-0.1-1:i386 depends on libstdc++6 (>= 5.2).
 libetonyek-0.1-1:i386 depends on libxml2 (>= 2.7.4).
 libetonyek-0.1-1:i386 depends on zlib1g (>= 1:1.1.4).

dpkg: error processing package libetonyek-0.1-1:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apt:
 apt depends on libapt-pkg4.12 (>= 0.9.16); however:
  Version of libapt-pkg4.12:amd64 on system is 0.8.16~exp12ubuntu10.21.
 libapt-pkg5.0:i386 (1.2.15ubuntu0.2) breaks apt (<< 1.1~exp14) and is unpacked but not configured.
  Version of apt to be configured is 1.0.1ubuntu2.17.
 libapt-pkg5.0:amd64 (1.2.15ubuntu0.2) breaks apt (<< 1.1~exp14) and is installed.
  Version of apt to be configured is 1.0.1ubuntu2.17.

dpkg: error processing package apt (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of calligra:
 calligra depends on braindump (>= 1:3.0.1+dfsg-2).
 calligra depends on calligraplan (>= 1:3.0.1+dfsg-2); however:
  Package calligraplan is not installed.
 calligra depends on calligrasheets (>= 1:3.0.1+dfsg-2); however:
  Package calligrasheets is not installed.
 calligra depends on calligrastage (>= 1:3.0.1+dfsg-2); however:
  Package calligrastage is not installed.
 calligra depends on calligrawords (>= 1:3.0.1+dfsg-2); however:
  Package calligrawords is not installed.
 calligra depends on karbon (>= 1:3.0.1+dfsg-2); however:
  Package karbon is not installed.

dpkg: error processing package calligra (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libapt-pkg5.0:i386
 libreoffice-impress:i386
 libreoffice-core:i386
 braindump:i386
 libetonyek-0.1-1:i386
 apt
 calligra
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

I have managed to enter my filesystem and salvage some important files via enter-chroot, however, I find myself unable to start a graphical session.

Thanks!

pboxinator commented 6 years ago

Uhh... Not sure what's up with the crossed out lines of code in my previous post, but that it totally unintentional. Please ignore that :)

dnschneid commented 6 years ago

It looks like you sideloaded a bunch of random packages and then didn't finish resolving their dependencies -- so crouton can't update your chroot.

Use enter-chroot and then run sudo apt-get install -f. It may suggest the best course of action is to uninstall a bunch of packages...accept that, and when it's done, try updating your chroot again. You can then try reinstalling things again once your graphical sessions are working again.

pboxinator commented 6 years ago

Ya... For some reason if I enter chroot and try that I get the following: $ sudo apt-get install -f apt-get: symbol lookup error: apt-get: undefined symbol: _ZN11CommandLine10GetCommandEPKNS_8DispatchEjPKPKc

pboxinator commented 6 years ago

It seems my package manager isn't functioning... Has anyone every run into this issue before? Here is the output from aptitude: $ sudo aptitude update E: Method https has died unexpectedly!
E: Sub-process https received a segmentation fault.

kapilhp commented 5 years ago

Please check #2688. This suggest some workarounds.