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.
[SOLVED] Requiring a medium for installing the GCC.
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.
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.
- 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.
You need to add mirrors to /etc/apt/sources.listroboto 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
Search for "sources.list debian wiki" for more on this.
deadbang
-
- 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.
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.
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.
- 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.
No, it's in main:arochester wrote:GCC comes from Non-Free.
https://packages.debian.org/jessie/gcc
We don't need no stinkin' blobs...
deadbang
- 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.
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
-
- 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.
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?
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?
Re: Requiring a medium for installing the GCC.
https://wiki.debian.org/SourcesList
The Debian Wiki is your friend.
The Debian Wiki is your friend.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D
Re: Requiring a medium for installing the GCC.
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
Now I can install the GNU Compiler Collection.
# deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 lxde-CD Binary-1 20170116-10:59]/ jessie main
Now I can install the GNU Compiler Collection.
Re: [SOLVED] Requiring a medium for installing the GCC.
What about the insult?
Hang on. I stand corrected. They did do some research:
These new members are so quick to shout their mouths off before doing any research.roboto wrote:I think is the worst thing that the Debian developers have ever done:
Hang on. I stand corrected. They did do some research:
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: [SOLVED] Requiring a medium for installing the GCC.
Maybe that was the whole point of starting the thread, just to promote the
blog ?
blog ?
Re: [SOLVED] Requiring a medium for installing the GCC.
It's tough to see how that blog post relates to the OP's "issue" at all.phenest wrote:Hang on. I stand corrected. They did do some research:
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.
Re: [SOLVED] Requiring a medium for installing the GCC.
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.
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.
Re: [SOLVED] Requiring a medium for installing the GCC.
Surrrrrrre it was. Because it's so obviously "on-topic" to a question about software sources.roboto wrote:The blog was just a random search result in my DuckDuckGoOnion search engine.
Not just troll but lying troll.
Obligatory timesaver link: http://forums.debian.net/ucp.php?i=zebr ... add=roboto