User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

apt-get segmentation fault

Sun Oct 22, 2017 12:57 pm

Hi,

Can anyone please help with this:

Code: Select all

[email protected]:~ $ sudo apt-get install --reinstall ntfs-3g
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 375 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf ntfs-3g armhf 1:2016.2.22AR.1+dfsg-1 [375 kB]
Fetched 375 kB in 20s (18.1 kB/s)
Segmentation fault
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10
Vasco Ferraz

gkaiseril
Posts: 656
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: apt-get segmentation fault

Sun Oct 22, 2017 5:18 pm

Some part of the upgrade process failed.

I would restart the computer and try again. This should clear any locked files.

If it still fails. then you may need to clear some of the file directories used by apt-get.

Code: Select all

sudo rm -rf /var/cache/apt/*.bin
sudo rm -rf /usr/bin/apt-listchanges/*.*
And try again.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: apt-get segmentation fault

Mon Oct 23, 2017 8:47 am

gkaiseril wrote:
Sun Oct 22, 2017 5:18 pm
Some part of the upgrade process failed.

I would restart the computer and try again. This should clear any locked files.

If it still fails. then you may need to clear some of the file directories used by apt-get.

Code: Select all

sudo rm -rf /var/cache/apt/*.bin
sudo rm -rf /usr/bin/apt-listchanges/*.*
And try again.
Problem is still present :(
Vasco Ferraz

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: apt-get segmentation fault

Mon Oct 23, 2017 1:28 pm

I think the problem is in the apt-listchanges

But if I download it and install it with dpkg I get:

Code: Select all

[email protected]:~ $ sudo dpkg -i apt-listchanges_3.14_all.deb
(Reading database ... 125795 files and directories currently installed.)
Preparing to unpack apt-listchanges_3.14_all.deb ...
Segmentation fault
dpkg: warning: subprocess old pre-removal script returned error exit status 139
dpkg: trying script from the new package instead ...
Segmentation fault
dpkg: error processing archive apt-listchanges_3.14_all.deb (--install):
 subprocess new pre-removal script returned error exit status 139
Segmentation fault
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
 apt-listchanges_3.14_all.deb
Vasco Ferraz

asavah
Posts: 364
Joined: Thu Aug 14, 2014 12:49 am

Re: apt-get segmentation fault

Mon Oct 23, 2017 2:53 pm

Do you have any free space left on sdcard?
Check with

Code: Select all

df -h

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: apt-get segmentation fault

Mon Oct 23, 2017 3:11 pm

asavah wrote:
Mon Oct 23, 2017 2:53 pm
Do you have any free space left on sdcard?
Check with

Code: Select all

df -h

Code: Select all


[email protected]:~ $ sudo df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  4.3G  9.7G  31% /
devtmpfs        370M     0  370M   0% /dev
tmpfs           375M     0  375M   0% /dev/shm
tmpfs           375M   11M  365M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           375M     0  375M   0% /sys/fs/cgroup
/dev/sda1        15G  1.1G   14G   7% /media/pen16gb
/dev/sdb1        60G   47G   14G  78% /media/pen64gb
/dev/mmcblk0p1   42M   21M   21M  51% /boot
tmpfs            75M     0   75M   0% /run/user/109
tmpfs            75M     0   75M   0% /run/user/1000

I downloaded some packages from the repository and I was able to install successfully using dpkg.
Except for: apt-listchanges_3.14_all.deb
Vasco Ferraz

User avatar
DougieLawson
Posts: 36541
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: apt-get segmentation fault

Mon Oct 23, 2017 3:16 pm

Why are you trying to install an X86_64 package on an ARM based processor. If you want that function you will need to build it from source code.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
rpdom
Posts: 15573
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: apt-get segmentation fault

Mon Oct 23, 2017 3:21 pm

I see no X86_64 package.

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: apt-get segmentation fault

Mon Oct 23, 2017 3:28 pm

DougieLawson wrote:
Mon Oct 23, 2017 3:16 pm
Why are you trying to install an X86_64 package on an ARM based processor. If you want that function you will need to build it from source code.
As far as I know I am on the RPI repository.

Where did you see in my posts that I am installing a X86_64 package?
Vasco Ferraz

User avatar
DougieLawson
Posts: 36541
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: apt-get segmentation fault

Mon Oct 23, 2017 3:29 pm

apt-listchanges_3.14_all.deb appears to be an Ubuntu X86_64 package. No armhf version available, as far as I can see.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: apt-get segmentation fault

Mon Oct 23, 2017 3:34 pm

DougieLawson wrote:
Mon Oct 23, 2017 3:29 pm
apt-listchanges_3.14_all.deb appears to be an Ubuntu X86_64 package. No armhf version available, as far as I can see.
Is it normal to have a X86_64 package in the Raspbian repository?
http://mirrordirector.raspbian.org/rasp ... stchanges/
Vasco Ferraz

User avatar
DougieLawson
Posts: 36541
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: apt-get segmentation fault

Mon Oct 23, 2017 4:41 pm

It's just that a segfault is normally (as in 99.9999% of the time) due to trying to run X86/X86_64 code on a Raspberry.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

gkaiseril
Posts: 656
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: apt-get segmentation fault

Mon Oct 23, 2017 6:15 pm

I had no problem installing it in stretch on a 32 GB card on a Pi 3.
Last edited by gkaiseril on Mon Oct 23, 2017 6:38 pm, edited 1 time in total.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

User avatar
rpdom
Posts: 15573
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: apt-get segmentation fault

Mon Oct 23, 2017 6:23 pm

DougieLawson wrote:
Mon Oct 23, 2017 3:29 pm
apt-listchanges_3.14_all.deb appears to be an Ubuntu X86_64 package. No armhf version available, as far as I can see.
The "_all" in the name is an indication that it is for ALL architectures. There should be no arch specific code in it.

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: apt-get segmentation fault

Tue Oct 24, 2017 8:41 am

gkaiseril wrote:
Mon Oct 23, 2017 6:15 pm
I had no problem installing it in stretch on a 32 GB card on a Pi 3.
I have no idea what is going on. I think I have to reflash the Pi.

I never did a rpi-update, just apt-get update, upgrade and dist-upgrade

That's strange because my Pi1 never had this kind of issues.

Pi3 suddenly breaks regularly out of nothing (this is not the first time).
Vasco Ferraz

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: apt-get segmentation fault

Tue Oct 24, 2017 2:51 pm

After messing around with some packages I found that python3.5 also had problems.
I manually installed all python3.5 dependencies.
Then, I manually installed python3.5 and finally apt-listchanges.
Problem solved.
Vasco Ferraz

chrstphrchvz
Posts: 1
Joined: Mon Aug 20, 2018 9:15 am

Re: apt-get segmentation fault

Mon Aug 20, 2018 9:55 am

VascoFerraz wrote:
Tue Oct 24, 2017 2:51 pm
After messing around with some packages I found that python3.5 also had problems.
I manually installed all python3.5 dependencies.
Then, I manually installed python3.5 and finally apt-listchanges.
Problem solved.
This makes sense. If there is a segmentation fault running `python3`, then the same would happen for running `apt-listchanges` since it is just a Python 3 script.

I'm using packages from debian testing, and encountered an issue very similar to this with Python 3.6.5-rc1, where even trying to reinstall/upgrade apt-listchanges didn't seem possible due to errors running apt-listchanges. Manually upgrading everything currently installed from the python36 and python3-stdlib-extensions source packages to 3.6.6 seemed to solve the problem for me.

Return to “Troubleshooting”