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

 

 

 

[SOLVED] Requiring a medium for installing the GCC.

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
roboto
Posts: 9
Joined: 2017-05-06 16:12

[SOLVED] Requiring a medium for installing the GCC.

#1 Post by roboto »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Requiring a medium for installing the GCC.

#2 Post by Head_on_a_Stick »

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.
deadbang

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Requiring a medium for installing the GCC.

#3 Post by arochester »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Requiring a medium for installing the GCC.

#4 Post by Head_on_a_Stick »

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)
deadbang

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

Re: Requiring a medium for installing the GCC.

#5 Post by stevepusser »

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.
MX Linux packager and developer


roboto
Posts: 9
Joined: 2017-05-06 16:12

Re: Requiring a medium for installing the GCC.

#7 Post by roboto »

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?

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Requiring a medium for installing the GCC.

#8 Post by phenest »

https://wiki.debian.org/SourcesList
The Debian Wiki is your friend.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

roboto
Posts: 9
Joined: 2017-05-06 16:12

Re: Requiring a medium for installing the GCC.

#9 Post by roboto »

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.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

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

#10 Post by phenest »

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:
:roll:
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

#11 Post by GarryRicketson »

Maybe that was the whole point of starting the thread, just to promote the
blog ?

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

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

#12 Post by dasein »

phenest wrote:Hang on. I stand corrected. They did do some research:
: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.

roboto
Posts: 9
Joined: 2017-05-06 16:12

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

#13 Post by roboto »

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.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

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

#14 Post by dasein »

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: http://forums.debian.net/ucp.php?i=zebr ... add=roboto

Post Reply