Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Installing GCC: A Catch-22 [SOLVED]

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Portaller
Posts: 3
Joined: 2014-04-15 00:37

Installing GCC: A Catch-22 [SOLVED]

#1 Post by Portaller »

I've been trying to install GCC, and it's being difficult. The first thing I tried was "sudo apt-get install gcc". The terminal threw this error at me:

Code: Select all

Err http://ftp.us.debian.org/debian/ wheezy/main libc-dev-bin i386 2.13-38
  404  Not Found [IP: 64.50.233.100 80]
Err http://ftp.us.debian.org/debian/ wheezy/main linux-libc-dev i386 3.2.51-1
  404  Not Found [IP: 64.50.233.100 80]
Err http://ftp.us.debian.org/debian/ wheezy/main libc6-dev i386 2.13-38
  404  Not Found [IP: 64.50.233.100 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/e/eglibc/libc-dev-bin_2.13-38_i386.deb  404  Not Found [IP: 64.50.233.100 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/l/linux/linux-libc-dev_3.2.51-1_i386.deb  404  Not Found [IP: 64.50.233.100 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/e/eglibc/libc6-dev_2.13-38_i386.deb  404  Not Found [IP: 64.50.233.100 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I checked, and the reason it can't get those files is because they are not in the repositories. Not deterred, I tried to install GCC manually. This is what I got: "configure: error: no acceptable C compiler found in $PATH". That's probably because I don't have a compiler. This is the output from my console when I look for one:

Code: Select all

portabuild@PAB-Deb:~/gcc$ /usr/bin/cc
bash: /usr/bin/cc: No such file or directory
portabuild@PAB-Deb:~/gcc$ /usr/bin/gcc
bash: /usr/bin/gcc: No such file or directory
Debian, just how am I supposed to install GCC if I need to install GCC before I can install GCC? I'm in a pickle. Not even apt-get build-essentials works.

So, my question is, how can I install GCC?
Last edited by Portaller on 2014-04-16 03:32, edited 1 time in total.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Installing GCC: A Catch-22

#2 Post by stevepusser »

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Did you try apt-get update first?
MX Linux packager and developer

Portaller
Posts: 3
Joined: 2014-04-15 00:37

Re: Installing GCC: A Catch-22

#3 Post by Portaller »

Yeah, I did that. This was the output:

Code: Select all

Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://ftp.ca.debian.org wheezy Release.gpg
Hit http://ftp.ca.debian.org wheezy Release
Hit http://ftp.us.debian.org wheezy Release
Hit http://ftp.ca.debian.org wheezy/main Sources
Hit http://ftp.ca.debian.org wheezy/contrib Sources
Hit http://ftp.us.debian.org wheezy/main Sources
Hit http://ftp.us.debian.org wheezy/contrib Sources
W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/Release  Unable to find expected entry 'nonfree/source/Sources' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://ftp.ca.debian.org/debian/dists/wheezy/Release  Unable to find expected entry 'nonfree/source/Sources' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
Here are the contents of sources.list in case you wanted to see:

Code: Select all

# 

# deb cdrom:[Debian GNU/Linux 7.2.0 _Wheezy_ - Official i386 DVD Binary-1 20131012-12:56]/ wheezy contrib main

#deb cdrom:[Debian GNU/Linux 7.2.0 _Wheezy_ - Official i386 DVD Binary-1 20131012-12:56]/ wheezy contrib main

#deb cdrom:[Debian GNU/Linux 7.2.0 _Wheezy_ - Official i386 DVD Binary-2 20131012-12:56]/ wheezy contrib main

deb http://ftp.us.debian.org/debian wheezy main contrib nonfree
deb-src http://ftp.us.debian.org/debian wheezy main contrib nonfree

deb http://ftp.ca.debian.org/debian wheezy main contrib nonfree
deb-src http://ftp.ca.debian.org/debian wheezy main contrib nonfree

# wheezy-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ wheezy-updates main contrib
# deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Installing GCC: A Catch-22

#4 Post by stevepusser »

You failed to get the debian repo lists during apt-get update, because "nonfree" should be "non-free" in sources.list. Fix that, run apt-get update again, and all will be fixed.

I get those mixed up too, so am familiar with the problem.

Thanks for posting sources.list, by the way. Usually it seems like it's pulling fingernails to get people to do this straight off.
MX Linux packager and developer

Portaller
Posts: 3
Joined: 2014-04-15 00:37

Re: Installing GCC: A Catch-22

#5 Post by Portaller »

Thank you, that works now.

Post Reply