LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2011, 03:21 AM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
apt-get results in segmentation fault


Hi, I don't know what I did, but the apt-get results in segmentation fault:
Code:
sh-3.1# apt-get install gcc
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  binutils cpp cpp-4.3 gcc-4.3 libc6-dev libgmp3c2 libgomp1 libmpfr1ldbl
  linux-libc-dev
Suggested packages:
  binutils-doc cpp-doc gcc-4.3-locales gcc-multilib manpages-dev autoconf
  automake1.9 libtool flex bison gdb gcc-doc libmudflap0-4.3-dev gcc-4.3-doc
  libgcc1-dbg libgomp1-dbg libmudflap0-dbg glibc-doc
The following NEW packages will be installed:
  binutils cpp cpp-4.3 gcc gcc-4.3 libc6-dev libgmp3c2 libgomp1 libmpfr1ldbl
  linux-libc-dev
0 upgraded, 10 newly installed, 0 to remove and 6 not upgraded.
3 not fully installed or removed.
Segmentation fault
sh-3.1# rm /var/cache/apt/*.bin
sh-3.1# apt-get install gcc
Segmentation fault
I tried searching results online and reboot, but none of them works. Reboot makes it temporarily seemingly to work like above, but after the first run of apt-get it returns to error again.
Thanks,
Ted
 
Old 11-16-2011, 03:47 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Do you get any errors or warnings in /var/log/messages and/or dmesg when this happens?
 
Old 11-16-2011, 04:02 AM   #3
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
Quote:
Originally Posted by corp769 View Post
Do you get any errors or warnings in /var/log/messages and/or dmesg when this happens?
THanks, there were no messages, but I managed to solve it, I don't know why, cause the internet connection is bad today (F*** my isp) so I tried rm the .bin and apt-get until it worked. Got it to work after 4-5times.
Thanks though.
ted
 
Old 11-16-2011, 04:12 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Oh ok... So no more problems then? If so, mark your thread as solved if you can, thanks!

Cheers,

Josh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C program calling assembly - results in segmentation fault Filipe Programming 2 11-03-2008 11:53 AM
Segmentation fault in apt-get lord_cedrich Linux - General 1 11-01-2006 11:00 AM
apt-get runs into Segmentation fault werfer Debian 1 04-02-2006 05:36 PM
Apt-Get Segmentation Fault rykel Fedora 0 12-30-2004 11:14 AM
segmentation fault after using apt-get, rpmbuild ehawk Linux - Software 0 02-21-2004 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration