[SOLVED] Requiring a medium for installing the GCC.

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED] Requiring a medium for installing the GCC.

Postby roboto » 2017-05-06 16:42

I recently installed Debian in order to learn about Linux. But there is one problem that I think is the worst thing that the Debian developers have ever done:

When I type apt-get install gcc, it does this:

$ sudo apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gcc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc' has no installation candidate

So, what I'm seeing here is that the GCC package doesn't exist, so I launched the Synaptic package manager. The GCC package appeared. I clicked on Apply for installation and then a dialog box appeared saying
Please insert the disk labled:
Debian GNU/Linux 8.7.1 _Jessie_ -Official amd64 lxde-CD
Binary-1 20170116-10:59
in drive /mnt/cdrom

I realized that this was the name of my USB drive that I used for the installation of this distribution that should have never existed: https://igurublog.wordpress.com/2014/04 ... y-the-nsa/

So I mounted the medium onto /mnt/cdrom and retried installing the GCC; nevertheless, the same dialog box appeared.

Any help is appreciated.
Last edited by roboto on 2017-05-06 19:25, edited 2 times in total.
roboto
 
Posts: 9
Joined: 2017-05-06 16:12

Re: Requiring a medium for installing the GCC.

Postby Head_on_a_Stick » 2017-05-06 16:44

roboto wrote:I clicked on Apply for installation and then a dialog box appeared saying
Please insert the disk labled:
Debian GNU/Linux 8.7.1 _Jessie_ -Official amd64 lxde-CD
Binary-1 20170116-10:59
in drive /mnt/cdrom

You need to add mirrors to /etc/apt/sources.list

Search for "sources.list debian wiki" for more on this.
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6666
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Requiring a medium for installing the GCC.

Postby arochester » 2017-05-06 16:54

Edit your sources list.

Follow the instructions here https://linuxpanda.wordpress.com/2014/0 ... -8-jessie/
Scroll down to Update The Source List
Add Contrib and Non-Free. GCC comes from Non-Free.

When you are there, stop the message by putting a # at the beginning of the line about the CD.
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1080
Joined: 2010-12-07 19:55

Re: Requiring a medium for installing the GCC.

Postby Head_on_a_Stick » 2017-05-06 17:02

arochester wrote:GCC comes from Non-Free.

No, it's in main:

https://packages.debian.org/jessie/gcc

We don't need no stinkin' blobs... 8)
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6666
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Requiring a medium for installing the GCC.

Postby stevepusser » 2017-05-06 17:35

What happened is that the installer could not find a connection to any Debian repository during the install, so those repo entries are commented out in your list of software sources. If you have the Net working in your install, all you need to do is fix the sources per the previous instructions and "apt-get update". If you need to get the Net working, that's another problem.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8900
Joined: 2009-10-06 05:53

Re: Requiring a medium for installing the GCC.

Postby arochester » 2017-05-06 17:42

No, it's in main
My mistake!
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1080
Joined: 2010-12-07 19:55

Re: Requiring a medium for installing the GCC.

Postby roboto » 2017-05-06 17:47

Okay, the GCC is in main. Okay, but which URL should I use for the network mirror since there is no list available to me.

EDIT:

My /etc/apt/sources.list:

#

# deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 lxde-CD Binary-1 20170116-10:59]/ jessie main

deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 lxde-CD Binary-1 20170116-10:59]/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-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/ jessie-updates main
# deb-src http://ftp.debian.org/debian/ jessie-updates main


What should I do with it?
roboto
 
Posts: 9
Joined: 2017-05-06 16:12

Re: Requiring a medium for installing the GCC.

Postby phenest » 2017-05-06 18:07

https://wiki.debian.org/SourcesList
The Debian Wiki is your friend.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Requiring a medium for installing the GCC.

Postby roboto » 2017-05-06 18:43

I will mark this topic as solved because all I had to do in /etc/apt/sources.list was to put the # symbol at the start of the deb:cdrom line.

# deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 lxde-CD Binary-1 20170116-10:59]/ jessie main

8)

Now I can install the GNU Compiler Collection.
roboto
 
Posts: 9
Joined: 2017-05-06 16:12

Re: [SOLVED] Requiring a medium for installing the GCC.

Postby phenest » 2017-05-06 19:03

What about the insult?
roboto wrote:I think is the worst thing that the Debian developers have ever done:

These new members are so quick to shout their mouths off before doing any research.

Hang on. I stand corrected. They did do some research:
roboto wrote:https://igurublog.wordpress.com/2014/04/08/julian-assange-debian-is-owned-by-the-nsa/

:roll:
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: [SOLVED] Requiring a medium for installing the GCC.

Postby GarryRicketson » 2017-05-06 20:28

Maybe that was the whole point of starting the thread, just to promote the
blog ?
User avatar
GarryRicketson
 
Posts: 4353
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: [SOLVED] Requiring a medium for installing the GCC.

Postby dasein » 2017-05-06 22:16

phenest wrote:Hang on. I stand corrected. They did do some research:
roboto wrote:https://igurublog.wordpress.com/2014/04/08/julian-assange-debian-is-owned-by-the-nsa/

:roll:

It's tough to see how that blog post relates to the OP's "issue" at all.

Tougher still for anyone, such as myself, who has actually done the research to discover that that infamous blog post totally misrepresents what Assange said.

Troll.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: [SOLVED] Requiring a medium for installing the GCC.

Postby roboto » 2017-05-07 04:46

No, you are wrong. I did not start the thread just to promote the blog.

The blog was just a random search result in my DuckDuckGoOnion search engine.
The point of this thread is summarized in the title of this thread.
roboto
 
Posts: 9
Joined: 2017-05-06 16:12

Re: [SOLVED] Requiring a medium for installing the GCC.

Postby dasein » 2017-05-07 08:27

roboto wrote:The blog was just a random search result in my DuckDuckGoOnion search engine.

Surrrrrrre it was. Because it's so obviously "on-topic" to a question about software sources. :roll:

Not just troll but lying troll.

Obligatory timesaver link: ucp.php?i=zebra&mode=foes&add=roboto
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable