dnschneid / crouton

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

Quit crosh while doing a -uu on my chroot #819

Closed reeved closed 9 years ago

reeved commented 10 years ago

so I couldn't update my crouton on my Trusty chroot (see previous issue) so i tried doing sudo sh -e ~/Downloads/crouton -n trusty -uu

I had to stop it during the process and closed its tab.

So I tried doing it again and basically this happened:

dpkg: dependency problems prevent configuration of libreoffice-core: libreoffice-core depends on libreoffice-common (>> 1:4.2.4~rc2); however: Version of libreoffice-common on system is 1:4.2.3~rc3-0ubuntu2. dpkg: error processing package libreoffice-core (--configure): dependency problems - leaving unconfigured

And it repeated basically for everything. It then said:

Errors were encountered while processing: wine1.7-amd64 wine1.7-i386 libreoffice-core python3-uno libreoffice-math libreoffice-impress libreoffice libreoffice-writer libreoffice-base-core libreoffice-gnome libreoffice-base libreoffice-sdbc-firebird libreoffice-report-builder-bin libreoffice-sdbc-hsqldb libreoffice-pdfimport libreoffice-avmedia-backend-gstreamer libreoffice-gtk libreoffice-base-drivers libreoffice-draw libreoffice-calc Failed to complete chroot setup.

My croutonversion is pretty useless now.

crouton: version unknown release: unknown architecture: unknown targets: unity,x11,keyboard,extension,gtk-extra,xorg,core,audio host: version 5500.130.0 (Official Build) stable-channel peppy

I cant do anything besides an update. I cant remove these or purge these or whatever. help?

drinkcat commented 10 years ago

Never use -uu unless you know what you are doing. A single -u is enough.

Now, it seems like some of the PPAs you added were removed (at least the openoffice PPA).

You can enter the chroot with sudo enter-chroot -n trusty (press n when asked to run the setup script again), add back the openoffice PPA with:

 sudo add-apt-repository ppa:libreoffice/ppa

Then run a system update:

sudo apt-get update

And try updating crouton again (sudo sh -e ~/Downloads/crouton -n trusty -u).

reeved commented 10 years ago

Nothing changed. The same thing keeps popping up.

drinkcat commented 10 years ago

Can you post the output of cat /etc/apt/sources.list? (inside the chroot)

reeved commented 10 years ago

(trusty)user@localhost:~$ cat /etc/apt/sources.list deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse

drinkcat commented 10 years ago

What about grep -H . /etc/apt/sources.list.d/*? Can you run sudo apt-get dist-upgrade?

reeved commented 10 years ago

Heres the output of grep -H . /etc/apt/sources.list.d/*

/etc/apt/sources.list.d/google-chrome.list:### THIS FILE IS AUTOMATICALLY CONFIGURED ### /etc/apt/sources.list.d/google-chrome.list:# You may comment out this entry, but any other modifications may be lost. /etc/apt/sources.list.d/google-chrome.list:deb http://dl.google.com/linux/chrome/deb/ stable main /etc/apt/sources.list.d/google-chrome.list.save:### THIS FILE IS AUTOMATICALLY CONFIGURED ### /etc/apt/sources.list.d/google-chrome.list.save:# You may comment out this entry, but any other modifications may be lost. /etc/apt/sources.list.d/google-chrome.list.save:deb http://dl.google.com/linux/chrome/deb/ stable main /etc/apt/sources.list.d/libreoffice-ppa-trusty.list:deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main /etc/apt/sources.list.d/libreoffice-ppa-trusty.list:# deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main /etc/apt/sources.list.d/libreoffice-ppa-trusty.list:# deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main /etc/apt/sources.list.d/libreoffice-ppa-trusty.list:# deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main /etc/apt/sources.list.d/libreoffice-ppa-trusty.list.save:deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main /etc/apt/sources.list.d/libreoffice-ppa-trusty.list.save:# deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main /etc/apt/sources.list.d/libreoffice-ppa-trusty.list.save:# deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main /etc/apt/sources.list.d/ubuntu-wine-ppa-trusty.list:deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main /etc/apt/sources.list.d/ubuntu-wine-ppa-trusty.list:# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main /etc/apt/sources.list.d/ubuntu-wine-ppa-trusty.list:# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main /etc/apt/sources.list.d/ubuntu-wine-ppa-trusty.list.save:deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main /etc/apt/sources.list.d/ubuntu-wine-ppa-trusty.list.save:# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main /etc/apt/sources.list.d/ubuntu-wine-ppa-trusty.list.save:# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main /etc/apt/sources.list.d/webupd8team-java-trusty.list:deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main /etc/apt/sources.list.d/webupd8team-java-trusty.list:# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main /etc/apt/sources.list.d/webupd8team-java-trusty.list.save:deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main /etc/apt/sources.list.d/webupd8team-java-trusty.list.save:# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main

reeved commented 10 years ago

I tried dist-upgrade and that outputs a dependency message and a suggestion to include -f, which I did.

The output of that was: (It's pretty long)

Reading package lists... Done Building dependency tree
Reading state information... Done Correcting dependencies... Done Calculating upgrade... Done The following packages will be upgraded: libreoffice-common wine1.7 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 20 not fully installed or removed. Need to get 0 B/21.4 MB of archives. After this operation, 118 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 85458 files and directories currently installed.) Preparing to unpack .../wine1.7_1%3a1.7.18-0ubuntu1~trusty1_amd64.deb ... Unpacking wine1.7 (1:1.7.18-0ubuntu1~trusty1) over (1:1.7.17-0ubuntu1~saucy1) ... dpkg: error processing archive /var/cache/apt/archives/wine1.7_1%3a1.7.18-0ubuntu1~trusty1_amd64.deb (--unpack): unable to stat ./usr/share/icons/hicolor/16x16/places/folder-wine.png' (which I was about to install): Input/output error dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../libreoffice-common_1%3a4.2.4~rc2-0ubuntu1~trusty1_all.deb ... Unpacking libreoffice-common (1:4.2.4~rc2-0ubuntu1~trusty1) over (1:4.2.3~rc3-0ubuntu2) ... dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a4.2.4~rc2-0ubuntu1~trusty1_all.deb (--unpack): unable to stat./usr/share/icons/hicolor/16x16/mimetypes/application-vnd.oasis.opendocument.formula.png' (which I was about to install): Input/output error rmdir: failed to remove ‘/var/lib/libreoffice/share/prereg/’: No such file or directory rmdir: failed to remove ‘/var/lib/libreoffice/share/’: No such file or directory rmdir: failed to remove ‘/var/lib/libreoffice/program/’: No such file or directory rmdir: failed to remove ‘/var/lib/libreoffice’: No such file or directory rmdir: failed to remove ‘/var/lib/libreoffice’: No such file or directory Processing triggers for mime-support (3.54ubuntu1) ... Processing triggers for hicolor-icon-theme (0.13-1) ... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for shared-mime-info (1.2-0ubuntu3) ... Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ... Processing triggers for man-db (2.6.7.1-1) ... Errors were encountered while processing: /var/cache/apt/archives/wine1.7_1%3a1.7.18-0ubuntu1~trusty1_amd64.deb /var/cache/apt/archives/libreoffice-common_1%3a4.2.4~rc2-0ubuntu1~trusty1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

drinkcat commented 10 years ago

Try sudo apt-get clean and retry (sudo apt-get update then sudo apt-get dist-upgrade).

reeved commented 10 years ago

nothings changed. I can still update fine but dist-upgrade is still not working. If you think this is hopeless I can delete the chroot and start again. Its just that I dont want to waste much of my internet. Thats why I'd like help