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

Method http has died unexpectedly during software installation #2688

Closed sidamos closed 2 years ago

sidamos commented 8 years ago
name: precise
encrypted: yes, locked
Unmounting /media/removable/SD/chroots/precise...
name: trusty
encrypted: yes, locked
Unmounting /media/removable/SD/chroots/trusty...

Please describe your issue:

I have an Acer Chromebook R11, running stable channel Chrome 51. I had no problems installing precise and installing additional software. Last week, I wanted to install trusty and always got the mentioned error after crouton was installing software for a while. Tried several times with -u and from scratch. No chance. I tried a different mirror, but that did not help either. This week, crouton was able to install trusty with no errors, using the default mirror. However, when I try to install some packages (for example mesa-utils) inside xfce4 (shell window), I get that error again. So, I logged out of xfce4 and started chroot console only and there I can install everything.

If known, describe the steps to reproduce the issue:

Install trusty enter-chroot -n trusty startxfce4 start shell window apt-get install mesa-utils

sidamos commented 8 years ago

Same with sudo apt-get install mono-complete Got the http error when running in a shell window under xfce4. Worked fine in Chrome OS shell in chroot.

sidamos commented 8 years ago

It seems, it also happens in the Chrome OS shell. Just tried to install x2goclient: E: Method http has died unexpectedly! E: Unterprozess http hat einen Speicherzugriffsfehler empfangen.

(segmentation fault)

pjchamberlain commented 8 years ago

Same issue on Acer R11 Version 53.0.2785.36 beta (64-bit) Platform 8530.35.0 (Official Build) beta-channel cyan ARC Version 3102164 Firmware Google_Cyan.7287.57.64

I was able to install a few packages normally from a terminal in xfce before this issue kicked in, since then it has remained. As said above no issue in Chrome OS shell from a chroot

pjchamberlain commented 8 years ago

latest update fixed this issue for me

Version 53.0.2785.47 beta (64-bit) Platform 8530.43.0 (Official Build) beta-channel cyan ARC Version 3117197 Firmware Google_Cyan.7287.57.64

evelant commented 8 years ago

This just started happening to me as well. On my acer chromebook R11.

I installed crouton with -t xfce,xorg,chrome,xiwi and everything was fine at first. I installed some software no problem then suddenly this started happening seemingly out of nowhere.

Version 53.0.2785.70 beta (64-bit) Platform 8530.62.0 (Official Build) beta-channel cyan ARC Version 3152187 Firmware Google_Cyan.7287.57.64

evelant commented 8 years ago

I got it working again, but I am not sure why it works. Here is what I did:

Went to http://packages.ubuntu.com/trusty/amd64/apt/download Downloaded apt_1.0.1ubuntu2.13_amd64.deb sudo dpkg -i apt_1.0.1ubuntu2.13_amd64.deb Was warned about a downgrade from 1.0.1ubuntu2.14 apt-get works again

For some reason 1.0.1ubuntu2.14 seems to be broken.

evelant commented 8 years ago

Hmm, even stranger. The issue came back after I unmounted and remounted my chroot. Reinstalling apt fixed it again. It seems that apt is somehow being corrupted.

pjchamberlain commented 8 years ago

after the last Chrome update Version 53.0.2785.103 beta (64-bit) Platform 8530.81.0 (Official Build) beta-channel cyan ARC Version 3251841 Firmware Google_Cyan.7287.57.82

when I run crouton -u I'm seeing this error

E: Method https has died unexpectedly! E: Sub-process https received a segmentation fault.

ending up with Failed to complete chroot setup. Unmounting /mnt/stateful_partition/crouton/chroots/trusty... Sending SIGTERM to processes under /mnt/stateful_partition/crouton/chroots/trusty...

if I try to enter-chroot I get

A chroot setup script still exists inside the chroot. The chroot may not be fully set up. Would you like to finish the setup? [Y/n/d] n Skipping setup. You will be prompted again next time.

If I choose n or d .. I can enter the chroot and run apt-get update or upgrade fine without any errors

pjchamberlain commented 8 years ago

Update - seems to have been an issue with that particular chroot. I've created a new one which works fine. I've now realised the value of backing them up..

pjchamberlain commented 8 years ago

Issue has returned again for me after doing a crouton update

RafaelGreenblatt commented 8 years ago

I have had similar errors, also on a Chromebook R11, but with beta channel Chrome v53.0.2785.129. The problem comes and goes, eg if I exit and then restart the chroot the problem often goes away (but so far it always comes back later).

kjleitz commented 8 years ago

Just so I might get some responses without everyone having to read this enormous post:

Anyway, on to the issue:

Same issues here on Trusty. I installed Precise a while ago with no issues (that I recall, but I wasn’t paying much attention so I can’t say for certain), and used it for a few weeks, but I ended up powerwashing. I did a Trusty install pretty much immediately after that, probably early this month. I don't remember how the initial install went (that night was... hazy...), but there were issues with apt-get right from the beginning, regardless of whether I was using the xfce desktop with xorg, running xterm/other applications in a window with xiwi, or if I was just using the chrome developer shell and enter-chroot'ing.

Earlier today, I turned on OS verification, wiping the device, then turned on Developer Mode and did the process of installing Trusty over again (I thought maybe since I had left Developer Mode on when I powerwashed the first time, maybe there was some variable that I wasn't controlling for by leaving it on... I wanted it to be in the same from-the-manufacturer state as when I did my first install, Precise, so that maybe it would work better. Spoilers: it didn't work). The install failed very late, with the same http segmentation fault. It occurred after installing all of the packages associated with the xfce target, and beginning installation of the cli-extra target. Note: I didn't install the cli-extra target when I installed Precise. But I'm not sure that has anything to do with it, since the issue occurs very haphazardly, and this could have been a coincidence. I will get to the description of my failed install from this morning in a bit, but first I will describe the issues I found on my previous Trusty install since I tested it way more.

Just to eliminate confusion… I have had three Ubuntu chroots using crouton:

1) Precise (encrypted, initial targets: xfce; updated with xiwi) 2) Trusty (encrypted, initial targets: audio, cli-extra, extension, keyboard, touch, xfce-desktop, xiwi; updated with xorg) (yeah, I know some of those are redundant, but that’s what I did at the time) 3) Trusty (encrypted, initial targets: cli-extra, keyboard, xfce, xiwi)

Essentially, this is a comprehensive description of the http/https segfault issue I found while I was on install #2, and the steps/variations taken to trigger them:

Chromebook info:

Acer R11, 2GB RAM

Version 53.0.2785.129 (64-bit) Platform 8530.90.0 (Official Build) stable-channel cyan ARC Version 3284968 Firmware Google_Cyan.7287.57.82

Description of different steps taken to trigger the issues:

Method A: as controlled a method as possible

1) Fresh restart of the chromebook 2) With no other tabs or apps open, ctrl+alt+t, shell, sudo enter-chroot 3) sudo apt-get update

4) sudo apt-get install xxxxx

5) sudo apt-get update/install xxxxx

Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main somepackage1 amd64 2.9.2-4ubuntu4.14.04.1 [87.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main somepackage2 amd64 2.3-19ubuntu1.14.04.1 [203 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main somepackage3 amd64 2.9.2-4ubuntu4.14.04.1 [25.1 kB]

...phase of the apt-get process. Sometimes, but not often, it would fail immediately after the...

Need to get 12.3 MB of archives.
After this operation, 456 MB of additional disk space will be used.

...phase of the apt-get process. Either way, it would throw this message:

E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.

Or, it would throw the same message, but “https”.

Method B: second-most controlled method

1) Fresh restart of the Chromebook 2) With no other tabs or apps open, ctrl+alt+t, shell, sudo startxfce4 3) Now at the xfce4 desktop, open a terminal, sudo apt-get update

4) sudo apt-get install xxxxx

5) sudo apt-get update/install xxxxx

Method C: using a bunch of memory in the chroot

1) Fresh restart of the Chromebook 2) With no other tabs or apps open, ctrl+alt+t, shell, sudo startxfce4 3) Now at the xfce4 desktop, open firefox, open maybe seven or eight sites in tabs, open Sublime Text 3, then open a terminal, sudo apt-get update

Method D: using a bunch of memory in ChromeOS

1) Fresh restart of the Chromebook 2) Open five or so tabs in Chrome, then ctrl+alt+t, shell, sudo startxfce4 3) Now at the xfce4 desktop, open a terminal, sudo apt-get update

Method E: normal use

1) Use the Chromebook for a while, opening tabs and using Chrome apps 2) Close all tabs in Chrome, close all other apps, then ctrl+alt+t, shell, sudo startxfce4 3) Now at the xfce4 desktop, open a terminal, sudo apt-get update

General observations and fix attempts:

So, that’s pretty much it, I think, at least for install #2.

Now for my Trusty install from this morning, or install #3:

1) Returned to OS-verification mode. Powerwash ensued. Switched back to Developer Mode. Powerwash ensued. Logged in. 2) Installed crouton chrome extension 3) Downloaded latest crouton from usual link 4) Began installation of a Trusty chroot with the following command: sudo sh crouton -e -r trusty -t xfce,xiwi,cli-extra,keyboard

Installing target cli-extra...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
kbd is already the newest version.
dbus is already the newest version.
The following packages were automatically installed and are no longer required:
  libasound2-dev:i386 libboost-system1.54.0 libc6-dev:i386 libdrm-amdgpu1
  libdrm-dev libmirclient-dev libmirclient7 libmirclientplatform-mesa
  libmirprotobuf-dev libmirprotobuf0 libpciaccess-dev libpixman-1-dev
  libprotobuf-dev libprotobuf-lite8 libprotobuf8 libspeex-dev:i386
  libspeex1:i386 libspeexdsp-dev:i386 libxdamage-dev libxkbfile-dev
  libxtst-dev linux-libc-dev:i386 mesa-common-dev mircommon-dev
  x11proto-damage-dev x11proto-dri2-dev x11proto-dri3-dev x11proto-fonts-dev
  x11proto-gl-dev x11proto-present-dev x11proto-randr-dev x11proto-record-dev
  x11proto-render-dev x11proto-resource-dev x11proto-scrnsaver-dev
  x11proto-video-dev x11proto-xf86bigfont-dev x11proto-xf86dga-dev
  x11proto-xf86dri-dev x11proto-xinerama-dev xserver-xorg-dev zlib1g-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libedit2
Suggested packages:
  ssh-askpass libpam-ssh keychain monkeysphere
The following NEW packages will be installed:
  libedit2 openssh-client
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 651 kB of archives.
After this operation, 3764 kB of additional disk space will be used.
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/trusty...

...and that’s where I’m at now. You can view the whole installation output here: https://gist.github.com/kjleitz/b140b5845a589f3c3684510b9fb879a6

There are some lines which read:

invoke-rc.d: policy-rc.d denied execution of start.

...or stop, or reload, etc. But I believe that’s just to prevent applications from starting after installation, and I’m pretty sure it’s normal, rather than an error. Maybe it’s not? But I don’t really know enough about the installation process or that policy script to say.

Anyway, I think this is happening to quite a few people, and I’m sure their experiences are similar to mine, especially since I keep seeing the Acer R11 Chromebook mentioned. The issue does not seem to actually go away when you downgrade or reinstall apt (as evidenced by https://github.com/dnschneid/crouton/issues/2688#issuecomment-240944438 ) or by making a new chroot/updating the chroot (as in https://github.com/dnschneid/crouton/issues/2688#issuecomment-246994729 ) and it seems to be the same issue as in some other reports/threads (like: https://github.com/dnschneid/crouton/issues/2778 and possibly https://github.com/dnschneid/crouton/issues/2570 although I haven’t actually tried that solution, I only just found it).

SO ANYWAY.

Sorry for the enormous wall of text. But that’s my experience. It doesn’t look like anyone has made any headway here and it’s a real pain in the ass, having to restart the chromebook so often, and sometimes (not often, luckily) losing data when it all comes crashing down. Wish I could do something about it, but it’s not exactly my area of expertise, I wouldn’t know the first place to look, or the first thing to do, even if I knew what the issue was.

Hope this is helpful.

kjleitz commented 8 years ago

Update:

Restarted to start with a clean slate, ctrl+alt+t, shell, sudo enter-chroot.

Told me the chroot hadn't been completed, yada yada. Pressed Y to finish the install. Worked fine. You can read the install output here: https://gist.github.com/kjleitz/0002492e2df21f30fc9561aabd5631a6

ran sudo apt-get update a whole bunch, installed some things, never triggered the error until I purposely got memory usage up to ~70% and ran apt-get update, but then it failed and continued to fail no matter how much I closed. But apart from that, everything was okay, I was able to restart and install things, and it behaved much better. Until I restarted again, opened crosh in a window (have it pinned to the shelf and set to open in a new window, never did that before this moment), entered the chroot, and immediately did the following:

(trusty)kjleitz@localhost:~$ vim 
-su: vim: command not found
(trusty)kjleitz@localhost:~$ sudo apt-get install vim
[sudo] password for kjleitz: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libgpm2 libpython2.7 vim-runtime
Suggested packages:
  gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
  libgpm2 libpython2.7 vim vim-runtime
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6899 kB of archives.
After this operation, 31.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Method http has died unexpectedly!
E: Sub-process http received signal 4.
(trusty)kjleitz@localhost:~$ sudo apt-get update     
E: Method http has died unexpectedly!
E: Sub-process http received signal 4.

Not sure what this new error is, or whether it means the same thing.

pjchamberlain commented 8 years ago

I'm on the beta channel on an R11 with 4MB RAM (it's a German model, I couldn't find a 4MB model in the UK) with trusty.

The issue comes and goes. I can't figure out a pattern. If I restart it disappears. Sometimes it disappears for some time, but then annoyingly reappears seemingly at random.

I don't remember ever seeing this issue before google play and android apps appeared.

kjleitz commented 8 years ago

Did you have an error-free trusty install before google play and android apps were available on the beta channel? Because, while it may very well have something to do with it, I wouldn't want to conflate the two by coincidence. We'd need to see a working trusty install before the play store was made available and an error-prone install afterward, to make that case.

kjleitz commented 8 years ago

Hm. So, in the last failure I posted, https://github.com/dnschneid/crouton/issues/2688#issuecomment-250607576, I received this error:

E: Method http has died unexpectedly!
E: Sub-process http received signal 4.

instead of the usual

E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.

A signal 4, if you run kill -l in your terminal, refers to a SIGILL being sent to a process to terminate it. SIGILL is a signal that means the process performed an "illegal instruction," as you can see if you read man signal. It seems that, most often, this signal is triggered when a process attempts to perform an operation that is specific to a processor architecture different from/not supported by your machine's processor.

Another possibility could be that pieces of the executable code are being overwritten in memory with some other mess of data, or that a function pointer in the program points to similar unintelligible data.

Disclaimer: I literally know next to nothing about this stuff, and I mostly just read about it for a couple hours this morning, so I might be totally wrong.

If the first case is true, and the sub-process http is attempting a processor-specific optimization that is not supported by the processor in the R11, I guess the solution would be to manually compile apt-get (?) on your own machine.

If the second case is true, and since there's a decent amount of evidence it's related to memory usage, maybe some RAM is being overwritten when http still needs to access it? Does that make sense? Or maybe some area of memory is being overwritten or altered or compressed that the http process wants to access? The swap functionality on Chromebooks, being enabled by default, does not write to a swap partition on the SSD. Instead, it uses zram, which writes to compressed block device in RAM, which takes up less memory overall (?) than the normal paging in virtual memory.

So maybe at high memory usage, zram unknowingly swaps some memory at addresses that the http sub-process still needs to access, making it read what seems like garbage data instead, and triggering either an illegal instruction signal (if it thinks the bytes it reads signify an incompatible instruction) or a segmentation fault (because it's accessing/pointing to memory that it's not allowed to access). Maybe disabling swap on the machine will help?

I will try, at some point, to disable swap and see if that helps, and also try recompiling the apt-get binaries (not sure how to do this, but I'm sure I can figure that out) to see if that will work.

Again, disclaimer, I don't know if what I'm saying makes sense. I'm a chemist, not a computer scientist. I'm sure as hell not a C programmer, and the extent of my knowledge on operating systems reaches only to the Wikipedia pages, Stack Overflow questions, and various forums that I come across when following a Wild Google Chase.

Does anyone have a better understanding of this?

pjchamberlain commented 8 years ago

@kjleitz I did have an error free trusty install before google play appeared. When google play appeared the main issue I had was with google play and any android apps stopping repeatedly whenever I entered the chroot. That issue was resolved.

I can't remember clearly when this issue started appearing, but I didn't see it before google play appeared.

It is intermittent for me - for example I just accepted a chrome update and followed with a crouton update - the crouton update didn't complete, ending with this issue in an error message.

Recommended packages: gcc:i386 c-compiler:i386 The following NEW packages will be installed: libc6-dev:i386 libspeex-dev:i386 libspeex1:i386 libspeexdsp-dev:i386 linux-libc-dev:i386 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 2511 kB of archives. After this operation, 13.5 MB of additional disk space will be used. E: Method http has died unexpectedly! Failed to complete chroot setup. Unmounting /mnt/stateful_partition/crouton/chroots/trusty... Sending SIGTERM to processes under /mnt/stateful_partition/crouton/chroots/trusty... chronos@localhost

I ran the crouton update a second time and it completed without any errors.

sidamos commented 8 years ago

I have an Acer R11 4 GB. For me, this issue appeared first BEFORE Google Play was available. And it only happened with Trusty, not with Precise.

jamesgraves commented 8 years ago

I have an Acer R11 4GB with the N3060 dual-core Celeron. Same issues as being discussed. I've not seemed to have any problems doing the installs for 14.04 or 16.04, it is only when running apt-get install inside the chroot that I've seen the http method die.

orditeck commented 8 years ago

It was driving me crazy, really random issue for me.

@fignuts solution earlier in this issue worked well for me, very happy!

pjchamberlain commented 8 years ago

Can't get past this issue since the latest Chrome update Version 54.0.2840.51 beta (64-bit) Platform 8743.57.0 (Official Build) beta-channel cyan ARC Version 3327608 Firmware Google_Cyan.7287.57.82

Installing target core... Preparing environment... Preparing software sources... E: Method http has died unexpectedly! E: Sub-process http received a segmentation fault.

pjchamberlain commented 8 years ago

Tried @fignuts workaround above but no difference. Unable to run crouton update at all.

pjchamberlain commented 8 years ago

Strangely I can run sudo apt-get update and upgrade no problem in an xfce terminal window in a crouton session.

But unable to run crouton update

pjchamberlain commented 8 years ago

After a day of failing, crouton update ran without an issue. I really have no idea what this issue is correlated with

drinkcat commented 8 years ago

Can't reproduce locally... apt version 1.0.1ubuntu2.14.

kjleitz commented 8 years ago

@drinkcat Are you using an Acer R11, with a Trusty chroot? Try opening enough tabs (in ChromeOS) to register >75% memory usage while you are logged into your chroot. Then, in your chroot, try running apt-get update and install on a few packages, some number of times, alternating between the two. Unless something weird is happening, that should definitely do the trick. At the very least, it should on the Acer R11 2GB model. It happens with faaaar less here, even on a fresh powerwash.

drinkcat commented 8 years ago

Oh, interesting. Can you try to look at dmesg when this happens? Maybe some low-memory killer is kicking in.

kjleitz commented 8 years ago

Yeah, sure! This is after rebooting the Chromebook, immediately opening crosh in its own tab, entering the chroot, and running sudo apt-get update:

(trusty)kjleitz@localhost:~$ sudo apt-get update
[sudo] password for kjleitz: 
E: Method https has died unexpectedly!
E: Sub-process https received a segmentation fault.

Ran dmesg right after, and here's the output: https://gist.github.com/kjleitz/e890fe0603bab2afdba780ef6a78c9de

the-pete commented 8 years ago

Hey, I've been having this issue recently on my lenovo 13 chromebook. It has 8GB of ram and is rarely maxed out so it may be more of an allocation issue and less of a mem full issue.

here's the /v/l/m from the host:

https://gist.github.com/the-pete/b96a9caf6607e98cd3793be2d1706baf

and output of free, croutonversion, and sudo strace apt-get install supertuxracer:

https://gist.github.com/the-pete/57dd7c76d20b5080fda7770d8d6eb39f

I'm going to dig into this a bit when I get a chance bit it won't be today. Let me know if I can provide more data.

kjleitz commented 8 years ago

Looking at the following line from my dmesg that I posted in a gist: [ 136.036241] traps: https[13253] general protection ip:7fe262d8eab0 sp:7ffcfbc118b8 error:0 in libcurl-gnutls.so.4.3.0[7fe262d66000+5f000]

Maybe this has something to do with it? https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740950

See the following:

I often get random segmentation faults in libcurl-gnutls.so.4, but only
if

    "speed-limit-down-enabled": true

in the configuration file. (Could not reproduce with speed limiting set
to false).

I'll try seeing if I can reproduce this fix later.

Joeyob32 commented 7 years ago

Update chroot, worked for me :)

pjchamberlain commented 7 years ago

@Joeyob32 it's when trying to update chroot that I get the error?

Joeyob32 commented 7 years ago

I see, can I ask which command you were using to update the chroot? FYI I was running on a chromebook using crouton...

pjchamberlain commented 7 years ago

Most recently it was chronos@localhost / $ sudo sh ~/Downloads/crouton -u -e -r trusty -t xfce,touch,xiwi but I also see the same error in a chroot environment or within a terminal in an xfce session with sudo apt-get upgrade

From time to time the issue disappears, seemingly at random, at least I can't find a reliable workaround.

Joeyob32 commented 7 years ago

Try sudo sh ~/Downloads/crouton -u -n chrootname on its own, with no other dependencies, just the core release, see it loads. (Running from crosh, yeah?)

kjleitz commented 7 years ago

@Joeyob32 unless something has changed in the past month, I'm not sure what good that'll do. The issue happens intermittently, and people have frequently suggested that they've fixed it by updating or powerwashing, only to realize that it just went away temporarily and it's still an issue. Read back in the thread for more info if you're interested (if you haven't already)

pjchamberlain commented 7 years ago

It really is a very intermittent issue for me - after trying everything I can think of, I've come to the conclusion is that what works best is to keep trying to run updates over and over until it works.

cascadianw commented 7 years ago

Unable to install trusty. This is my first time using crouton, so perhaps I am missing something more obvious to experienced croutoners. Wanted to include my details to add to the knowledge of the problem, that it is happening with the most recent beta channel as of the time of this posting.

sudo sh ~/Downloads/crouton -e -r trusty -t xfce,touch,extension ... E: Method http has died unexpectedly! E: Sub-process http received signal 4.

Regarding Memory Greater than 75% claim Restarted Opened Chrome with no other tabs

crosh> shell chronos@localhost / $ sudo enter-chroot Password: Enter encryption passphrase for trusty: Entering /mnt/stateful_partition/crouton/chroots/trusty... UID 1000 not found in trusty Unmounting /mnt/stateful_partition/crouton/chroots/trusty... chronos@localhost / $

Restarted

sudo sh -e ~/Downloads/crouton -u -n trusty

Worked for installing Trusty However, still getting errors being reported for apt-get install

E: Method http has died unexpectedly! E: Sub-process http received a segmentation fault.

I am using

Acer R11 2gb ram Version 55.0.2883.87 beta (64-bit) Platform 8872.70.0 (Official Build) beta-channel cyan ARC Version 3554338 Firmware Google_Cyan.7287.57.92

idpnd commented 7 years ago

Same with Acer Chromebook 14. Strangely this only occurred with the intel graphics drivers repository (https), and it gave me a "method died, https" variant of this error. I'm also getting crashes in chrome within the chroot with similar errors in dmesg SELinux / traps / protection errors

SneakyBastardSword commented 7 years ago

I'm getting the same issue with a Lenovo Thinkpad 13 chromebook, so it looks like it's not just an Acer issue. using crouton -u as mentioned earlier in the thread didnt do anything at first, but I tried running it again and it seemed to fix it for now.

DavidMcLaughlin29 commented 7 years ago

I have this same problem. I'm using an acer chromebook 14 with ubuntu xenial. It happened before and I updated which fixed it. Now the the problem is back and updating and restarting is not working.

medicalcodesolutions commented 7 years ago

I have this problem as well on an Asus C302CA running trusty. But I did find a workaround (at least for the program I was trying to install): Instead of attempting the install from the GUI, I used enter-chroot and ran the install from there. That worked for me.

silasmartinez commented 7 years ago

I also had this problem. Mentioned elsewhere, I tried re-installing apt from ubuntu sources. In my case, this solved the issue, at least temporarily.

DavidMcLaughlin29 commented 7 years ago

How do you do that? Dpkg?

Sent from my iPhone

On May 6, 2017, at 10:42 PM, Silas Martinez notifications@github.com wrote:

I also had this problem. Mentioned elsewhere, I tried re-installing apt from ubuntu sources. In my case, this solved the issue, at least temporarily.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

silasmartinez commented 7 years ago

Yes - I downloaded the .deb appropriate for my install, and simply dpkg -i (apt for my architecture).deb .. I don't know if it will be a persistent fix, but I'm no longer getting http exceptions, so I'll take it for today.

pjchamberlain commented 7 years ago

it will be interesting to see if this fixes it permanently - I think it's been suggested before in this thread

DavidMcLaughlin29 commented 7 years ago

Ok. Thanks.

Sent from my iPhone

On May 7, 2017, at 3:21 AM, pjchamberlain notifications@github.com wrote:

it will be interesting to see if this fixes it permanently - I think it's been suggested before in this thread

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

silasmartinez commented 7 years ago

I don't believe this is a long term fix. I installed software center, and the next thing I tried to install threw this exception. With that said, reapplying the .deb with dpkg got me right back in business. Without much digging, it does seem like a memory error. Next time this comes up I'll gather better diagnostics.

On Sun, May 7, 2017, 11:04 AM David notifications@github.com wrote:

Ok. Thanks.

Sent from my iPhone

On May 7, 2017, at 3:21 AM, pjchamberlain notifications@github.com wrote:

it will be interesting to see if this fixes it permanently - I think it's been suggested before in this thread

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dnschneid/crouton/issues/2688#issuecomment-299719691, or mute the thread https://github.com/notifications/unsubscribe-auth/AJyEnO1KyteID7sfRDfqpC3HhYNIRUNJks5r3fmkgaJpZM4JN-6Q .

casutherland commented 7 years ago

I was receiving the seg fault with trusty on an R11. Then I closed an Android app as well as the Play Store, ran sudo apt-get install ..., and everything worked as expected.

Perhaps it was an available RAM issue.

Previously, I was seeing:

Need to get 3,101 kB of archives.
After this operation, 10.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.
rj919 commented 7 years ago

I am experiencing the same problems whenever I try to run apt-get update and it happens regardless whether I logout, reboot or reduce RAM in use. However, I have noticed that when I install package repositories using curl with a piped process that initiates apt-get update, it appears to retrieve the updated information correctly.

For example, this actually works: curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

I also noticed a thread on Reddit which indicates that this problem does not exist for restored chroots which were created over a year ago.

This problem seems like it's a bug which has occurred due to either an update in apt-get and/or crouton in how memory blocks are handled. Unfortunately, C is above my pay-grade.

System specs: Acer Chromebook 14 Intel(R) Celeron(R) CPU N3160 @ 1.60GHz Chrome OS Version 58.0.3029.140 (64-bit) 4GB RAM Ubuntu Unity Xenial