andig2
Posts: 51
Joined: Wed Oct 31, 2012 9:34 pm

[SOVLED] apt-get segfaults

Fri Jan 27, 2017 4:06 pm

Code: Select all

[email protected]:~ $ sudo apt update
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.

Code: Select all

[email protected]:~ $ sudo apt-get -v
apt 1.0.9.8.4 for armhf compiled on Dec 13 2016 22:26:22
Supported modules:
*Ver: Standard .deb
*Pkg:  Debian dpkg interface (Priority 30)
 Pkg:  Debian APT solver interface (Priority -1000)
 S.L: 'deb' Standard Debian binary tree
 S.L: 'deb-src' Standard Debian source tree
 Idx: Debian Source Index
 Idx: Debian Package Index
 Idx: Debian Translation Index
 Idx: Debian dpkg status file
 Idx: EDSP scenario file

Code: Select all

[email protected]:~ $ uname -a
Linux keller 4.4.44-v7+ #950 SMP Sun Jan 22 16:20:42 GMT 2017 armv7l GNU/Linux
Last edited by andig2 on Fri Jan 27, 2017 5:43 pm, edited 1 time in total.

User avatar
B.Goode
Posts: 8274
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: apt-get segfaults

Fri Jan 27, 2017 4:13 pm

I almost certainly can't answer: but to put other people in a position where they might be able to -

Is there any context or 'back-story' to this?

Is it a fresh, out of the box, installation of Raspbian Jessie?

Previous posts suggest you have experience of modifying the sources from which apt retrieves its information. Is that the case here?

andig2
Posts: 51
Joined: Wed Oct 31, 2012 9:34 pm

Re: apt-get segfaults

Fri Jan 27, 2017 4:50 pm

Not much of a back story. Several raspies running for ages. Moved my webserver to new raspi3 and just got warned that my letsencrypt certificates are expiring. Looking into the logfile I see certbot complains about missing apache modules (but doesn't say which). Trying to upgrade certbot and bamm. Before that the raspi was running untouched for weeks. So not a clean install :|

This is my apt config:

Code: Select all

[email protected]:~ $ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi

[email protected]:~ $ cat /etc/apt/preferences
Package: *
Pin: release n=jessie
Pin-Priority: 500

Package: *
Pin: release n=stretch
Pin-Priority: 10

andig2
Posts: 51
Joined: Wed Oct 31, 2012 9:34 pm

Re: apt-get segfaults

Fri Jan 27, 2017 5:03 pm

I have no clue what the apt http module is, but apt itself seems to be the jessie package:

Code: Select all

[email protected]:~ $ apt-cache policy apt
apt: 
  Installed: 1.0.9.8.4
  Candidate: 1.4~beta2
  Version table:
     1.4~beta2 0
        500 http://mirrordirector.raspbian.org/raspbian/ stretch/main armhf Packages
 *** 1.0.9.8.4 0
        500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
        100 /var/lib/dpkg/status

andig2
Posts: 51
Joined: Wed Oct 31, 2012 9:34 pm

Re: apt-get segfaults

Fri Jan 27, 2017 5:11 pm

There is a report here https://bugs.launchpad.net/ubuntu/+sour ... ug/1457754 that indicates underlying curl/gnu tls or similar might be the issue. Need to figure out if/how I could downgrade those. :ugeek:

andig2
Posts: 51
Joined: Wed Oct 31, 2012 9:34 pm

Re: apt-get segfaults

Fri Jan 27, 2017 5:43 pm

ok.... fixed by reinstalling apt (however these seem to be the same versions as originally present). Whatever :roll:

Code: Select all

cd /tmp
wget -r -nH -nd -np http://mirrordirector.raspbian.org/raspbian/pool/main/a/apt/
sudo dpkg -i apt-utils_1.0.9.8.4_armhf.deb apt_1.0.9.8.4_armhf.deb libapt-inst1.5_1.0.9.8.4_armhf.deb libapt-pkg4.12_1.0.9.8.4_armhf.deb

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5881
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: [SOVLED] apt-get segfaults

Fri Jan 27, 2017 5:52 pm

What SD card are you using?

Return to “Raspbian”