Crouton: C720 Cannot install because of google-chrome-stable dependencies

Created on 14 Feb 2014  路  9Comments  路  Source: dnschneid/crouton

I'm trying to install on a new Acer C720. I get the following error:

sudo sh -e ~/Downloads/crouton -u -t chrome,cinnamon -n cinnamon -r raring
/usr/local/chroots/cinnamon already exists; updating it...
Preparing chroot environment...
Installing croutonversion into the chroot...
Installing host-dbus into the chroot...
Installing host-x11 into the chroot...
Installing pulseaudio-default.pa into the chroot...
Installing brightness into the chroot...
Installing croutoncycle into the chroot...
Installing croutonpowerd 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 xserverrc-x11 into the chroot...
Installing xserverrc-local.example into the chroot...
Installing startcinnamon into the host...
Installing startcinnamon into the chroot...
Installing gnome-session-wrapper into the chroot...
Installing nm-applet.desktop 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 google-chrome-stable:
 google-chrome-stable depends on gconf-service; however:
  Package gconf-service is not installed.
 google-chrome-stable depends on libatk1.0-0 (>= 1.12.4); however:
  Package libatk1.0-0 is not installed.
 google-chrome-stable depends on libcairo2 (>= 1.6.0); however:
  Package libcairo2 is not installed.
 google-chrome-stable depends on libcups2 (>= 1.4.0); however:
  Package libcups2 is not installed.
 google-chrome-stable depends on libgconf-2-4 (>= 2.31.1); however:
  Package libgconf-2-4 is not installed.
 google-chrome-stable depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
  Package libgdk-pixbuf2.0-0 is not installed.
 google-chrome-stable depends on libgtk2.0-0 (>= 2.24.0); however:
  Package libgtk2.0-0 is not installed.
 google-chrome-stable depends on libnspr4 (>= 1.8.0.10); however:
  Package libnspr4 is not installed.
 google-chrome-stable depends on libnss3 (>= 3.14.3); however:
  Package libnss3 is not installed.
 google-c
dpkg: error processing google-chrome-stable (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 google-chrome-stable
Failed to complete chroot setup.
Unmounting /usr/local/chroots/cinnamon...

I can't figure out how to get into the chroot to fix the dependency. Any help? Thanks!

bug

Most helpful comment

mkdir /usr/share/icons/hicolor already solves the error. However IMO it would be better installing a window manager before installing chrome. For example by setting a priority variable for a window manager. This could be done in the target file. Then when installing targets look at the priority and install it in that order.
Edit: Thinking it over it should be in the name of the target files then. For example 10-xfce 20-chrome or something. Hmm in doubt if you would benefit a lot from it. It needs some code changes and renaming of files.
Just make the dir or install hicolor theme is the fastest and easiest fix.

All 9 comments

I can confirm this error. Chrome target is the bad guy. I had it also on creating a saucy chroot with xfce. Sadly I didn't have time yet to look into it. Just did a quick workaround and installed chrome from within the chroot.

Weird. dpkg should report those errors, but it's being run as --force-depends and so it should still be successful (install -f cleans up after it). If you can, edit the generated prepare.sh, find the line that has --force-depends in it, then make the line look like dpkg --force-depends -i "$@" || true, enter the chroot and say "yes" to finishing the installation, and see how it goes.

@dnschneid tried it, but still the same dependency problems. I see if I have some time tomorrow after work to look deeper into why it is failing.

I've been running into this for awhile now, it happens with chrome-beta too, maybe dev also. I thought I'd reported it but maybe not. I usully just install the chroot without chrome and then install it in the chroot later.

Ok, I think I found it. I took another look at the failure log of mine and noticed the following after the dependency errors.

xdg-icon-resource: No writable system icon directory found

If you add the wm manager like xfce, cinnamon etc at the first place in your target like

sudo sh -e ~/Downloads/crouton -r saucy -t xfce,chrome -n xfce 

Chrome should be installed with no problems.

Good find, thanx; I'll use that sequence in the future.
With that in mind, it would make sense that once a chroot is installed, chrome could be added with a crouton update - I'll try it.

I just successfully added chrome-beta to an existing chroot via a crouton update so that does work - good to know.

@divx118 Thanks for figuring out where the error comes from. Any idea which package calls xdg-icon-resource? Is it chrome itself? Or another dependency?

Looking at http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-icon-resource.in, the script is failing because $xdg_global_dir is not set. In turn, this variable is blank because /usr/share/icons/$theme does not exists ($theme default value is hicolor).

I suspect we could fix the problem by installing hicolor-icon-theme before Chrome. Can somebody confirm that the package is pulled in by xfce or other WM/DE? If not, what other package is pulled in that create files in /usr/share/icons/?

mkdir /usr/share/icons/hicolor already solves the error. However IMO it would be better installing a window manager before installing chrome. For example by setting a priority variable for a window manager. This could be done in the target file. Then when installing targets look at the priority and install it in that order.
Edit: Thinking it over it should be in the name of the target files then. For example 10-xfce 20-chrome or something. Hmm in doubt if you would benefit a lot from it. It needs some code changes and renaming of files.
Just make the dir or install hicolor theme is the fastest and easiest fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Taylormsz picture Taylormsz  路  5Comments

wymby picture wymby  路  6Comments

rossjrw picture rossjrw  路  5Comments

Jacquelinemarie picture Jacquelinemarie  路  3Comments

shichuzhu picture shichuzhu  路  5Comments